PHP 4.0 Bug #9559 Updated: /usr/bin/ld: cannot find -lcrypto

From: Date: Mon, 05 Mar 2001 14:43:12 +0000
Subject: PHP 4.0 Bug #9559 Updated: /usr/bin/ld: cannot find -lcrypto
Groups: php.dev 
Request: Send a blank email to php-dev+get-47973@lists.php.net to get a copy of this message
ID: 9559 Updated by: sniper Reported By: gzero@totalnet.ro Old-Status: Open Status: Closed Bug Type: Compile Failure Assigned To: Comments: You can give the location of ssl libs (both should be in same place) for --with-imap-ssl like this: --with-imap-ssl=/usr/local/ssl --Jani Previous Comments: --------------------------------------------------------------------------- [2001-03-05 06:59:53] gzero@totalnet.ro I have the PHP 4.0.4pl1 source tarball. I used the following config command: ./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr --with-imap --with-imap-ssl Configure runs fine, when I attempt a 'make' I get this: make[1]: Entering directory `/usr/src/php-4.0.4pl1' [stub.c compiles fine, the next compile line gives this:] /usr/bin/ld: cannot find -lcrypto collect2: ld returned 1 exit status make[1]: *** [libphp4.la] Error 1 make[1]: Leaving directory `/usr/src/php-4.0.4pl1' make: *** [all-recursive] Error 1 I happen to have a solution. PHP 4.0.4pl1 indeed would have no trouble finding libcrypto.a, if only it would be in /usr/lib. It sometimes gets installed in /usr/local/ssl/lib. Just copy libcrypto.a to /usr/lib and run configure then make again. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9559&edit=2

« previous php.dev (#47973) next »