【发布时间】:2013-12-09 09:16:58
【问题描述】:
我尝试按照下面文章中的说明进行操作,但它显示“没有可用的软件包 freetds。”
http://www.hosting.com/support/linux/installing-freetds-for-linux/
这是我的 I/O:
[root@mydomain ~]# yum search freetds
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.web-ster.com
* extras: mirror.beyondhosting.net
* updates: mirrors.sonic.net
=============================== Matched: freetds ===============================
php-mssql.x86_64 : MSSQL database module for PHP
[root@mydomain ~]# yum install freetds
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.web-ster.com
* extras: mirror.beyondhosting.net
* updates: mirrors.sonic.net
Setting up Install Process
No package freetds available.
Error: Nothing to do
如何安装 freetds?我只是想连接到 SQL Server!
编辑:
yum install php-mssql之后:
[root@mydomain ~]# yum install php-mssql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.web-ster.com
* extras: mirror.beyondhosting.net
* updates: mirrors.sonic.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mssql.x86_64 0:5.4.13-1.el6.remi will be installed
--> Processing Dependency: libsybdb.so.5()(64bit) for package: php-mssql-5.4.13-1.el6.remi.x86_64
--> Finished Dependency Resolution
Error: Package: php-mssql-5.4.13-1.el6.remi.x86_64 (mt_dv_extras)
Requires: libsybdb.so.5()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
【问题讨论】:
-
我会尝试
yum install php-mssql,如果这不起作用,我会看看these instructions。 -
我试过了,现在似乎说我缺少依赖项。我可以做
yum install libsybdb吗?我不想在询问之前尝试,因为没有撤消按钮:) -
你总是可以卸载东西。我不了解 CentOS——我很久以前就停止使用 RedHat(CentOS 所基于的)——所以我无法为您提供有关如何完成任务的确切指示。如果您在此处找不到更多帮助,不妨访问一些 CentOS 论坛或 IRC 频道。
-
好的,我明白了。感谢那个链接,这对我帮助最大:)
标签: linux centos plesk yum freetds