Bug #17757 Updated: Php compile generate error:/usr/bin/ld:cannot find -lclntsh

From: Date: Tue, 18 Jun 2002 06:24:07 +0000
Subject: Bug #17757 Updated: Php compile generate error:/usr/bin/ld:cannot find -lclntsh
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11023@lists.php.net to get a copy of this message
ID: 17757 Updated by: sniper@php.net Reported By: Palvin@163.com -Status: Open +Status: Feedback Bug Type: OCI8 related Operating System: RedHat 7.3+Oracle 8i/9i PHP Version: 4.2.1 New Comment: Do you happen to have the paths to both to the oracle libraries and mysql libraries specified in /etc/ld.so.conf ?? e.g. I have /home/ora_user/OraHome1/lib in there.. If not, add them and run /sbin/ldconfig If this helps, close this report, otherwise, you need to tell us your whole configure line used to configure PHP and also add the couple of lines BEFORE that error you get. btw. if ORACLE_HOME is set correctly, you don't have to put any path for --with-oci8 --Jani Previous Comments: ------------------------------------------------------------------------ [2002-06-18 01:58:44] Palvin@163.com I'm sorry to tell you that the problem is exist still. When I download the file which your refer to, the report became: /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [libphp4.la] Error1. When I get rid of parameter --with-mysql=shared,/usr then the report was below: /usr/bin/ld: cannot find -lclntsh collect2: ld returned 1 exit status make: *** [libphp4.la] Error 1 I think the error should be cause of glibc library, because I use RedHat 7.1 have none of any error. ------------------------------------------------------------------------ [2002-06-15 20:28:49] sniper@php.net Could you please try the latest CVS snapshot: http://snaps.php.net/php4-latest.tar.gz I think this is already fixed. Configure is just detecting wrong version. ------------------------------------------------------------------------ [2002-06-14 02:02:57] Palvin@163.com I've install RedHat 7.3+Oracle 8i/9i and want install php4.2.1, I set --with-oci8=$ORACLE_HOME and do ./config without any error, but when I run make command, it generate a error and stop compile. Error info is below: /usr/bin/ld:cannot find -lclntsh collect2:ld returned 1 exit status make[1]:*** [libphp4.la] Error 1 make[1]:leaving directory '/opt/php-4.2.1' make:*** [all-recursive] Error1. But when I strip the parameter --with-oci8, all step is normal and install is OK. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17757&edit=1

« previous php.bugs (#11023) next »