./configure fails with: libz... configure: error: not found.
I try to compile Space Hulk (http://r.vinot.free.fr/spacehulk/news.html) on Debian. However I can't get past the ./configure. I get this error message:
Code:
checking for libz... configure: error: not found. Check your installation and look into config.log Code:
configure:5152: checking for extra includes |
The apt-file package comes up with more than a few packages containing that file but I will go with you needing the zlib1g-dev package. You will probably want to install apt-file then use apt-file update as root then you can use apt-file search file/missing.h as normal user, I would image you are going to need more packages installed this will help finding them.
Code:
>$ apt-file search zlib.h |
Thanks again for the help HappyTux! Here's the output of both commands, I am not sure what this means though :confused::
# apt-file -v update Code:
D: got 'deb http://debian.uchicago.edu/debian/ etch main ' Code:
...... |
Quote:
Quote:
|
@HappyTux
Aah now I see :D. Something else; you seem to know a lot about Debian/Linux. Do you have tips/links/ideas where I can learn more about Debian? I already have purchased (and read) "The Debian System and "Debian GNU/Linux Bible 3.1". However I feel that there is more to learn. maybe you can point me in the right direction? Edit: When using ./configure I get a new error :(. Any ideas what this could be? Code:
checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths! |
Quote:
For the new error you need the X development files if using X org then install xorg-dev and for that matter the build-essential package just in you do not have it installed. Well one tip for what you are doing right now compiling is when you get to the make install step use instead the checkinstall package to build a .deb that gets installed. You would use something like this as he command line for it running as norma user su -c 'checkinstall -D --pkgname=qspacehulk --pkgversion=1.05-beta1 --maintainer="Your Name some@email.net"' then answer yes to the questions and it will build then install the .deb package for you allowing the packing system to know it is installed also helps with easy removal of locally compiled software. Since I see it is QT app and the INSTALL file mentions it you could be using ./configure --enable-mt with maybe --prefix=/usr added there as well if you want the files installed into the normal path instead of /usr/local and if this was a KDE app then you would want --prefix='kde-config --prefix' there instead you may want to try just the ./configure though and post the output here so I can see it. Now you will need at least the libqt3-headers and libqt3-mt-dev packages installed to compile a QT app the -mt and the non-threaded do not install together if I recall it correctly so the --enable-mt may not be needed. For more general Debian knowledge I just read as much as I can I like the debian-user and debian-dev mailing lists there is a lot of cruft there sometimes but you usually always come up with a few good pieces of information and of course http://www.google.com/linux for any errors is always a great place to start usually adding a Debian on the end of the error. |
Thanks again for the extensive answer. I will try to compile spacehulhulk with checkinstall tomorrow. I was already subcribed to several Debian announce mailing list, I added debian-devel and debian-user now :) :study:
|
Quote:
|
I made a seperate folder and rule for lists.debian.org in Thunderbird to prevent my inbox for getting overwhelmed ;)
|
Quote:
|
New error :-(
Hmm, I get a new error :cry:. I tried installing libqt4-dev and python-qt4-dev but this eror persists:
Code:
checking for Qt... configure: error: Qt (>= Qt 3.0.1) (headers and libraries) not found. Please check your installation! |
Try installing libqt3-headers and installing the qt3 versions of the libraries (libqt3-mt-dev if not already there) as the qt4 is not needed and in fact still errored when tried the configure here with them use the command I have used in the below to get it to finish properly.
Code:
~/archives/tar/spacehulk-1.5-beta1] |
Quote:
apt-cache policy libqt3-headers Code:
libqt3-headers: Code:
libqt3-mt-dev: Edit: I installed kde-develop but this didn't work either. P.S. Is there something of an development option in taskselect so that you can easily install all relevant dev packages and won't run into these problems? |
Edit 2: I was thinking could it be that ./configure can't find qt3 because it's looking in the wrong directory:
Code:
configure:6461: checking for Qt Code:
/. |
You need to use the same configure command as in my output above (./configure --with-qt-includes=/usr/include/qt3 --with-qt-libraries=/usr/lib/qt3) or it is not going to find what it needs.
|
Quote:
|
Quote:
Code:
Code:
>$ afs /usr/lib/qt3/qstyle.h Code:
Code:
configure:6637: rm -rf SunWS_cache; c++ -o conftest -O2 -fno-exceptions -fno-check-new -INO -I. -DQT_THREAD_SUPPORT -D_REENTRANT -L/usr/lib -L/usr/lib conftest.C -lqt-mt -lpng -lz -lm -ljpeg -ldl -lXext -lX11 -lSM -lICE -lresolv -lpthread 1>&5 |
Ok, now I understand the reasoning behind your advice. I am gonna print this out for future reference :study: Thanks again!
|
All times are GMT -5. The time now is 02:06 AM. |