PHP install error when adding mssql extention

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Bruce Beerman
Forum Newbie
Posts: 2
Joined: Mon Feb 21, 2005 8:25 pm

PHP install error when adding mssql extention

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

What does this have to do with Databases?


Moved to Servers.
Bruce Beerman
Forum Newbie
Posts: 2
Joined: Mon Feb 21, 2005 8:25 pm

Post 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.... :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Congratulations. :) :lol:
Post Reply