Discussion:
[PHP-INSTALL] Re: Having problems installing php with mysql.so
Drex
2009-02-21 14:44:04 UTC
Permalink
Hi,
I need to install PHP with CLI MYSQL not to be confused with mysqli. This
is for a Lilac Installation(nagios). I am installing on solaris 10. I
compiled php without pdo extensions and added them in manually. I
configured mysql.so by first using phpize then running the configure command
PHP_PDO_SHARED=1 ./configure --with-pdo-mysql=/opt/mysql/mysql
--with-zlib-dir=/usr/lib --with-php-config=/opt/ACSphp/bin/php-config
here are my lib paths
LDFLAGS="-L/usr/local/lib -R/usr/local/lib -L/usr/local/mysql/lib
-R/usr/local/mysql/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib"
CPPFLAGS="-I/usr/local/ssl/include -I/usr/local/include
-I/usr/local/mysql/include"
# ./php -v
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library)
'mysql.so' in Unknown on line 0
PHP 5.2.9RC4-dev (cli) (built: Feb 20 2009 12:41:33)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
Please help
Thanks
--
Drex
--
Drex
Loading...