Gossamer Forum
Home : Products : DBMan SQL : Discussion :

setup problems

Quote Reply
setup problems
Being new to the Linux environment - this has been a challenge to get all the right modules installed. I think I have everything I need. When I run setup.cgi, I am getting the following:

---------------------------------------------------------
A fatal error has occured:
install_driver(mysql) failed: Can't locate loadable object for module
DBD::mysql in @INC (@INC contains: /var/www/cgi-bin/mdb/admin /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 2) line 3
Compilation failed in require at /usr/lib/perl5/5.6.0/Carp.pm line 119.
Perhaps a module that DBD::mysql requires hasn't been fully installed
at /var/www/cgi-bin/mdb/admin/GT/SQL/Driver.pm line 82
Please enable debugging in setup for more details.
----------------------------------------------------------

Any thoughts...?

Jeff CrazyMadLaugh
Quote Reply
Re: [jeffpitcher] setup problems In reply to
Are you installing the modules manually or as root from telnet/ssh?

Try:

perl -MCPAN -e 'install DBI'
perl -MCPAN -e 'install DBD::mysql'
Quote Reply
Re: [RedRum] setup problems In reply to
I've installed manually/locally

Jeff
Quote Reply
Re: [jeffpitcher] setup problems In reply to
If you have root access try the commands above from telnet, otherwise make sure you have DBI and DBD::mysql installed locally and make sure you have the:

use lib ' ';

...path pointing to the correct location of the modules.
Quote Reply
Re: [RedRum] setup problems In reply to
I hate to ask but - where is use lib () found?

Jeff
Quote Reply
Re: [jeffpitcher] setup problems In reply to
In other words, Linux or your App or ?

Jeff
Quote Reply
Re: [jeffpitcher] setup problems In reply to
Something that may be worth doing is a quick test as follows.

perl -c -MDBD::mysql -e '1'

This will tell you if DBD mysql modules have been installed properly. Make sure that the version of perl you run is the same one that the cgi calls.

If you still have problems, send me an email at aki@gossamer-threads.com and I'll take a look for you.

Cheers,

Aki