DBD:informix question

From: Daniel Curling (Daniel.Curling_at_pegs.com)
Date: 10/16/03


To: "'dbi-users@perl.org'" <dbi-users@perl.org>
Date: Thu, 16 Oct 2003 12:02:57 -0700

I am getting this error:

install_driver(Informix) failed: Can't load
'/usr/local/lib/perl5/site_perl/5.8.
0/sun4-solaris/auto/DBD/Informix/Informix.so' for module DBD::Informix:
ld.so.1:
 /bin/perl: fatal: /opt/informix/IDS940FC1/lib/esql/libifsql.so: open
failed: No
 such file or directory at
/usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm
 line 229.
 at (eval 3) line 3
Compilation failed in require at (eval 3) line 3.
Perhaps a required shared library or dll isn't installed where expected

I know this error is due to the fact that my $INFORMIXDIR has changed and
the previous $INFORMIXDIR has been removed -- thus the libifsql.so can't be
found. Usually I just re-install the DBD using the new INFORMIXDIR, but
there has to be an easier way. I should not have to re-install DBD
everytime my $INFORMIXDIR changes. I normally use softlinks as my
$INFORMIXDIR and that avoids this issue but this time I did not. Does
anyone have a work around?

Thanks