Sean Girgis
asked on
Need Offline install Perl Packages ..
I work on an ubuntu Box in my company. I have limited Admin rights. I am behind firewall and proxy. cpan and cpanm not working. Need to be able to load packages and install manually on the box.
I can install on my windows personal and move the corporate box.
Can you give me directions?
I can install on my windows personal and move the corporate box.
Can you give me directions?
ASKER
Seems I asked a Question that has no answers. How do I close it? Is there any help out there to close it?
To accomplish this, you'll have to do a couple of things... which are complex...
1) Build module into private directory
2) Reference private directory either in export PERL5LIB=your-private-path in your bash startup file or using use lib your-private-path in your scripts.
All this is very ugly + easiest to accomplish this by manually building modules, where you can easily supply your private path... as in...
perl Makefile.PL INSTALL_BASE=your-private- path
Google for keywords related to install private cpan modules + you'll get an idea of how to accomplish this.
1) Build module into private directory
2) Reference private directory either in export PERL5LIB=your-private-path
All this is very ugly + easiest to accomplish this by manually building modules, where you can easily supply your private path... as in...
perl Makefile.PL INSTALL_BASE=your-private-
Google for keywords related to install private cpan modules + you'll get an idea of how to accomplish this.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
ASKER
Here is the error I get when trying to use cpan now.
cpan Date
Loading internal null logger. Install Log::Log4perl for logging messages
CPAN: Storable loaded ok (v2.53_01)
CPAN: LWP::UserAgent loaded ok (v6.15)
CPAN: Time::HiRes loaded ok (v1.9726)
Fetching with LWP:
http://www.cpan.org/authors/01mailrc.txt.gz
LWP failed with code[500] message[Can't connect to www.cpan.org:80]
Trying with
/usr/bin/wget -O "/home/itssg/.cpan/sources
to get
http://www.cpan.org/authors/01mailrc.txt.gz
--2017-05-10 14:45:22-- http://www.cpan.org/authors/01mailrc.txt.gz
Resolving www.cpan.org (www.cpan.org)... 151.101.50.49
Connecting to www.cpan.org (www.cpan.org)|151.101.50.49|:80... failed: Connection refused.
Function system("/usr/bin/wget -O "/home/itssg/.cpan/sources
returned status 4 (wstat 1024), left
/home/itssg/.cpan/sources/
Warning: no success downloading '/home/itssg/.cpan/sources
Trying with
/usr/bin/wget -O "/home/itssg/.cpan/sources
to get
http://www.cpan.org/authors/01mailrc.txt.gz
--2017-05-10 14:46:25-- http://www.cpan.org/authors/01mailrc.txt.gz
Resolving www.cpan.org (www.cpan.org)... 151.101.50.49
Connecting to www.cpan.org (www.cpan.org)|151.101.50.49|:80... failed: Connection refused.
Function system("/usr/bin/wget -O "/home/itssg/.cpan/sources
returned status 4 (wstat 1024), left
/home/itssg/.cpan/sources/
Warning: no success downloading '/home/itssg/.cpan/sources
No external ftp command available
Fetching with LWP:
http://www.cpan.org/authors/01mailrc.txt.gz
LWP failed with code[500] message[Can't connect to www.cpan.org:80]
Trying with
/usr/bin/wget -O "/home/itssg/.cpan/sources
to get
http://www.cpan.org/authors/01mailrc.txt.gz
--2017-05-10 14:48:31-- http://www.cpan.org/authors/01mailrc.txt.gz
Resolving www.cpan.org (www.cpan.org)... 151.101.50.49
Connecting to www.cpan.org (www.cpan.org)|151.101.50.49|:80... failed: Connection refused.
Function system("/usr/bin/wget -O "/home/itssg/.cpan/sources
returned status 4 (wstat 1024), left
/home/itssg/.cpan/sources/
Warning: no success downloading '/home/itssg/.cpan/sources
Trying with
/usr/bin/wget -O "/home/itssg/.cpan/sources
to get
http://www.cpan.org/authors/01mailrc.txt.gz
--2017-05-10 14:49:34-- http://www.cpan.org/authors/01mailrc.txt.gz
Resolving www.cpan.org (www.cpan.org)... 151.101.50.49
Connecting to www.cpan.org (www.cpan.org)|151.101.50.49|:80... failed: Connection refused.
Function system("/usr/bin/wget -O "/home/itssg/.cpan/sources
returned status 4 (wstat 1024), left
/home/itssg/.cpan/sources/
Warning: no success downloading '/home/itssg/.cpan/sources
No external ftp command available
Please check, if the URLs I found in your configuration file
(http://www.cpan.org/) are valid. The urllist can be edited. E.g. with 'o
conf urllist push ftp://myurl/'
Could not fetch authors/01mailrc.txt.gz