Re: CPAN cannot install modules locally
[email protected] (Jonathan Yu) Sat, 23 Jul 2011 09:33:12 -0400
| Newsgroups | perl.cpan.discuss |
|---|---|
| Message-ID | <CAMDxSEjDMw7tWgxQ7SZ=Y2rWXqx_gLzhnNkq+RWSK5TS-dPsDg@mail.gmail.com> |
Hi, Have you looked at the local::lib distribution? It was designed for this purpose and can be bootstrapped outside of the CPAN shell (so that you can just download the tarball and install it). See: http://search.cpan.org/dist/local-lib/ Cheers, Jonathan On Sat, Jul 23, 2011 at 8:56 AM, Alok <[email protected]> wrote: > Hi > > I am trying to install MediaWiki::Bot module locally on my server (I am n= ot > the admin). > I am trying to use cpan command line interface for this. > > I used following options before beginning installation: > o conf makepl_args "LIBS=3D-L/home/foo/local/lib INC=3D-I/home/foo/local/= include > PREFIX=3D/home/foo/local/" > o conf commit > > It turned out that MediaWiki::Bot requires bunch of other modules that cp= an > tries to install. But I see that many =C2=A0of them fail test cases becau= se they > cannot detect each other. For example, > > # =C2=A0 Failed test at t/warnings_exist.t line 36. > # =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0got: 'Base class package "Tree::DAG_N= ode" is empty.' > > Or they are getting incorrect version (possibly the one thats installed i= n > /usr/lib/perl) > > #.HTML::Entities version 3.28 required--this is only version 1.35 at > /home/foo/.cpan/build/MediaWiki-Bot-3.4.0-X3wY3E/blib/lib/MediaWiki/Bot.p= m > line 7. > > And due to failed test cases cpan does not install anything. > > How do I ensure that cpan uses the modules from /home/foo/local ? > Essentially, I want to override the library preference order. I thought I > was doing that using the o conf makepl_args option. But apparently it is = not > working. > > Any help will be greatly appreciated. > > Thanks, > Alok >