CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
install path of perl modules

 



oscarjiao
Novice

Oct 21, 2013, 2:15 PM

Post #1 of 1 (374 views)
install path of perl modules Can't Post

I am installing this software in linux. It requires a lot of perl modules. The install is quite standard. I run perl Build.PL first to generate "Build" and then run ./Build installdeps to install all the dependencies. What this does is it detects what perl modules are missing and grabs them from CPAN and then install them with Module::Build.

According to Build.PL, the modules are supposed to be installed at the following directories. (../lib, /lib, ../perl/lib, /inc/lib)


Code
use lib "$FindBin::Bin/../lib"; #libary just needed for configuration 
use lib "$FindBin::Bin/lib"; #libary just needed for configuration
use lib "$FindBin::Bin/../perl/lib"; #libary just needed for configuration
use lib "$FindBin::Bin/inc/lib"; #libary just needed for configuration
my $build = MAKER::Build->new(
..........
........
install_base => "$FindBin::Bin/../",
install_base_relpaths => {
arch => [qw(perl/lib)],
lib => [qw(perl/lib)],
bindoc => [qw(perl/man)],
libdoc => [qw(perl/man)],
},


However, when I run "Build installdeps", it turned out half of the modules are installed in /src/inc/perl/lib/ other than the paths defined in Build.PL.

PERL5LIB and PERLLIB are both empty. The parameters about install paths are not set in configure file (.cpan/CPAN/MyConfig.pm).
My question is where else is the install path for perl modules defined.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives