我试着按照下面的文章中的说明,但它说,无法通过YUM包管理器安装freetds的
http://www.hosting.com/support/linux/installing-freetds-for-linux/
这是我的I/O “没有包freetds的可用。”:
[[email protected] ~]# 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
[[email protected] ~]# 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
:
[[email protected] ~]# 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安装php-mssql',如果这不起作用,我会看看[这些说明](https://gist.github.com/shf/2052432)。 –
我试过了,现在它似乎说我错过了依赖关系。我可以只做'yum install libsybdb'吗?我不想在提问前尝试,因为没有撤消按钮:) – user1477388
你总是可以卸载的东西。我不知道CentOS - 我很久以前就停止使用RedHat(CentOS基于此) - 所以我无法给出关于如何完成任务的确切说明。如果你在这里找不到更多的帮助,可能会碰到一些CentOS论坛或IRC频道。 –