in reply to CPAN Module help

Where cpan installs modules is decided based on various options, check
o conf
in the cpan shell. You can configure the options directly from the shell. In particular, mbuildpl_arg and  makepl_arg can contain prefix or install_base settings. Similarly, you can set the PERL_MB_OPT and PERL_MM_OPT environment variables, as local::lib does.

I wouldn't recommend moving the modules. A path might be hardcoded somewhere which would break. Just configure cpan properly and reinstall.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: CPAN Module help
by tman77 (Initiate) on Jan 08, 2015 at 16:42 UTC

    OK, do you mind being very specific. I ran perl -MCPAN -e shell.

    o conf shows me that mbuildpl_arg and makepl_arg are not set.
    They are set to [].

    The build dir is set to /root/.cpan/build.

    So can you give me an example of how I would set the correct config options so that CPAN will install the modules into the /usr/lib64/perl5/vendor_perl directory? Would I need to set more than the mbuild_install_arg?

      As a follow up, I tried setting the following via o conf and made sure I committed it

      makepl_arg [INSTALL_BASE=/usr/lib64/perl5/vendor_perl] mbuildpl_arg [--install_base=/usr/lib64/perl5/vendor_perl]

      And I then tried to install a module, and it still installed to /root/perl5/lib/perl5/x86_64-linux-thread-multi

        Which cpan did you use? Which perl does it uses? How many perls do you have installed?
      Do you have the mentioned variables set?
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ