cfbfan Posted December 9, 2016 Posted December 9, 2016 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 seeinginstall_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?
Krydos Posted December 9, 2016 Posted December 9, 2016 Try installing it through cpanel https://johnny.heliohost.org:2083/frontend/paper_lantern/module_installers/search.html?lang=perl&searchtype=1&searchterm=dbd%3A%3Amysql&itemsperpage=32768 Let us know if you still need help.
cfbfan Posted December 9, 2016 Author Posted December 9, 2016 I tried to install DBD::mysqlThe 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.
Krydos Posted December 9, 2016 Posted December 9, 2016 I changed some settings. Try installing it now.
wolstech Posted December 9, 2016 Posted December 9, 2016 This support request is being escalated to our root admin.
cfbfan Posted December 9, 2016 Author Posted December 9, 2016 The installation (although some warnings appeared) was successful.However, the module still could not be located. To enable it to be found, I addeduse 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.
Recommended Posts