Questions tagged [locallib]

local::lib - create and use a local lib/ for perl modules with PERL5LIB

local::lib

17 questions
23
votes
5 answers

perlbrew and local::lib at the same time?

So far I have been using the system perl (on Ubuntu 10.10) and I was using local::lib to install CPAN modules in my private directory ~/perl5 As I am trying to use perlbrew it seems that they don't know about each other. I installed perl-5.12.3…
szabgab
  • 6,202
  • 11
  • 50
  • 64
15
votes
2 answers

Upgrade all modules installed by local::lib

I've been using local::lib to handle the installation of Perl modules on a server so I can get the right versions for some development work without polluting the system installation. However, the system administrator has recently upgraded Perl from…
pwaring
  • 3,032
  • 8
  • 30
  • 46
9
votes
3 answers

How is use local::lib different from use lib?

I don't understand what use local::lib does that regular use lib doesn't. Could someone explain it?
xenoterracide
  • 16,274
  • 24
  • 118
  • 243
7
votes
3 answers

How do I install a CPAN module site-wide while local::lib is present?

I've recently set up a new system and wanted to install Padre to check it out. The Padre install instructions specifically said to install local::lib, so I did so (although I've never had need of it before). I then went on my way installing…
Dave Sherohman
  • 45,363
  • 14
  • 64
  • 102
4
votes
1 answer

Deactivate and Remove Perl Local::Lib

I would like to deactivate the environment variables and remove the appended /home/myusername/perl5.. directories from @INC that were a result of Local::Lib. Can anyone advise? I really would like to get back to the state of perl ENV vars and @INC…
Johnathan1
  • 2,241
  • 5
  • 23
  • 24
4
votes
1 answer

Perl - Local::lib not consistently finding the local path in @INC - conflict with perlbrew?

I don't have root access to the system so I'm installing perl modules using local::lib which I installed using the bootstrapping method: perl Makefile.PL --bootstrap=~/foo make test && make install echo '[ $SHLVL -eq 1 ] && eval "$(perl…
3
votes
2 answers

How do I develop cpan modules without installing them?

I have taken the source checkout of two cpan modules : A and B. Both the modules A and B are developer releases. B has a dependency on A. My question is how do I work on B without installing A. (I already have an older version of A installed)
user1117082
3
votes
1 answer

Perl not recognizing module / module path for root user

I am new to Perl so please bear with me. Thank you for your assistance. I have an Ubuntu machine with Perl on it. I followed the local::lib bootstrapping guide I used cpanm to install DBI and other modules to my system. I am concerned there may be…
Bix
  • 760
  • 8
  • 22
3
votes
2 answers

how to change configuration of CPAN from local::lib to sudo preference

Hi am new to using perl and installed CPAN using the code: $ perl -MCPAN -e shell and i got the following prompt: To install modules, you need to configure a local Perl library directory or escalate your privileges. CPAN can help you by…
Elena
  • 41
  • 1
  • 3
2
votes
2 answers

CPAN modules installed locally by cpan/cpanm cannot be used without manual intervention

I have packaged my app as a Perl module, which fails to install using the cpan or cpanm commands. The problem is that these commands - when not run as root - install the prerequisite modules into the ~/perl5 directory. However, my ~/perl5 directory…
Jaap Joris Vens
  • 3,382
  • 2
  • 26
  • 42
1
vote
2 answers

Can I use a local::lib if local::lib isn't installed globally and without eval-ing it in shell?

I have a problem, I want to use local::lib; in a script. But because I need to use this script many places, I don't want to try adding the eval to bashrc, every time I install this script to a server. and I can't get local::lib installed globally…
xenoterracide
  • 16,274
  • 24
  • 118
  • 243
1
vote
0 answers

Using local::lib with 3-rd party shared .so libraries

I have a Perl library that consists of a C library in a binary form (.so file) and sources for Perl bindings for that library (Makefile.PL etc). All I need is an ability to run Perl samples shipped with the library. I'd like to avoid installing…
nponeccop
  • 13,527
  • 1
  • 44
  • 106
1
vote
1 answer

Perl local::lib boostrap getting stuck

I attempted the installation for local::lib (I have no trouble installing the ExeUtils::MakeMaker pre-requisite). I found the command from here: https://metacpan.org/pod/local::lib [frank@simunec1 local-lib-1.008010]$ perl Makefile.PL…
frank
  • 1,283
  • 1
  • 19
  • 39
0
votes
1 answer

how to alleviate local::lib troubles after system/perl upgrade?

our system admin recently upgraded my OS and perl (to 5.12.3). when I load up the local::lib environment variables, it appears to break anything that depends on xs: demianshell~> perl -e 'use Storable; store({a=>1}, 'test')' demianshell~> eval…
Demian
  • 215
  • 2
  • 9
0
votes
1 answer

Specify location for the local perl library

Basically, I tried this on Ubuntu and OS X: export PERL_LOCAL_LIB_ROOT=~/.perl5 wget -O- http://cpanmin.us | perl - -l ~/.perl5 App::cpanminus local::lib eval `perl -I ~/.perl5/lib/perl5 -Mlocal::lib` Yet the third line insists on creating and…
Eli Korvigo
  • 10,265
  • 6
  • 47
  • 73
1
2