2015-10-02 112 views
0

如何在centos服務器上安裝mssql客戶端模塊6.7。我試圖安裝mssql客戶端,並通過本文中描述的過程 http://www.geekyboy.com/archives/37/comment-page-1#comment-188819如何在centos服務器上安裝mssql模塊6.7

但我卡在「yum install php-devel」。它沒有找到包。

我跟着另一篇文章關於同一主題,其中提到你必須從yum.conf中排除php *排除,但也提到如果你有WHM/Cpanel它可能會導致問題。

https://unix.stackexchange.com/questions/82478/cannot-install-php-packages-in-centos

我WHM /交友我的服務器上,我試圖找出如何使用安裝MSSQL

回答

0

能否請您嘗試使用下面的命令進行。

wget http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz 
tar zfvx freetds-stable.tgz 
cd freetds-*; 
./configure --prefix=/usr/local/freetds --with-tdsver=8.0 --enable-msdblib --enable-dbmfix --with-gnu-ld; make ; make install 

添加編譯標誌freetds的到/ var /的cPanel /易/阿帕奇/ rawopts/all_php5

echo "--with-mssql=/usr/local/freetds" >> /var/cpanel/easy/apache/rawopts/all_php5 

touch /usr/local/freetds/lib/libtds.a 
touch /usr/local/freetds/include/tds.hp 

現在運行Easy阿帕奇

/scripts/easyapache 
+0

這會帶來問題,與現有的WHM/Cpanel和駐留在服務器中的網站? – jarus

相關問題