Page 1 of 1

PHP install error when adding mssql extention

Posted: Tue Feb 22, 2005 9:32 am
by Bruce Beerman
Hello, I have searched and searched but not found what I am looking for. I am using Solaris 8, php-4.3.10. I have installed FreeTDS OK and can connect to MS SQL 2000 DB just fine. I have been using apache and snmp extentions with PHP just fine. However, when I go to make-install I get the following error:
bash-2.03# make install
Installing PHP SAPI module: apache
[activating module `php4' in /etc/apache/httpd.conf]
cp libs/libphp4.so /usr/apache/libexec/libphp4.so
chmod 755 /usr/apache/libexec/libphp4.so
cp /etc/apache/httpd.conf /etc/apache/httpd.conf.bak
cp /etc/apache/httpd.conf.new /etc/apache/httpd.conf
rm /etc/apache/httpd.conf.new
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PEAR environment: /usr/local/lib/php/
ld.so.1: /opt/php/php-4.3.10/sapi/cli/php: fatal: libgcc_s.so.1: open failed: No such file or directory
*** Error code 137
The following command caused the error:
/opt/php/php-4.3.10/sapi/cli/php -n -dshort_open_tag=0 -dsafe_mode=0 /opt/php/php-4.3.10/pear/install-pear.php -d "/usr/local/lib/php" -b "/usr/local/bin" /opt/php/php-4.3.10/pear/package-*.xml
make: Fatal error: Command failed for target `install-pear-installer'
Current working directory /opt/php/php-4.3.10
*** Error code 1
make: Fatal error: Command failed for target `install-pear'
bash-2.03#

Any Ideas what is going wrong?

Posted: Tue Feb 22, 2005 9:34 am
by feyd
What does this have to do with Databases?


Moved to Servers.

Posted: Tue Feb 22, 2005 1:53 pm
by Bruce Beerman
I found the problem. I needed to include /usr/local/lib in the LD_LIBRARY_PATH environment variable. I was also using solaris make binary instead of Gnu make. It's compiled now.... :)

Posted: Tue Feb 22, 2005 2:23 pm
by feyd
Congratulations. :) :lol: