Link to home
Start Free TrialLog in
Avatar of Sean Girgis
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?
Avatar of Sean Girgis
Sean Girgis

ASKER

Just an additional piece of information, I was able to install minicpan.

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/authors/01mailrc.txt.gz.tmp34463"
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/authors/01mailrc.txt.gz.tmp34463" "http://www.cpan.org/authors/01mailrc.txt.gz" ")
    returned status 4 (wstat 1024), left
/home/itssg/.cpan/sources/authors/01mailrc.txt.gz.tmp34463 with size 0
    Warning: no success downloading '/home/itssg/.cpan/sources/authors/01mailrc.txt.gz.tmp34463'. Giving up on it.

Trying with
    /usr/bin/wget -O "/home/itssg/.cpan/sources/authors/01mailrc.txt.gz.tmp34463"
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/authors/01mailrc.txt.gz.tmp34463" "http://www.cpan.org/authors/01mailrc.txt.gz" ")
    returned status 4 (wstat 1024), left
/home/itssg/.cpan/sources/authors/01mailrc.txt.gz.tmp34463 with size 0
    Warning: no success downloading '/home/itssg/.cpan/sources/authors/01mailrc.txt.gz.tmp34463'. Giving up on it.
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/authors/01mailrc.txt.gz.tmp34463"
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/authors/01mailrc.txt.gz.tmp34463" "http://www.cpan.org/authors/01mailrc.txt.gz" ")
    returned status 4 (wstat 1024), left
/home/itssg/.cpan/sources/authors/01mailrc.txt.gz.tmp34463 with size 0
    Warning: no success downloading '/home/itssg/.cpan/sources/authors/01mailrc.txt.gz.tmp34463'. Giving up on it.

Trying with
    /usr/bin/wget -O "/home/itssg/.cpan/sources/authors/01mailrc.txt.gz.tmp34463"
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/authors/01mailrc.txt.gz.tmp34463" "http://www.cpan.org/authors/01mailrc.txt.gz" ")
    returned status 4 (wstat 1024), left
/home/itssg/.cpan/sources/authors/01mailrc.txt.gz.tmp34463 with size 0
    Warning: no success downloading '/home/itssg/.cpan/sources/authors/01mailrc.txt.gz.tmp34463'. Giving up on it.
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
Seems I asked a Question that has no answers. How do I close it? Is there any help out there to close it?
Avatar of David Favor
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.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members 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.