PHP 4.0 Bug #9559: /usr/bin/ld: cannot find -lcrypto
| From: | gzero at totalnet dot ro | Date: | Mon, 05 Mar 2001 11:59:53 +0000 |
| Subject: | PHP 4.0 Bug #9559: /usr/bin/ld: cannot find -lcrypto | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-47967@lists.php.net to get a copy of this message | ||
From: gzero@totalnet.ro
Operating system: RedHat Linux 6.2
PHP version: 4.0.4pl1
PHP Bug Type: Compile Failure
Bug description: /usr/bin/ld: cannot find -lcrypto
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.
--
Edit Bug report at: http://bugs.php.net/?id=9559&edit=1