Ubuntu 16.04上的MSSQL

时间:2017-03-27 08:21:27

标签: php sql-server ubuntu ubuntu-16.04

我正在尝试在Ubuntu 16上安装 sqlsrv pdo_sqlsrv 。我收到了这个结果

我已经在Ubuntu上安装了MSSQL Express。我只需要安装这两个驱动程序。

sudo pecl install pdo_sqlsrv
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/php_pdo_sqlsrv_7_nts.so' - /usr/lib/php/20160303/php_pdo_sqlsrv_7_nts.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/php_sqlsrv_7_nts.so' - /usr/lib/php/20160303/php_sqlsrv_7_nts.so: cannot open shared object file: No such file or directory in Unknown on line 0
Could not download from "http://pecl.php.net/get/pdo_sqlsrv-4.0.8.tgz", cannot download "pecl/pdo_sqlsrv" (File http://pecl.php.net:80/get/pdo_sqlsrv-4.0.8.tgz not valid (received: HTTP/1.1 503 Service Unavailable
))
Error: cannot download "pecl/pdo_sqlsrv"
Download failed
install failed


sudo pecl install sqlsrv
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/php_pdo_sqlsrv_7_nts.so' - /usr/lib/php/20160303/php_pdo_sqlsrv_7_nts.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/php_sqlsrv_7_nts.so' - /usr/lib/php/20160303/php_sqlsrv_7_nts.so: cannot open shared object file: No such file or directory in Unknown on line 0
Could not download from "http://pecl.php.net/get/sqlsrv-4.0.8.tgz", cannot download "pecl/sqlsrv" (File http://pecl.php.net:80/get/sqlsrv-4.0.8.tgz not valid (received: HTTP/1.1 503 Service Unavailable
))
Error: cannot download "pecl/sqlsrv"
Download failed
install failed

0 个答案:

没有答案