[PHP-DB] Re: php cannot find mysql libs and includes after portupgrade

2005-02-02 Thread Sven Willenberger
On Wed, 2005-02-02 at 11:55 -0500, Sven Willenberger wrote:
> FreeBSD 5.2.1 and portupgraded mysql-client and server to 4.0.23a. Then
> portupgrade -f lang/php4 and databases/php4-mysql. After this phpinfo()
> and any php application using mysql no longer finds the include and lib
> dirs and do not work.
> 

I found that downloading 4.3.9 and compiling from scratch (no ports
system) and building all the modules from scratch (no php-extensions)
solved the issue. Interestingly, building 4.3.10 from scratch did result
in the proper paths being found but no php scripts using mysql would
work. 4.3.9 on the other hand works fine. Not sure if this is an issue
with the ports/FreeBSD 5.3 version, or with php 4.3.10 but for now issue
solved/worked around.

Sven

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] php cannot find mysql libs and includes after portupgrade

2005-02-02 Thread Sven Willenberger
FreeBSD 5.2.1 and portupgraded mysql-client and server to 4.0.23a. Then
portupgrade -f lang/php4 and databases/php4-mysql. After this phpinfo()
and any php application using mysql no longer finds the include and lib
dirs and do not work.

>From phpinfo():

extension_dir => /usr/local/lib/php/20020429
=> /usr/local/lib/php/20020429



mysql

MySQL Support => enabled
Active Persistent Links => 0
Active Links => 0
Client API version => 4.0.23a
MYSQL_MODULE_TYPE => none
MYSQL_SOCKET => /tmp/mysql.sock
MYSQL_INCLUDE =>
MYSQL_LIBS =>


but:

# ldd /usr/local/lib/php/20020429/mysql.so
/usr/local/lib/php/20020429/mysql.so:
libmysqlclient.so.12
=> /usr/local/lib/mysql/libmysqlclient.so.12 (0x2815b000)
libz.so.2 => /lib/libz.so.2 (0x2817e000)
libcrypt.so.2 => /lib/libcrypt.so.2 (0x2818c000)
libm.so.2 => /lib/libm.so.2 (0x281a5000)

mysql client itself connects without any problem, just php applications
cannot. Any ideas? Has anyone else come across this?

Sven

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php