php's oracle client on debian7
岸照第一個就可以完成大多數的動作,也不會有太多問題,但會出現並沒有載入的情況,此時去 /var/log/apache2/error.log會發現:
所以啦,就是安裝一下 libaio.so.1 就ok了!!
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/oci8.so' - libaio.so.1: cannot open shared object file: No such file or directory in Unknown on line 0如果此時下
ldd /usr/lib/php5/20090626/oci8.so會得到
linux-vdso.so.1 => (0x00007fffa6345000)
libclntsh.so.12.1 => /opt/oracle/instantclient/libclntsh.so.12.1 (0x0000 7fd2d2ba8000)
libc.so.6 => /lib/libc.so.6 (0x00007fd2d2842000)
libnnz12.so => /opt/oracle/instantclient/libnnz12.so (0x00007fd2d212b000 )
libons.so => /opt/oracle/instantclient/libons.so (0x00007fd2d1ee7000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fd2d1ce3000)
libm.so.6 => /lib/libm.so.6 (0x00007fd2d1a60000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fd2d1844000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00007fd2d162c000)
librt.so.1 => /lib/librt.so.1 (0x00007fd2d1423000)
libaio.so.1 => not found
libclntshcore.so.12.1 => /opt/oracle/instantclient/libclntshcore.so.12.1 (0x00007fd2d0ed3000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd2d5ac8000)
libaio.so.1 => not found
所以啦,就是安裝一下 libaio.so.1 就ok了!!
參考資料:
- http://blog.longwin.com.tw/2008/06/debian_install_php_oci8_oracle_2008/
- http://www.oracle.com/technetwork/articles/dsl/technote-php-instant-084410.html
- http://techknack.net/installing-oci8-for-php/
留言
張貼留言