Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Building a local perl to use the system perl's libraries as a fallback

by clueless newbie (Hermit)
on Nov 30, 2012 at 15:58 UTC ( #1006490=note: print w/ replies, xml ) Need Help??


in reply to Re: Building a local perl to use the system perl's libraries as a fallback
in thread Building a local perl to use the system perl's libraries as a fallback

On a fresh install of Ubuntu 12.10, I have NOT been able to install padre or Devel::ptkdb successfully from CPAN. But if I use Ubuntu's apt-get both install and work without any problems. Since "mucking" about with the system perl is considered "not the thing to do", I want to create a user perl that takes advantage of the successfully installed modules of the system perl.

Moritz brings up an excellent point and I would be careful to configure the local perl with the options of the system perl.

As I understand it, modules installed from CPAN via the local perl would not pollute the libraries of the system perl.


Comment on Re^2: Building a local perl to use the system perl's libraries as a fallback
Re^3: Building a local perl to use the system perl's libraries as a fallback
by aitap (Deacon) on Nov 30, 2012 at 19:54 UTC
    You may have to install headers of the libraries XS code uses (i.e. simply speaking, files in /usr/include/ which point to the functions defined in *.so files). For example, building Wx from CPAN requires libwxgtk2.8-dev to be installed.
    Sorry if my advice was wrong.
Re^3: Building a local perl to use the system perl's libraries as a fallback
by zwon (Monsignor) on Dec 01, 2012 at 05:46 UTC
    If you just want to be able to install modules into your home directory without touching the system libraries, you probably should have a look at local::lib. I don't use it myself, but I recall that system cpan command suggested to configure it automatically during first run on Ubuntu.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006490]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2015-07-07 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls