All i have the following code i want to load the DBD::Informix driver.
#!/apps/exlink/orc/perl/bin/perl use DBD::Informix;


When i run it i get
bash-3.00$ perl/bin/perl test.pl Can't load '/apps/exlink/orc/arch/sparc-sun-solaris/perl/lib/site_perl +/5.8.5/sun4-solaris/auto/DBD/Informix/Informix.so' for module DBD::In +formix: ld.so.1: perl: fatal: libifsql.so: open failed: No such file +or directory at /apps/exlink/orc/arch/sparc-sun-solaris/perl/lib/5.8. +5/sun4-solaris/DynaLoader.pm line 230. at test.pl line 3 Compilation failed in require at test.pl line 3. BEGIN failed--compilation aborted at test.pl line 3.

So i setup the LD_LIBRARY_PATH to put my libifsql.so in.
bash-3.00$ find . -name libifsql.so ./arch/sparc-sun-solaris/lib/32/libifsql.so ./arch/sparc-sun-solaris/lib/64/libifsql.so ./arch/x86_64-unknown-linux/lib/32/libifsql.so ./arch/x86_64-unknown-linux/lib/64/libifsql.so bash-3.00$ export LD_LIBRARY_PATH=./arch/sparc-sun-solaris/lib/64/libi +fsql.so bash-3.00$ perl/bin/perl test.pl Can't load '/apps/exlink/orc/arch/sparc-sun-solaris/perl/lib/site_perl +/5.8.5/sun4-solaris/auto/DBD/Informix/Informix.so' for module DBD::In +formix: ld.so.1: perl: fatal: libifsql.so: open failed: No such file +or directory at /apps/exlink/orc/arch/sparc-sun-solaris/perl/lib/5.8. +5/sun4-solaris/DynaLoader.pm line 230. at test.pl line 3 Compilation failed in require at test.pl line 3. BEGIN failed--compilation aborted at test.pl line 3. bash-3.00$ more test.pl

But i still get the same error, does perl not use the LD_LIBRARY_PATH to search for this lib ?

In reply to DBD::Informix ld.so.1 unable to find .so file by minixman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.