Re: question about compiling PHP and freetds 0.82

Robert Gonzalez <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
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 <[email protected]>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
> [email protected]
> http://lists.ibiblio.org/mailman/listinfo/freetds
>



-- 
Robert Gonzalez
http://www.robert-gonzalez.com
http://twitter.com/RobertGonzalez
http://www.linkedin.com/in/robertanthonygonzalez
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.