jaehokim1 has asked for the wisdom of the Perl Monks concerning the following question:

I installed the DBD::Sybase also, I installed the Open Client for the Sybase.. But when I install it, I see this dynamic load error.. install_driver(Sybase) failed: Can't load '/cm/tools/apps/lib/perl5/cm_perl/5.8.0/sun4-solaris/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase

Replies are listed 'Best First'.
Re: DBD::Sybase
by jfroebe (Parson) on Jun 09, 2004 at 21:41 UTC

    Hi,

    Make sure you have the Sybase enviroment variables set up correctly

    Sybase Openclient 12.0x or higher:

    1. SYBASE=/opt/sybase
    2. SYBASE_OCS=OCS-12_5
    3. LD_LIBRARY_PATH=${SYBASE}/lib;${SYBASE}/${SYBASE_OCS}/lib;${LD_LIBRARY_PATH}

    Sybase OpenClient 11.x or below:

    1. SYBASE=/opt/sybase
    2. LD_LIBRARY_PATH=${SYBASE}/lib;${LD_LIBRARY_PATH}

    Jason L. Froebe

    No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1

Re: DBD::Sybase
by mpeppler (Vicar) on Jun 10, 2004 at 05:40 UTC
    To add to what jfroebe wrote - the most likely cause is that you have /lib or /usr/lib listed before the Sybase lib directory/ies in your LD_LIBRARY_PATH environment variable. This will cause ld.so (the dynamic loader) to load /usr/lib/libintl.so instead of $SYBASE/$SYBASE_OCS/lib/libintl.so, with predictable results. It is almost never a good idea (or even necessary) to include the system directories (/lib, /usr/lib) in the LD_LIBRARY_PATH setting, as these directories are searched by default.

    Michael