[freetds] php + mssql

James K. Lowden jklowden at schemamania.org
Wed Jan 8 23:31:37 EST 2003


On Wed, 08 Jan 2003 10:55:10 +0700, "benny iskandar"
<liauwsiauwlong at hotmail.com> wrote:
>  > then I execute phpinfo() , it say included :
>  > --with-mysql=shared,/usr' '--with-unixODBC=shared,/usr'
>  > '--with-recode=shared,/usr' '--enable-xslt'
>  > '--with-xslt-sablot=shared,/usr'
>  > '--with-snmp=shared' '--enable-ucd-snmp-hack'
>  > '--with-sybase-ct=shared,/usr'
>  >
>  > 'Call to undefined function: sybase_connect() ' ???
> 
> I think php is failing to load FreeTDS's libctl.  It seems to be looking
> for it in /usr.  By default, the FreeTDS libraries are in /usr/local. 
> Did you configure FreeTDS "--prefix=/usr"?
> 
> benny> no , I already install FreeTDS in usr/local
> "--prefix=/usr/local"

That was my point.  FreeTDS is installed in /usr/local, but php is looking
for it in /usr.

If you move it to /usr or reconfigure php to look in /usr/local, I think
things will go better.  

--jkl



More information about the FreeTDS mailing list