I had PHP 4.2.2 and Sybase 11.9.2 working together perfectly.  (Why do I
ever try to upgrade! :))

I recently upgraded Sybase from 11.9.2 to 12.5, and am now trying to
compile 
PHP 4.2.3 with it.  I am using the following ./configure command:

./configure --prefix=/usr/local/php
--with-config-file-path=/usr/local/php \
--with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql \
--with-sybase=/opt/sybase-12.5 --with-oci8=/usr/local/oracle \
--with-oracle=/usr/local/oracle --with-pdflib=/usr/local/pdflib \
--with-jpeg --with-tiff --with-zlib --with-gd --with-ttf --with-freetype
\
--with-xml --with-gettext --enable-ftp --enable-versioning
--enable-sockets \
--enable-calendar --enable-sysvsem --enable-sysvshm --enable-track-vars
\
--enable-debugger --enable-magic-quotes --enable-rpath
--enable-short-tags \
--enable-posix --enable-session --enable-xml --enable-bcmath
--enable-ctype \
--enable-mailparse --with-apache=../apache_1.3.26

At first, it was having problems finding the Sybase includes (it's now
in 
/opt/sybase-12.5/OCS-12_5/include instead of /opt/sybase-12.5/include,
so I 
fixed that with a symbolic link).

Now I am getting the following errors from make after the compile is
almost
finished and it links everything together:

/usr/bin/ld: cannot find -lsybdb
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/www/src/php-4.2.3'
make: *** [all-recursive] Error 1

My /etc/ld.so.conf file looks like this:
/usr/lib
/usr/local/lib
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-2.3.0/lib
/usr/lib/qt-1.45/lib
/usr/lib/sane
/usr/lib/nsr
/opt/sybase-12.5/OCS/lib
/opt/sybase-12.5/ASE/lib
/opt/sybase-12.5/FTS/lib
/opt/sybase-12.5/SQLRemote/lib

I would appreciate any insight on how I might be able to get this to
work.

Thanks in advance!

Chris Schreiber



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to