简体   繁体   English

CentOS php pecl PDO_DBLIB

[英]CentOS php pecl PDO_DBLIB

I have tried to install PDO_DBLIB in CentOS 5.8, so I run follow command 我试图在CentOS 5.8中安装PDO_DBLIB,所以我运行了follow命令

pecl install PDO_DBLIB

and I get the follow message 我得到了以下信息

pear/PDO_DBLIB requires PHP extension 'pdo' version >=1.0

But in http://php.net/manual/es/ref.pdo-dblib.php , it says that is an EXPERIMENTAL pdo, so do you know another PDO that I can use to conect with sql server in CentOS 5 但是在http://php.net/manual/es/ref.pdo-dblib.php中 ,它说这是一个实验pdo,所以你知道我可以使用另一个PDO与CentOS 5中的sql server连接吗?

Thanks to every one! 谢谢大家!

See this bug report on php.net. 在php.net上查看此错误报告 One of the comments includes steps to get around this particular problem. 其中一条评论包括解决这一特定问题的步骤。 Basically the work around is to download the package, modifying the package.xml to remove the dependency, and then attempt to install the package locally 基本上,解决方法是下载软件包,修改package.xml以删除依赖项,然后尝试在本地安装软件包

$ pecl download pdo_dblib
$ tar -xzvf PDO_DBLIB-*.tgz

Remove from package.xml and save:
<dep type="ext" rel="ge" version="1.0">pdo</dep>

$ mv package.xml ./PDO_DBLIB-X.X
$ cd PDO_DBLIB-X.X
$ pecl install package.xml

Or, you can just tell PECL to skip dependencies... 或者,你可以告诉PECL跳过依赖...

$ pecl install -n pdo_dblib

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM