Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Install Module with no admin permission

by marto (Cardinal)
on Jul 05, 2017 at 12:51 UTC ( #1194239=note: print w/replies, xml ) Need Help??


in reply to Install Module with no admin permission

Your local::lib looks pretty old. Consider using cpanm over cpan, if you have local::lib configured it picks that up automatically: Where does this install modules to? Do I need root access?. It's also faster than cpan. For cpan:

cpan> o conf makepl_arg INSTALL_BASE=/home/username/perl cpan> o conf commit

From perlfaq8 -> How do I keep my own module/library directory?.

Replies are listed 'Best First'.
Re^2: Install Module with no admin permission
by avico78 (Novice) on Jul 05, 2017 at 13:55 UTC

    Tnx,so if the local::lib is old one , how can i install a new one as private module where im not the admin? I tried to run the command and received:

    [XXXX@illinXXXX ~/perl5]$ cpan>o conf makepl_arg INSTALL_BASE=/testuse +rs/env/test/XXXX/perl5 --2017-07-05 16:52:24-- http://mirror.teklinks.com/CPAN/authors/01mai +lrc.txt.gz Resolving mirror.teklinks.com (mirror.teklinks.com)... failed: Name or + service not known. wget: unable to resolve host address ‘mirror.teklinks.com’ --2017-07-05 16:52:24-- ftp://mirrors.sonic.net/cpan/authors/01mailrc +.txt.gz => ‘/testusers/env/test/XXXX/.cpan/sources/authors/01mailrc +.txt.gz.tmp16670’ Resolving mirrors.sonic.net (mirrors.sonic.net)... failed: Name or ser +vice not known. wget: unable to resolve host address ‘mirrors.sonic.net’ --2017-07-05 16:52:24-- ftp://mirror.team-cymru.org/CPAN/authors/01ma +ilrc.txt.gz => ‘/testusers/env/test/XXXX/.cpan/sources/authors/01mailrc +.txt.gz.tmp16670’ Resolving mirror.team-cymru.org (mirror.team-cymru.org)... failed: Nam +e or service not known. wget: unable to resolve host address ‘mirror.team-cymru.org’ --2017-07-05 16:52:24-- http://mirror.teklinks.com/CPAN/authors/01mai +lrc.txt.gz Resolving mirror.teklinks.com (mirror.teklinks.com)... failed: Name or + service not known. wget: unable to resolve host address ‘mirror.teklinks.com’ --2017-07-05 16:52:24-- ftp://mirrors.sonic.net/cpan/authors/01mailrc +.txt.gz => ‘/testusers/env/test/XXXX/.cpan/sources/authors/01mailrc +.txt.gz.tmp16670’ Resolving mirrors.sonic.net (mirrors.sonic.net)... failed: Name or ser +vice not known. wget: unable to resolve host address ‘mirrors.sonic.net’ --2017-07-05 16:52:24-- ftp://mirror.team-cymru.org/CPAN/authors/01ma +ilrc.txt.gz => ‘/testusers/env/test/XXXX/.cpan/sources/authors/01mailrc +.txt.gz.tmp16670’ Resolving mirror.team-cymru.org (mirror.team-cymru.org)... failed: Nam +e or service not known. wget: unable to resolve host address ‘mirror.team-cymru.org’ --2017-07-05 16:52:24-- http://mirror.teklinks.com/CPAN/authors/01mai +lrc.txt.gz Resolving mirror.teklinks.com (mirror.teklinks.com)... failed: Name or + service not known. wget: unable to resolve host address ‘mirror.teklinks.com’ --2017-07-05 16:52:24-- http://mirror.teklinks.com/CPAN/authors/01mai +lrc.txt.gz Resolving mirror.teklinks.com (mirror.teklinks.com)... failed: Name or + service not known. wget: unable to resolve host address ‘mirror.teklinks.com’ --2017-07-05 16:52:24-- ftp://mirrors.sonic.net/cpan/authors/01mailrc +.txt.gz => ‘/testusers/env/test/XXXX/.cpan/sources/authors/01mailrc +.txt.gz.tmp16670’ Resolving mirrors.sonic.net (mirrors.sonic.net)... failed: Name or ser +vice not known. wget: unable to resolve host address ‘mirrors.sonic.net’ --2017-07-05 16:52:24-- ftp://mirror.team-cymru.org/CPAN/authors/01ma +ilrc.txt.gz => ‘/testusers/env/test/XXXX/.cpan/sources/authors/01mailrc +.txt.gz.tmp16670’ Resolving mirror.team-cymru.org (mirror.team-cymru.org)... failed: Nam +e or service not known. wget: unable to resolve host address ‘mirror.team-cymru.org’ --2017-07-05 16:52:24-- ftp://mirrors.sonic.net/cpan/authors/01mailrc +.txt.gz => ‘/testusers/env/test/XXXX/.cpan/sources/authors/01mailrc +.txt.gz.tmp16670’ Resolving mirrors.sonic.net (mirrors.sonic.net)... failed: Name or ser +vice not known. wget: unable to resolve host address ‘mirrors.sonic.net’ --2017-07-05 16:52:24-- ftp://mirror.team-cymru.org/CPAN/authors/01ma +ilrc.txt.gz => ‘/testusers/env/test/XXXX/.cpan/sources/authors/01mailrc +.txt.gz.tmp16670’ Resolving mirror.team-cymru.org (mirror.team-cymru.org)... failed: Nam +e or service not known. wget: unable to resolve host address ‘mirror.team-cymru.org’
      Resolving mirror.team-cymru.org (mirror.team-cymru.org)... failed: Nam +e or service not known. wget: unable to resolve host address ‘mirror. +team-cymru.org’

      Looks like a networking problem. Can you access this from the command line of the machine in question? If not then you need to speak to your sys/network admins. If you can you may still need their help to configure cpan, e.g. WORKING WITH CPAN.pm BEHIND FIREWALLS. FWIW cpanm has fewer dependancies. I work mainly offline using a cpan mirror created by minicpan, copied onto our clients network, with no internet access.

        the machine i'm working on is very securied and no one will give internet access.. I must say it very frustrated i can't just download the modules put them in the folder do some Perl trick and thats it....:) why i cant just create the private folder with the modules i need without using the old one installed elsewhere? Is there some clear guide how to do it?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1194239]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2021-01-17 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?