October 24th, 2005, 12:40 AM
PHP Build Issue
Hi there, I was wondering if anyone has install php as cgi on freeBSD 5.4? I am getting errors during the make process:
Anyone come accross the same thing? anyone know how to get around this? I need to run as cgi and also readline, even though I have isntalled the readline port, php cannot find it...
sapi/cgi/getopt.lo main/internal_functions.lo -lcrypt -lcrypt -lmysqlclient -lmhash -lmcrypt -lltdl -lcurl -lz -lssl -lcrypto -lm -lcurl -lssl -lcrypto -lz -lcrypt -lcrypt -o sapi/cgi/php
/usr/bin/ld: cannot find -lltdl
*** Error code 1
Stop in /usr/home/sysman/php-4.3.11.
October 27th, 2005, 12:02 PM
Hmm, well one problem usually turns in to several others...
I had a similar issue with ld not finding stuff. I never solved it. However, I would check to see where -lltdl is and what it is. You can check with "ldconfig -r".
October 28th, 2005, 02:03 PM
You can use ldconfig to rebuild the cache if you need to. You do have that libarary right? Make sure you have it by trying to find it. You can just use ls *ltdl* on the various lib dirs.
If you don't have it, either install it or disable the part of PHP that is dependent on it. If you do have it, you might just need to re-run ldconfig to update the cache.
Recycle your old CD's, don't just trash them
If I helped out out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud
October 30th, 2005, 05:49 PM
The php version I was using did not like the ported version of mcrypt library on FreeBSD.... so I deinstalled that, and installed the libmcrypt version and all worked.
Originally Posted by kicken