![Redhat 6.8 - 在哪里安装 php-mssql](https://linux22.com/image/683133/Redhat%206.8%20-%20%E5%9C%A8%E5%93%AA%E9%87%8C%E5%AE%89%E8%A3%85%20php-mssql.png)
我尝试按照网上的大量资源,使用 Extra Packages for Enterprise Linux (EPEL) repo 在 Redhat 6.8 上安装 php-mssql,但提示“没有可用的 php-mssql 软件包”。我确保也启用了 EPEL,但没有成功(也许 php-mssql 不再在 EPEL 中了?)。不过,我最终还是从 EPEL 安装了 freetds。
有人能指导我如何正确安装 php-mssql 包吗?
更新:
# yum install epel-release-latest-6.noarch.rpm
# yum-config-manager --enable epel
# yum install php-mssql
Loaded plugins: product-id, search-disabled-repos, security, subscription-
: manager
Setting up Install Process
No package php-mssql available.
Error: Nothing to do
根据约翰的请求:
# vim /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
# ls
epel.repo epel-testing.repo redhat.repo rhel-source.repo
# yum search php-mssql
Loaded plugins: product-id, search-disabled-repos, security, subscription-manager
No Matches found
# yum search php | grep mssql
[nothing found]