Topic
4 replies Latest Post - ‏2011-10-08T09:37:09Z by 0x55aa
caif
caif
4 Posts
ACCEPTED ANSWER

Pinned topic 求救:Aix5.3上安装php+mysql,无法连接数据库的问题

‏2011-09-02T07:20:39Z |
 执行php连接数据的脚本,提示一下错误信息:
 但是相应的文件的确存在啊,请高手指点一下,(环境AIX5.3 , php-5.2.13+mysql 5.1.55 )
是不是版本不兼容啊? 
 
PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/mysql.so' - Could not load module /opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/mysql.so.
        Dependent module /opt/pware64/lib/mysql/libmysqlclient.a(libmysqlclient.so.16) could not be loaded.
        Member libmysqlclient.so.16 is not found in archive 
Could not load module /opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/mysql.so.
        Dependent module /opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/mysql.so could not be loaded. in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/mysqli.so' - Could not load module /opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/mysqli.so.
        Dependent module /opt/pware64/lib/mysql/libmysqlclient.a(libmysqlclient.so.16) could not be loaded.
        Member libmysqlclient.so.16 is not found in archive 
Could not load module /opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/mysqli.so.
        Dependent module /opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/mysqli.so could not be loaded. in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/oci8.so' - Could not load module /opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/oci8.so.
        Dependent module libclntsh.so could not be loaded.
Could not load module libclntsh.so.
System error: No such file or directory
Could not load module /opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/oci8.so.
        Dependent module /opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/oci8.so could not be loaded. in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so' - Could not load module /opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so.
        Dependent module /opt/pware64/lib/mysql/libmysqlclient.a(libmysqlclient.so.16) could not be loaded.
        Member libmysqlclient.so.16 is not found in archive 
Could not load module /opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so.
        Dependent module /opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so could not be loaded. in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/pdo_oci.so' - Could not load module /opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/pdo_oci.so.
        Dependent module libclntsh.so could not be loaded.
Could not load module libclntsh.so.
System error: No such file or directory
Could not load module /opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/pdo_oci.so.
        Dependent module /opt/pware64/lib/php/extensions/no-debug-non-zts-20060613/pdo_oci.so could not be loaded. in Unknown on line 0
Could not open input file: /yyglb/test1.mysql 
 
Updated on 2011-10-08T09:37:09Z at 2011-10-08T09:37:09Z by 0x55aa
  • Chris-L
    Chris-L
    3 Posts
    ACCEPTED ANSWER

    回复:求救:Aix5.3上安装php+mysql,无法连接数据库的问题

    ‏2011-09-05T05:56:58Z  in response to caif
     问题是对Mysql 的动态链接库没有加载成功。
    首先,确认你安装的 PHP 是否增加了对 Mysql 的支持。这个需要在编译安装 PHP 时候增加相应的选项,否则无法实现与 Mysql 的链接。
    同时要确认需要加载的动态链接库是否存在,也就是 Mysql 安装的是否完整。
    同时,建议看一下 PHP 的官方安装文档,里面的内容很详细。
    • caif
      caif
      4 Posts
      ACCEPTED ANSWER

      回复:求救:Aix5.3上安装php+mysql,无法连接数据库的问题

      ‏2011-09-06T05:28:56Z  in response to Chris-L
       谢谢您的回答。我在http://pware.hvcc.edu/上下的封装包,那几个动态链接库包括路径都是正确的,但是就是无法加载,郁闷中。。。。
  • This reply was deleted by weiwall 2011-09-08T06:08:01Z.
  • 0x55aa
    0x55aa
    1 Post
    ACCEPTED ANSWER

    回复:求救:Aix5.3上安装php+mysql,无法连接数据库的问题

    ‏2011-10-08T09:37:09Z  in response to caif
    test