Re: CPAN cannot install modules locally
[email protected] (Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯) Sat, 23 Jul 2011 17:02:29 +0200
| Newsgroups | perl.cpan.discuss |
|---|---|
| Message-ID | <[email protected]> |
--nextPart9726221.6n1alDOj38 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable > How do I ensure that cpan uses the modules from /home/foo/local The same way you use additional modules for any Perl program, see=20 <http://faq.perl.org/perlfaq8.html#How_do_I_add_a_direc>. > o conf makepl_args [=E2=80=A6] PREFIX=3D/home/foo/local/ It's `makepl_arg`, not `makepl_args`. PREFIX is almost always a mistake, see=20 <http://p3rl.org/ExtUtils::MakeMaker#INSTALL_BASE> for the details. Where'd= =20 you get the idea? Tell us so we can improve it. Once you change `makepl_arg`, you also need to change `mbuildpl_arg` becaus= e=20 Makefiles are not the only build system in use. I want to second Jonathan's recommendation for local::lib. It provides the= =20 required environment variables for maintaining modules in e.g. one's home=20 directory, no need to mess with Perl-specific configuration files. --nextPart9726221.6n1alDOj38 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEABECAAYFAk4q4owACgkQFtlTdOX00Hrj1QCfaMPoJBmTwy7f7v8L9DQWz5c1 QJMAn2HzEk3xX0EVOctuFSwMvo1IUlMm =omGK -----END PGP SIGNATURE----- --nextPart9726221.6n1alDOj38--