Re: [vchkpw] Compile issues
Hi Brad, gcc -g -O2 -Wall -o vchkpw vchkpw.o libvpopmail.a -L/root/mysql/lib/mysql -lmysqlclient -lz -lnsl -lcrypt -lm /usr/bin/ld: cannot find -lz That means that zlib ist missing. What is the -lz all about (I am a long way from being any kind of programmer...) -l specifies a library which gcc should link against. After -l follows the name of that library, in your case z. It means the file /usr/lib/libz.so, which doesn't seem to be installed on your system. On Debian, you should install the zlib1g[-dev] package. Regards, Jonas
[vchkpw] Compile issues
Hi I have previously installed on redhat without any issues. Now I am trying to install vpopmail on debian 3.0 . I get the following error. gcc -g -O2 -Wall -o vchkpw vchkpw.o libvpopmail.a -L/root/mysql/lib/mysql -lmysqlclient -lz -lnsl -lcrypt -lm/usr/bin/ld: cannot find -lzcollect2: ld returned 1 exit statusmake[2]: *** [vchkpw] Error 1make[2]: Leaving directory `/usr/src/vpopmail-5.2.1'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/usr/src/vpopmail-5.2.1'make: *** [all-recursive-am] Error 2 Now, I installed the libmysqlclient10-dev package using apt and the includes and libs have been installed on the system. When this failed I downloaded the source for mysql and installed it into /root/mysql (as you can see by the output above) as a temp solution. It seems this did not work either. So if I use the default locations for the libs and incs it fails, and if I use the temp install I made, it fails. Failing at the following line: gcc -g -O2 -Wall -o vchkpw vchkpw.o libvpopmail.a -L/root/mysql/lib/mysql -lmysqlclient -lz -lnsl -lcrypt -lm/usr/bin/ld: cannot find -lz I am at a loss as to why this is failing. I looked through the makefile and there are alot of references to -lz I was tempted to remove them all, but thought I should find a real answer here. Is anyone able to point me in the right direction? What is the -lz all about (I am a long way from being any kind of programmer...) Regards Brad