var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Problems Installing Sybase 12.5 with PHP 4.2.3
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:
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).
--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 \
Now I am getting the following errors from make after the compile is almost finished and it links everything together:
My /etc/ld.so.conf file looks like this:
/usr/bin/ld: cannot find -lsybdb
collect2: ld returned 1 exit status
make: *** [php] Error 1
make: Leaving directory `/www/src/php-4.2.3'
make: *** [all-recursive] Error 1
I would appreciate any insight on how I might be able to get this to work.
Thanks in advance!
Last edited by Chris Schreiber; 09-07-02 at 00:28.
Don't fix anything with a symbolic link!!!
--with-sybase=/opt/sybase-12.5 <- nogood
--with-sybase-ct=/opt/sybase-12.5/OCS-12_5 <- theway
Thanks Matt, that did the trick.
Just out of curosity, what is the difference between --with-sybase and --with-sybase-ct? The PHP documentation doesn't say too much about either option.
I think --with-sybase is deprecated, or uses older Sybase-DB libs. In any rate, --with-sybase-ct is the way to go!