【问题标题】:how to install mssql module on centos server 6.7如何在centos server 6.7上安装mssql模块
【发布时间】:2015-12-31 05:09:48
【问题描述】:

如何在 centos server 6.7 上安装 mssql 客户端模块。我正在尝试安装 mssql 客户端并完成本文中描述的过程 http://www.geekyboy.com/archives/37/comment-page-1#comment-188819

但我被困在 "yum install php-devel" 上。它没有找到包。

我关注了另一篇关于同一主题的帖子,其中提到您必须从 yum.conf exclude 中删除 php*,但也提到如果您有 WHM/Cpanel 可能会导致问题。

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

我的服务器上有 WHM/Cpanel,我正在尝试弄清楚如何继续安装 mssql

【问题讨论】:

    标签: sql-server sql-server-2008 cpanel centos6 yum


    【解决方案1】:

    你能不能试试下面的命令。

    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/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
    

    现在运行 Easy Apache

    /scripts/easyapache
    

    【讨论】:

    • 这是否会导致现有 WHM/Cpanel 和驻留在服务器中的网站出现问题?
    猜你喜欢
    • 2016-05-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-10
    • 2016-04-14
    • 1970-01-01
    • 2016-08-12
    • 1970-01-01
    相关资源
    最近更新 更多