http://www.perlmonks.org?node_id=1006490


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

Replies are listed 'Best First'.
Re^3: Building a local perl to use the system perl's libraries as a fallback
by aitap (Curate) 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 (Abbot) 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.