Page 1 of 1

RosBE 2.1.2 - zlib is missing

Posted: Wed Apr 25, 2018 10:16 am
by Fraizeraust
The title is self-explanatory, the RosBE Shell installer fails to continue because of the lack of zlib but I do already have the required packages... Here are the installed zlib libs as follows:

Code: Select all

zlib1g zlib1g-dev zlib1g-dev:i386 zlib1g:i386 zlibc
The error output:

Code: Select all

Checking for the needed tools...
Checking for as... OK
Checking for bison... OK
Checking for flex... OK
Checking for gcc... OK
Checking for g++... OK
Checking for grep... OK
Checking for makeinfo... OK
Checking for python... OK
Checking for GNU Make... OK
Checking for zlib... MISSING
At least one needed tool is missing, aborted!
I run Lubuntu 16.04.4 LTS 64-bit on my machine.

Re: RosBE 2.1.2 - zlib is missing

Posted: Wed Apr 25, 2018 1:49 pm
by oldman
I seem to just remember having the same problem.
This (below) is a small portion of a script that I have put on my wiki page (Layman's guide). Which I have altered and made it a simple test.
Copy and paste it into a text editor and save it somewhere with the file extension of .sh, then chmod +x the file, then run it. If it shows that zlib is missing, then you will need to install pkg-config or whatever package contains pkg-config. Then you should find that RosBE finds zlib.

Code: Select all

  if pkg-config --exists zlib;
  then
    printf "found zlib"
  else
    printf "Cannot find zlib"
  fi
Let me know how you get on.

Re: RosBE 2.1.2 - zlib is missing

Posted: Wed Apr 25, 2018 3:01 pm
by Fraizeraust
Thank you for the response, oldman.

I have tested your Shell script and the culprit was because of pkg-config could not be found. I have installed it and now everything is fine. Quite strange how zlib depends upon pkg-config....

Thank you for your help, regardless!

Re: RosBE 2.1.2 - zlib is missing

Posted: Wed Apr 25, 2018 6:17 pm
by ThFabba
It's a bug in RosBE. It uses pkg-config to find zlib but it doesn't check whether pkg-config exists first, so it doesn't tell you that that's what's missing.

There's a Jira ticket about it: https://jira.reactos.org/browse/ROSBE-93
We should hopefully have a new RosBE release at some point.

Re: RosBE 2.1.2 - zlib is missing

Posted: Thu Apr 26, 2018 1:14 am
by MadWolf
hi
i installed zlib and then commented out the line

Code: Select all

    rs_needed_libs="zlib"

in the RosBE-Builder.sh

edit thanks that worked