Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux SQL Anywhere不';不要在VPS上工作_Linux_Sqlanywhere - Fatal编程技术网

Linux SQL Anywhere不';不要在VPS上工作

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

我正在尝试连接到外部服务器上的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 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中的环境变量