cfbfan Posted December 9, 2016 Share 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? Link to comment Share on other sites More sharing options...
Krydos Posted December 9, 2016 Share 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. Link to comment Share on other sites More sharing options...
cfbfan Posted December 9, 2016 Author Share 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. Link to comment Share on other sites More sharing options...
Krydos Posted December 9, 2016 Share Posted December 9, 2016 I changed some settings. Try installing it now. Link to comment Share on other sites More sharing options...
wolstech Posted December 9, 2016 Share Posted December 9, 2016 This support request is being escalated to our root admin. Link to comment Share on other sites More sharing options...
cfbfan Posted December 9, 2016 Author Share 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. Link to comment Share on other sites More sharing options...
Krydos Posted December 10, 2016 Share Posted December 10, 2016 Glad to hear it's working. Link to comment Share on other sites More sharing options...
Recommended Posts