Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't Install FreeTDS via Yum Package Manager

I tried following the instructions in the article below but it says, "No package freetds available."

http://www.hosting.com/support/linux/installing-freetds-for-linux/

This is my I/O:

[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

How can I install freetds? I am just trying to connect to SQL Server!

Edit:

After 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
like image 820
user1477388 Avatar asked Nov 24 '13 19:11

user1477388


1 Answers

Worked for me

yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

(if above doesn't work, try to check this page https://fedoraproject.org/wiki/EPEL#Extra_Packages_for_Enterprise_Linux_.28EPEL.29)

And then:

yum install -y freetds freetds-devel
like image 143
val.sytch Avatar answered Sep 22 '22 05:09

val.sytch