Linux SQL Anywhere不';不要在VPS上工作
我正在尝试连接到外部服务器上的SQL Anywhere数据库。我在VPS Linux上工作 当我运行命令Linux SQL Anywhere不';不要在VPS上工作,linux,sqlanywhere,Linux,Sqlanywhere,我正在尝试连接到外部服务器上的SQL Anywhere数据库。我在VPS Linux上工作 当我运行命令/bin32/sa_config.sh时,我得到了这个错误 -bash: ./bin32/sa_config.sh: Permission denied 权限是:-rw-r--r--1根根根1201 Sep 10 14:50 sa_config.sh 从bin64运行config时也是如此 在phpinfo()中,我有错误: SQLAnywhere client version The S
/bin32/sa_config.sh
时,我得到了这个错误
-bash: ./bin32/sa_config.sh: Permission denied
权限是:-rw-r--r--1根根根1201 Sep 10 14:50 sa_config.sh
从
bin64
运行config时也是如此
在phpinfo()
中,我有错误:
SQLAnywhere client version The SQLAnywhere client libraries could not be loaded. Please ensure that libdbcapi_r.so can be found in your LD_LIBRARY_PATH environment variable.
我将这一行添加到/etc/init.d/httpd
:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/sql_anywhere/
我将libdbcapi_r.so
和libdblib12_r.so
复制到这个位置。我从lib32
和lib64
中尝试了这些文件
我将位置添加到php.ini
中的php-5.x.y\u sqlanywhere\u r.so
,并自动运行它
如何使SQL Anywhere工作?您需要像这样运行sa_config.sh文件:
. <path>sa_config.sh
。sa_config.sh
注意
和文件名之间的空格。这将允许脚本更改当前shell中的环境变量