How can I install a CPAN module into a local directory?

前端 未结 5 1743
庸人自扰
庸人自扰 2020-11-22 16:17

I\'m using a hosted Linux machine so I don\'t have permissions to write into the /usr/lib directory.

When I try to install a CPAN module by doing the us

5条回答
  •  遥遥无期
    2020-11-22 17:07

    For Makefile.PL-based distributions, use the INSTALL_BASE option when generating Makefiles:

    perl Makefile.PL INSTALL_BASE=/mydir/perl
    

提交回复
热议问题