FreeTDS installation directory is not a FreeTDS installation directory
I recently discovered an error whilst trying to (re)install an older PHP version on a client's server. My client required PHP recompiling with MS SQL support. This in turn requires FreeTDS. Installing FreeTDS is very simple, but PHP wasn't.
The PHP configure line was something like ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-ldap --with-zlib --with-mssql=/usr/local/freetds/
But PHP kept reporting an error;
configure: error: Directory /usr/local/freetds is not a FreeTDS installation directory
Simply put, PHP looks for some files that no longer exist in the FreeTDS installation.
I fixed it by faking the two files it looks for;
touch /usr/local/freetds/include/tds.h
touch /usr/local/freetds/lib/libtds.a
Run ./configure for PHP again and it works fine.
It has probably been fixed in later versions.
Related posts
- [Snippet] Installation of MS SQL Libraries on Ubuntu
Can't find php-mssql? Nah, its gone. Use php-sybase which contains both libraries now. Remember, make... - CubeCart Installation Service
Seen as Devellion Ltd has suspended their CubeCart installation service, I am now offering my... - NTLM Authentication (Active Directory) on Apache (Linux)
Here is a quick guide to enabling NTLM authentication for Apache 2. I generally use... - Active Directory DHCP Authorisation Issues
So you just deleted a DHCP server in your Active Directory site and can't authorise... - Installing nginx & PHP-FPM securely on CentOS
I won't go into the reasons why you should install nginx, if you're here, you've...


