Skip to Content.
Sympa Menu

freetds - Re: [freetds] question about compiling PHP and freetds 0.82

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Robert Gonzalez <robert AT robert-gonzalez.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] question about compiling PHP and freetds 0.82
  • Date: Thu, 23 Sep 2010 11:16:43 -0700

Read this:
http://www.robert-gonzalez.com/2009/02/18/building-the-php-ms-sql-server-extension-from-source-on-ubuntu-810/

<http://www.robert-gonzalez.com/2009/02/18/building-the-php-ms-sql-server-extension-from-source-on-ubuntu-810/>Just
under the section where it says DO NOT MAKE CLEAN AT THIS POINT... it tells
you where to find two files that are absolutely necessary to get your set up
running.

Good luck. Hope it helps.

Robert

On Tue, Sep 21, 2010 at 2:31 PM, Chris Adams <chris.a.adams AT state.or.us>wrote:

> Hello all,
>
> I am using Freetds on a RHL ES 3 server. I installed Freetds 0.82
> (/usr/local/freetds) and is works fine from the command line.
>
> I want to use PHP to talk to an MS-SQL 2005 server.
>
> I currently run PHP 4.3.2. I wanted to keep that version and recompile to
> use mssql. Here is what I have done so far:
>
>
> Downloaded and configured same version of php with the mssql extension. I
> planned to then copy the mssql.so into the existing php extension folder.
>
> ./configure --with-mssql=/usr/local/freetds
>
>
> This is the end of what results from the configure:
>
> checking for mSQL support... no
> checking for MSSQL support via FreeTDS... yes
> configure: error: Directory /usr/local/freetds is not a FreeTDS
> installation directory
>
> I read that it is looking for tds.h, which doesn't exist in the version
> 0.82 (stable release) package. It was suggested that I use an older version,
> which I did (0.64). I installed this from an RPM. It appears to install, but
> it doesn't have the tds.h and I don't know where to point the configure
> script.
>
> Other than those attempts, I can only see completely recompiling php, but I
> might have to modify the installed RPM of PHP and then recompile. I haven't
> figured out yet if that is necessary.
>
> Please advise. Thanks.
>
> Christopher Adams
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>



--
Robert Gonzalez
http://www.robert-gonzalez.com
http://twitter.com/RobertGonzalez
http://www.linkedin.com/in/robertanthonygonzalez




Archive powered by MHonArc 2.6.24.

Top of Page