Solaris 10 : PHP Startup: Unable to load dynamic library ".../mysql.so"
Solaris 10 : PHP Startup: Unable to load dynamic library ".../mysql.so"
am 11.06.2007 19:10:52 von mounir mds
------=_Part_54876_30710087.1181581852144
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
hello every body :
i have a problem with mysql :
mysql functions are not defined !
even if my php.ini is configure as bellow :
; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/"
extension=mysql.so
and whene a do an ls :
# ls -l /usr/local/lib/php/extensions/no-debug-non-zts-20060613/mysq l.so
-rwxr-xr-x 1 root root 119916 Jun 11 11:38
/usr/local/lib/php/extensions/no-debug-non-zts-20060613/mysq l.so
here is the error in the log file :
[11-Jun-2007 15:33:24] PHP Warning: PHP Startup: Unable to load dynamic
library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/mys ql.so' -
ld.so.1: httpd:
fatal: libmtmalloc.so.1: DF_1_NOOPEN tagged object may not be dlopen()'ed
in Unknown on line 0
and in the browser i get
Fatal error: Call to undefined function mysql_connect() in
/var/apache2/htdocs/test_mysql.php on line 8
line 8 : in test_mysql.php
if (!mysql_connect($db_hostname, $db_username, $db_password))
thank you for giving me some help here
------=_Part_54876_30710087.1181581852144--
Solaris 10 : PHP Startup: Unable to load dynamic library ".../mysql.so"
am 11.06.2007 19:22:24 von mounir mds
------=_Part_54997_9442164.1181582544881
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
hello every body :
i have a problem with mysql :
mysql functions are not defined !
even if my php.ini is configure as bellow :
; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/"
extension=mysql.so
and whene a do an ls :
# ls -l /usr/local/lib/php/extensions/no-debug-non-zts-20060613/mysq l.so
-rwxr-xr-x 1 root root 119916 Jun 11 11:38
/usr/local/lib/php/extensions/no-debug-non-zts-20060613/mysq l.so
here is the error in the log file :
[11-Jun-2007 15:33:24] PHP Warning: PHP Startup: Unable to load dynamic
library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/mys ql.so' -
ld.so.1: httpd:
fatal: libmtmalloc.so.1: DF_1_NOOPEN tagged object may not be dlopen()'ed
in Unknown on line 0
and in the browser i get
Fatal error: Call to undefined function mysql_connect() in
/var/apache2/htdocs/test_mysql.php on line 8
line 8 : in test_mysql.php
if (!mysql_connect($db_hostname, $db_username, $db_password))
thank you for giving me some help here
------=_Part_54997_9442164.1181582544881--
Re: Solaris 10 : PHP Startup: Unable to load dynamic library".../mysql.so"
am 12.06.2007 03:04:28 von dmagick
mounir mds wrote:
> hello every body :
> i have a problem with mysql :
> mysql functions are not defined !
> even if my php.ini is configure as bellow :
>
> ; Directory in which the loadable extensions (modules) reside.
> extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/"
>
> extension=mysql.so
>
> and whene a do an ls :
> # ls -l /usr/local/lib/php/extensions/no-debug-non-zts-20060613/mysq l.so
> -rwxr-xr-x 1 root root 119916 Jun 11 11:38
> /usr/local/lib/php/extensions/no-debug-non-zts-20060613/mysq l.so
>
> here is the error in the log file :
> [11-Jun-2007 15:33:24] PHP Warning: PHP Startup: Unable to load dynamic
> library
> '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/mys ql.so' -
> ld.so.1: httpd:
> fatal: libmtmalloc.so.1: DF_1_NOOPEN tagged object may not be dlopen()'ed
> in Unknown on line 0
Did you do a search for this error message?
http://bugs.mysql.com/bug.php?id=18322
Yeh it relates to dbd::mysql not php but it's exactly the same problem.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Solaris 10 : PHP Startup: Unable to load dynamic library ".../mysql.so"
am 12.06.2007 12:13:37 von mounir mds
------=_Part_2166_20428640.1181643217358
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
yes i saw that link , but i didn't do a mach :(
here is what my mysql_config --libs
> mysql_config --libs
-xarch=v8 -L/opt/mysql/mysql/lib -lmysqlclient -lz -lposix4 -lresolv -lgen
-lsocket -lnsl -lm
thers no
-lmtmalloc
in the returned line ;
my mysql version
mysql> select version();
+------------+
| version() |
+------------+
| 5.0.41-log |
+------------+
to fix this bug the script mysql_config.sh
i dont have this file
> find / -name mysql_config.sh
> ;nothing
thank you
On 6/12/07, Chris wrote:
>
> mounir mds wrote:
> > hello every body :
> > i have a problem with mysql :
> > mysql functions are not defined !
> > even if my php.ini is configure as bellow :
> >
> > ; Directory in which the loadable extensions (modules) reside.
> > extension_dir =
> "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/"
> >
> > extension=mysql.so
> >
> > and whene a do an ls :
> > # ls -l /usr/local/lib/php/extensions/no-debug-non-zts-20060613/mysq l.so
> > -rwxr-xr-x 1 root root 119916 Jun 11 11:38
> > /usr/local/lib/php/extensions/no-debug-non-zts-20060613/mysq l.so
> >
> > here is the error in the log file :
> > [11-Jun-2007 15:33:24] PHP Warning: PHP Startup: Unable to load dynamic
> > library
> > '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/mys ql.so' -
> > ld.so.1: httpd:
> > fatal: libmtmalloc.so.1: DF_1_NOOPEN tagged object may not be
> dlopen()'ed
> > in Unknown on line 0
>
> Did you do a search for this error message?
>
> http://bugs.mysql.com/bug.php?id=18322
>
> Yeh it relates to dbd::mysql not php but it's exactly the same problem.
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>
------=_Part_2166_20428640.1181643217358--