http://qs1969.pair.com?node_id=1070853


in reply to MySQL.pm and PERL5LIB

(Hint: <code></code> tags will help with post readability when posting code or error messages.)

It looks like you do not have Moose installed. Either look for a .rpm package (using yum search Moose or your favorite package manager), or look at installing via CPAN (perl -MCPAN -e 'install Moose'). Being a CentOS (RedHat-derivative), I would suggest looking for an RPM package first.

If you want a "clean" perl environment, you can look at installing perlbrew.

Hope that helps.

Replies are listed 'Best First'.
Re^2: MySQL.pm and PERL5LIB
by Hammer2001 (Novice) on Jan 16, 2014 at 22:28 UTC

    Thank you, atcroft for the guidance. Moose is not available as a yum package or an RPM. I have done install and force install of Moose multiple times. The errors alternate between Moose.pm and MySQL.pm. Will look into perlbrew and let you know if it gets me out of the Perlhole I am in. Thanks, Hamid.

      The errors alternate between Moose.pm and MySQL.pm.

      You might be overwriting PERL5LIB when you should be adding to it? What's the full path to Moose.pm?

        Thanks everyone for the help.

        I ended moving code to a different server which appears to be healthy after banging my head against perlbrew for a while.