Thank you for the help, it is appreciated. We installed DBI and DBD first manually by downloading the modules. Which was probably a mistake but immediately upgraded to Perl 5.8.0 from 5.6.0 through CPAN. Rebooted the server. That problem occurred. I removed the DBI and DBD files manually and used CPAN this time. perl -MCPAN -e 'install DBI' perl -MCPAN -e 'install DBD::mysql'
Installation was Successful Rebooted the server. [root@elocalhost /]$ perl -v This is perl, v5.8.0 built for i686-linux [root@localhost /]$ perl -c -MDBD::mysql -e '1' -e syntax OK ----------------- install_driver(mysql) failed: Can't locate loadable object for module DBD::mysql in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at (eval 1) line 3 Compilation failed in require at (eval 1) line 3. Perhaps a module that DBD::mysql requires hasn't been fully installed at ./mysqltest1 line 7 ----------------- @INC is still looking in the wrong place. Is there away to have @INC look into the current location? Thanks in advance, Nik On Sat, 17 Aug 2002, Wiggins d'Anconia wrote: > Changing @INC would work, but to save yourself hassle later and possibly > to avoid further problems you might consider upgrading/re-installing > DBI, and DBD-mysql through CPAN as well, as that should fix the problems > and keep your CPAN installation contiguous, aka you upgraded Perl > through CPAN so you should upgrade all your modules in the same manner. > > install Mysql should do this, as Mysql will check for DBI as a > dependency and get it at the same time. > > Make sure to invoke CPAN with Perl 5.8.0 executable rather than the > previous one. > > http://danconia.org > > > Nik wrote: > > Hello Everyone, > > > > We are attempting to use a Perl script to access MySQL on Red Hat Linux > > release 7.2 (Enigma) Kernel 2.4.7-10 on an i686 > > Unfortunately, the below error keeps appearing: > > > > ------------------------- > > install_driver(mysql) failed: Can't locate loadable object for module > > DBD::mysql in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux > > /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux > > /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at (eval 1) > > line 3 > > Compilation failed in require at (eval 1) line 3. > > Perhaps a module that DBD::mysql requires hasn't been fully installed > > at ./mysqltest1 line 7 > > --------------------------- > > > > We have installed: > > > > mysql-3.23.49-3.i386.rpm > > mysql-server-3.23.49-3.i386.rpm > > mysql-devel-3.23.49-3.i386.rpm > > > > Msql-Mysql-modules-1.2219 > > DBI-1.30 > > DBD-mysql-2.1018 > > > > All have tested fine. Of course, mySQL works fine with PHP scripts. > > We have also upgraded Perl from 5.6 to 5.8 using cpan. > > > > Addionally we have copied the objects to the directory that @INC is > > looking in. > > > > cp -p -R /usr/local/lib/perl5/site_perl/5.8.0/i686-linux > > /usr/lib/perl5/5.6.0/i386-linux > > > > Now we receive this error: > > ---------------------- > > > > /usr/bin/perl: error while loading shared libraries: > > /usr/lib/perl5/5.6.0/i386-linux/auto/DBD/mysql/mysql.so: undefined symbol: > > Perl_get_sv > > > > --------------------- > > > > My guess would be to get "@INC" {per the initial error} to look into the > > proper directory {/usr/local/lib/perl5/site_perl/5.8.0/i686-linux} and not > > {/usr/lib/perl5/5.6.0/i386-linux} > > > > Where is the @INC and how can we change it? or any added advice would be > > appreciated. > > > > Thanks in advance. > > > > Nik > > > > > > > > > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]