Jump to content

[Solved] Perl Modules (Especially Dbd/dbi) On Johnny?


Recommended Posts

Posted

I've read that Johnny is being rebuilt, so I can understand why this problem is occuring, but it means a major feature of my web site can't be used.

 

In a Perl/CGI program using MySQL, upon trying to access the DB, I'm seeing

install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .)

 

Is it elsewhere or just not yet installed?

 

 

Posted

I tried to install DBD::mysql

The installation failed:

.

.

.

Mirror Check passed for mirrors4.kernel.org (/index.html)

Checking C compiler....Could not locate an executable "gcc" binary....Done

** Unrecoverable Error **

The C compiler is not functional and auto repair failed.

Perl module installs require a working C compiler.

Please repair the C compiler and try again.

Posted

The installation (although some warnings appeared) was successful.

However, the module still could not be located.

 

To enable it to be found, I added

use lib '/home/cfphq/perl5/lib/perl5/x86_64-linux-thread-multi/DBD';
to the beginning of the program. It's neither elegant nor portable, but (AFAIK) the program is working now.
Guest
This topic is now closed to further replies.
×
×
  • Create New...