Ne peut pas installer FreeTDS via yum Package Manager
j'ai essayé de suivre les instructions dans l'article ci-dessous, mais il est dit, " Aucun paquet gratuit disponible. "
http://www.hosting.com/support/linux/installing-freetds-for-linux /
C'est mon e/s:
[root@mydomain ~]# 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
[root@mydomain ~]# 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
comment installer freetds? J'essaie juste de me connecter à SQL Server!
Edit:
après yum install php-mssql
:
[root@mydomain ~]# 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
10
demandé sur
user1477388
2013-11-24 23:10:51
2 réponses
si vous ne voulez pas utiliser les paquets RPM Forge, freetds
et php-mssql
sont également disponibles dans EPEL .
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -ivh epel-release-6-8.noarch.rpm
sudo yum install freetds freetds-devel
15
répondu
Geoff Montee
2014-04-13 11:32:05
comme adopté du commentaire de Benny Hill ci-dessus, c'est ce qui a obtenu freetds installé pour moi:
rpm -ivh ftp://fr2.rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
cd /etc/yum.repos.d/
wget http://rpms.famillecollet.com/enterprise/remi.repo
yum install freetds
yum install freetds-devel
yum install --enablerepo=remi php-mssql
adopté de https://gist.github.com/shf/2052432
10
répondu
user1477388
2013-11-26 01:13:52