简体   繁体   English

如何在centos服务器6.7上安装mssql模块

[英]how to install mssql module on centos server 6.7

How to install mssql client module on centos server 6.7. 如何在centos服务器6.7上安装mssql客户端模块。 I am trying to install the mssql client and going through the process described in this article http://www.geekyboy.com/archives/37/comment-page-1#comment-188819 我正在尝试安装mssql客户端,并按照本文http://www.geekyboy.com/archives/37/comment-page-1#comment-188819中介绍的过程进行操作

but I am stuck on "yum install php-devel" . 但是我被困在“ yum install php-devel”上。 It does not find the package. 找不到包。

I followed another post regarding the same topic where it is mentioned that you have to remove php* from yum.conf exclude but also mentioned that it might cause problem if you have WHM/Cpanel. 我关注了同一主题的另一篇文章,其中提到您必须从yum.conf除去中删除php *,但也提到如果您有WHM / Cpanel,这可能会引起问题。

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

I have WHM/Cpanel on my server and i am trying to figure out how to proceed with installing mssql 我的服务器上有WHM / Cpanel,我试图弄清楚如何继续安装mssql

Can you please try with the following command. 您可以尝试使用以下命令吗?

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

Add the compile flag for freetds to /var/cpanel/easy/apache/rawopts/all_php5 将freetds的编译标志添加到/ var / cpanel / easy / apache / 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

Now run Easy Apache 现在运行Easy Apache

/scripts/easyapache

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

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