Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2001
    Location
    Philadelphia, PA
    Posts
    3

    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:

    Code:
    ./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:

    Code:
    /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:
    Code:
    /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
    Last edited by Chris Schreiber; 09-07-02 at 00:28.

  2. #2
    Join Date
    Mar 2001
    Location
    Lexington, KY
    Posts
    606
    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

  3. #3
    Join Date
    Aug 2001
    Location
    Philadelphia, PA
    Posts
    3
    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.

    Thanks again

  4. #4
    Join Date
    Mar 2001
    Location
    Lexington, KY
    Posts
    606
    I think --with-sybase is deprecated, or uses older Sybase-DB libs. In any rate, --with-sybase-ct is the way to go!
    Thanks,

    Matt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •