kieranbarnes Independent PHP, WordPress & CubeCart Programmer

FreeTDS installation directory is not a FreeTDS installation directory

Posted on December 3, 2009

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

  1. [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...
  2. CubeCart Installation Service
    Seen as Devellion Ltd has suspended their CubeCart installation service, I am now offering my...
  3. NTLM Authentication (Active Directory) on Apache (Linux)
    Here is a quick guide to enabling NTLM authentication for Apache 2. I generally use...
  4. Active Directory DHCP Authorisation Issues
    So you just deleted a DHCP server in your Active Directory site and can't authorise...
  5. 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...

Tagged as: Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.