Re: Trying To Access MSSQL Server 7 using PHP4.0.3pl1 o n Redhat Linux 7
| From: | QRA) | Date: | Wed, 08 Nov 2000 12:57:26 +0000 |
| Subject: | Re: Trying To Access MSSQL Server 7 using PHP4.0.3pl1 o n Redhat Linux 7 | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-4303@lists.php.net to get a copy of this message | ||
Hey there!
If you're running RedHat, write this after compiling FreeTDS on the shell
and before compiling PHP4:
SYBASE=/usr/lib/freetds
LIBPATH=${LIBPATH}:$SYBASE/lib
export SYBASE LIBPATH
When running other *nixes that uses the name LD_LIBRARY_PATH variable,
change every LIBPATH with LD_LIBRARY_PATH and it should work to recompile
PHP.
This worked for me and I'm running RedHat with FreeTDS to connect to MSSQL7
on a NT box.
-Bj
> -----Original Message-----
> From: Chris Elleman (Tech Support)
> [mailto:chris.elleman@folnetworks.com]
> Sent: Wednesday, November 08, 2000 12:23 PM
> To: php-db@lists.php.net
> Subject: [PHP-DB] Trying To Access MSSQL Server 7 using PHP4.0.3pl1 on
> Redhat Linux 7
>
>
> I'm using Freetds to access the MSSQL server and that works
> great, trouble
> is, in order to do it with PHP 4.0.3pl1, I have to recompile
> PHP and add the
> flag --with-sybase-ct=/usr/lib/freetds. When I run that I get an error
> saying the command "ld -lsybtcl" failed. I've done a locate
> on the server
> and found the "libsybtcl.a" and "libsybtcl.so" files in
> "/opt/sybase/lib",
> I've added this directory, along with "/usr/local/freetds/" to
> "/etc/ld.so.conf" and run "ldconfig", but "ld -lsybtcl" still
> fails - any
> ideas?
>
>
> Chris.
>