adding perl module on cpanel's 5.14 internal perl
hello,
since munin now using cpanel's internal perl 5.14 my nginx graph didn't generated as it requires "LWP::UserAgent". how do i add this module? /scripts/perlinstaller is installing to the system's perl module and not cpanel's perl
-
Hello, Documentation on this topic is available here: [url=http://docs.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/InstallingInternalPerlModules]Internal Perl Modules In short: /scripts/perlinstaller is for adding modules to the OS perl (/usr/bin/perl) /usr/local/cpanel/3rdparty/perl/514/bin/cpan is for installing modules for cPanel & WHM's perl 0 -
thanks for pointing out, i was reading that article but got confused with scripts/perlinstaller 0 -
i managed to install LWP::UserAgent with this command: [QUOTE]/usr/local/cpanel/3rdparty/perl/514/bin/cpan -i LWP::UserAgent
but i'm still getting errors: [QUOTE]Can't locate object method "new" via package "LWP::UserAgent" at /etc/munin/plugins/nginx_status0 -
i got it fixed, the script was still calling the system perl instead of cpanel perl 0
Please sign in to leave a comment.
Comments
4 comments