我試着按照下面的文章中的說明,但它說,無法通過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頻道。 –