Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Install Module with no admin permission

by avico78 (Novice)
on Jul 05, 2017 at 13:55 UTC ( #1194244=note: print w/replies, xml ) Need Help??


in reply to Re: Install Module with no admin permission
in thread Install Module with no admin permission

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’

Replies are listed 'Best First'.
Re^3: Install Module with no admin permission
by marto (Cardinal) on Jul 05, 2017 at 14:21 UTC
    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?

        This is exactly the situation I'm in, at home or elsewhere create a minicpan, transfer it using the clients signed off mechanism, extract and then install via cpanm as normal. Another alternative would be to install your own version of perl specific to your application elsewhere on the system. One argument for doing so is leaving the system perl alone, which could be a convincing argument for this course of action given the environment in which you are working.

        So local::lib now has a prerequsite of EUMM v7. You seem to have a method for transferring files onto this system somehow, here's a method for getting an up to date EUMM & local::lib installed. In my example below ignore the wgets for the packages, I'll leave them in for a complete end to end illustration:

        marto@pihost:~$ perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for arm-linux +-gnueabihf-thread-multi-64int ........ marto@pihost:~$ wget http://search.cpan.org/CPAN/authors/id/H/HA/HAARG +/local-lib-2.000023.tar.gz marto@pihost:~$ wget http://search.cpan.org/CPAN/authors/id/B/BI/BINGO +S/ExtUtils-MakeMaker-7.30.tar.gz marto@pihost:~$ tar xzf ExtUtils-MakeMaker-7.30.tar.gz marto@pihost:~$ cd ExtUtils-MakeMaker-7.30/ marto@pihost:~$ perl Makefile.PL INSTALL_BASE=$HOME/perl5 marto@pihost:~$ make marto@pihost:~$ make test marto@pihost:~$ make install marto@pihost:~$ cd .. marto@pihost:~$ tar xzf local-lib-2.000023.tar.gz marto@pihost:~$ cd local-lib-2.000023/ marto@pihost:~$ perl -I $HOME/perl5/lib Makefile.PL --bootstrap marto@pihost:~$ make marto@pihost:~$ make test marto@pihost:~$ make install

        Now follow the remainder of the local::lib config. As mentioned earlier a minicpan is a great advantage working the sort of envrionements you and I seem to. After the above I installed cpanm and was able to use it to automatically install modules without issue. Let me know if this causes any problems.

        Update: As mentioned earlier, we installed our own perl, which is far more recent than the system perl, in another directory, and all our apps use this. Negates lots of issues. Our client saw this as a sane and logical suggestion, keeping clear of the system perl.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2021-01-24 00:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?