Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: Install Module with no admin permission

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


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

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.

Replies are listed 'Best First'.
Re^6: Install Module with no admin permission
by avico78 (Novice) on Jul 06, 2017 at 08:04 UTC

    I installed ExtUtils-MakeMaker-7.30

    [xxxp@illinxxx ExtUtils-MakeMaker-7.30]$ perl -Mlocal::lib Makefile.PL Using included version of Parse::CPAN::Meta (1.4414) because it is not + already installed. Using included version of CPAN::Meta (2.143240) because it is not alre +ady installed. Using included version of CPAN::Meta::YAML (0.011) because it is not a +lready installed. Using included version of JSON::PP (2.27203) because it is not already + installed. Using included version of ExtUtils::Manifest (1.70) as it is newer tha +n the installed version (1.61). Using included version of CPAN::Meta::Requirements (2.131) because it +is not already installed. Using included version of ExtUtils::Install (2.06) as it is newer than + the installed version (1.58). Generating a Unix-style Makefile Writing Makefile for ExtUtils::MakeMaker Writing MYMETA.yml and MYMETA.json ..make... ...make test return: [nadavp@illin4615 ExtUtils-MakeMaker-7.30]$ make test PERL_DL_NONLAZY=1 "/usr/bin/perl" "-Iblib/arch" "-Iblib/lib" "-MExtUti +ls::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switch +es; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00compile.t ............. ok t/01perl_bugs.t ........... ok t/02-xsdynamic.t .......... skipped: ExtUtils::CBuilder not installed +or couldn't find a compiler t/03-xsstatic.t ........... skipped: ExtUtils::CBuilder not installed +or couldn't find a compiler t/arch_check.t ............ ok t/backwards.t ............. ok t/basic.t ................. ok t/build_man.t ............. ok t/cd.t .................... ok ..... Result: PASS

    going back to local-lib-2.000023 and install

    [xxxx@illin4615 local-lib-2.000023]$ perl -Mlocal::lib Makefile.PL Warning: prerequisite ExtUtils::MakeMaker 7.00 not found. We have 6.68 +. Writing Makefile for local::lib

    ... I dont understand whats wrong, I install the ExtUtils::MakeMaker , I think locally but when i try to install the local::lib it still see the old verison of ExtUtils::MakeMaker

      "I dont understand whats wrong, I install the ExtUtils::MakeMaker , I think locally but when i try to install the local::lib it still see the old verison of ExtUtils::MakeMaker"

      Take a look at the instructions I posted, when boostrapping local::lib I include the path to where I installed EUMM v7. The instructions I gave you should be pretty much copy & paste.

      Can you show the output of make install too?

      ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
        [xxxxx@somemachine local-lib-2.000023]$ perl -I $HOME/perl5/lib Makefi +le.PL --bootstrap Dispatching deprecated method 'CPAN::Config::load' to CPAN::HandleConf +ig Dispatching deprecated method 'CPAN::Config::load' to CPAN::HandleConf +ig Fetching with LWP: http://mirror.teklinks.com/CPAN/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to mirror.teklinks.com +:80 (Bad hostname)] Trying with /usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan/sources/authors/ +01mailrc.txt.gz.tmp5064" to get http://mirror.teklinks.com/CPAN/authors/01mailrc.txt.gz --2017-07-06 16:19:57-- 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’ Function system("/usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan +/sources/authors/01mailrc.txt.gz.tmp5064" "http://mirror.teklinks.com +/CPAN/authors/01mailrc.txt.gz" ") returned status 4 (wstat 1024), left /testusers/env/test/xxxxx/.cpan/sources/authors/01mailrc.txt.gz.tmp506 +4 with size 0 Warning: no success downloading '/testusers/env/test/xxxxx/.cpan/s +ources/authors/01mailrc.txt.gz.tmp5064'. Giving up on it. Fetching with LWP: ftp://mirrors.sonic.net/cpan/authors/01mailrc.txt.gz LWP failed with code[500] message[LWP::Protocol::MyFTP: Bad hostname ' +mirrors.sonic.net'] Fetching with Net::FTP: ftp://mirrors.sonic.net/cpan/authors/01mailrc.txt.gz Could not connect to host 'mirrors.sonic.net' with Net::FTP Fetching with Net::FTP ftp://mirrors.sonic.net/cpan/authors/01mailrc.txt.gz.gz Could not connect to host 'mirrors.sonic.net' with Net::FTP Trying with /usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan/sources/authors/ +01mailrc.txt.gz.tmp5064" to get ftp://mirrors.sonic.net/cpan/authors/01mailrc.txt.gz --2017-07-06 16:19:57-- ftp://mirrors.sonic.net/cpan/authors/01mailrc +.txt.gz => ‘/testusers/env/test/xxxxx/.cpan/sources/authors/01mailr +c.txt.gz.tmp5064’ Resolving mirrors.sonic.net (mirrors.sonic.net)... failed: Name or ser +vice not known. wget: unable to resolve host address ‘mirrors.sonic.net’ Function system("/usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan +/sources/authors/01mailrc.txt.gz.tmp5064" "ftp://mirrors.sonic.net/cp +an/authors/01mailrc.txt.gz" ") returned status 4 (wstat 1024), left /testusers/env/test/xxxxx/.cpan/sources/authors/01mailrc.txt.gz.tmp506 +4 with size 0 Warning: no success downloading '/testusers/env/test/xxxxx/.cpan/s +ources/authors/01mailrc.txt.gz.tmp5064'. Giving up on it. Fetching with LWP: ftp://mirror.team-cymru.org/CPAN/authors/01mailrc.txt.gz LWP failed with code[500] message[LWP::Protocol::MyFTP: Bad hostname ' +mirror.team-cymru.org'] Fetching with Net::FTP: ftp://mirror.team-cymru.org/CPAN/authors/01mailrc.txt.gz Could not connect to host 'mirror.team-cymru.org' with Net::FTP Fetching with Net::FTP ftp://mirror.team-cymru.org/CPAN/authors/01mailrc.txt.gz.gz Could not connect to host 'mirror.team-cymru.org' with Net::FTP Trying with /usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan/sources/authors/ +01mailrc.txt.gz.tmp5064" to get ftp://mirror.team-cymru.org/CPAN/authors/01mailrc.txt.gz --2017-07-06 16:19:57-- ftp://mirror.team-cymru.org/CPAN/authors/01ma +ilrc.txt.gz => ‘/testusers/env/test/xxxxx/.cpan/sources/authors/01mailr +c.txt.gz.tmp5064’ 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’ Function system("/usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan +/sources/authors/01mailrc.txt.gz.tmp5064" "ftp://mirror.team-cymru.or +g/CPAN/authors/01mailrc.txt.gz" ") returned status 4 (wstat 1024), left /testusers/env/test/xxxxx/.cpan/sources/authors/01mailrc.txt.gz.tmp506 +4 with size 0 Warning: no success downloading '/testusers/env/test/xxxxx/.cpan/s +ources/authors/01mailrc.txt.gz.tmp5064'. Giving up on it. Trying with /usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan/sources/authors/ +01mailrc.txt.gz.tmp5064" to get http://mirror.teklinks.com/CPAN/authors/01mailrc.txt.gz --2017-07-06 16:19:57-- 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’ Function system("/usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan +/sources/authors/01mailrc.txt.gz.tmp5064" "http://mirror.teklinks.com +/CPAN/authors/01mailrc.txt.gz" ") returned status 4 (wstat 1024), left /testusers/env/test/xxxxx/.cpan/sources/authors/01mailrc.txt.gz.tmp506 +4 with size 0 Trying with /usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan/sources/authors/ +01mailrc.txt.gz.tmp5064" to get ftp://mirrors.sonic.net/cpan/authors/01mailrc.txt.gz --2017-07-06 16:19:57-- ftp://mirrors.sonic.net/cpan/authors/01mailrc +.txt.gz => ‘/testusers/env/test/xxxxx/.cpan/sources/authors/01mailr +c.txt.gz.tmp5064’ Resolving mirrors.sonic.net (mirrors.sonic.net)... failed: Name or ser +vice not known. wget: unable to resolve host address ‘mirrors.sonic.net’ Function system("/usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan +/sources/authors/01mailrc.txt.gz.tmp5064" "ftp://mirrors.sonic.net/cp +an/authors/01mailrc.txt.gz" ") returned status 4 (wstat 1024), left /testusers/env/test/xxxxx/.cpan/sources/authors/01mailrc.txt.gz.tmp506 +4 with size 0 Trying with /usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan/sources/authors/ +01mailrc.txt.gz.tmp5064" to get ftp://mirror.team-cymru.org/CPAN/authors/01mailrc.txt.gz --2017-07-06 16:19:57-- ftp://mirror.team-cymru.org/CPAN/authors/01ma +ilrc.txt.gz => ‘/testusers/env/test/xxxxx/.cpan/sources/authors/01mailr +c.txt.gz.tmp5064’ 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’ Function system("/usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan +/sources/authors/01mailrc.txt.gz.tmp5064" "ftp://mirror.team-cymru.or +g/CPAN/authors/01mailrc.txt.gz" ") returned status 4 (wstat 1024), left /testusers/env/test/xxxxx/.cpan/sources/authors/01mailrc.txt.gz.tmp506 +4 with size 0 Warning: no success downloading '/testusers/env/test/xxxxx/.cpan/s +ources/authors/01mailrc.txt.gz.tmp5064'. Giving up on it. No external ftp command available Fetching with LWP: http://mirror.teklinks.com/CPAN/authors/01mailrc.txt.gz LWP failed with code[500] message[Can't connect to mirror.teklinks.com +:80 (Bad hostname)] Trying with /usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan/sources/authors/ +01mailrc.txt.gz.tmp5064" to get http://mirror.teklinks.com/CPAN/authors/01mailrc.txt.gz --2017-07-06 16:19:57-- 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’ Function system("/usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan +/sources/authors/01mailrc.txt.gz.tmp5064" "http://mirror.teklinks.com +/CPAN/authors/01mailrc.txt.gz" ") returned status 4 (wstat 1024), left /testusers/env/test/xxxxx/.cpan/sources/authors/01mailrc.txt.gz.tmp506 +4 with size 0 Warning: no success downloading '/testusers/env/test/xxxxx/.cpan/s +ources/authors/01mailrc.txt.gz.tmp5064'. Giving up on it. Trying with /usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan/sources/authors/ +01mailrc.txt.gz.tmp5064" to get http://mirror.teklinks.com/CPAN/authors/01mailrc.txt.gz --2017-07-06 16:19:57-- 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’ Function system("/usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan +/sources/authors/01mailrc.txt.gz.tmp5064" "http://mirror.teklinks.com +/CPAN/authors/01mailrc.txt.gz" ") returned status 4 (wstat 1024), left /testusers/env/test/xxxxx/.cpan/sources/authors/01mailrc.txt.gz.tmp506 +4 with size 0 Warning: no success downloading '/testusers/env/test/xxxxx/.cpan/s +ources/authors/01mailrc.txt.gz.tmp5064'. Giving up on it. Fetching with LWP: ftp://mirrors.sonic.net/cpan/authors/01mailrc.txt.gz LWP failed with code[500] message[LWP::Protocol::MyFTP: Bad hostname ' +mirrors.sonic.net'] Fetching with Net::FTP: ftp://mirrors.sonic.net/cpan/authors/01mailrc.txt.gz Could not connect to host 'mirrors.sonic.net' with Net::FTP Fetching with Net::FTP ftp://mirrors.sonic.net/cpan/authors/01mailrc.txt.gz.gz Could not connect to host 'mirrors.sonic.net' with Net::FTP Trying with /usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan/sources/authors/ +01mailrc.txt.gz.tmp5064" to get ftp://mirrors.sonic.net/cpan/authors/01mailrc.txt.gz --2017-07-06 16:19:57-- ftp://mirrors.sonic.net/cpan/authors/01mailrc +.txt.gz => ‘/testusers/env/test/xxxxx/.cpan/sources/authors/01mailr +c.txt.gz.tmp5064’ Resolving mirrors.sonic.net (mirrors.sonic.net)... failed: Name or ser +vice not known. wget: unable to resolve host address ‘mirrors.sonic.net’ Function system("/usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan +/sources/authors/01mailrc.txt.gz.tmp5064" "ftp://mirrors.sonic.net/cp +an/authors/01mailrc.txt.gz" ") returned status 4 (wstat 1024), left /testusers/env/test/xxxxx/.cpan/sources/authors/01mailrc.txt.gz.tmp506 +4 with size 0 Warning: no success downloading '/testusers/env/test/xxxxx/.cpan/s +ources/authors/01mailrc.txt.gz.tmp5064'. Giving up on it. Fetching with LWP: ftp://mirror.team-cymru.org/CPAN/authors/01mailrc.txt.gz LWP failed with code[500] message[LWP::Protocol::MyFTP: Bad hostname ' +mirror.team-cymru.org'] Fetching with Net::FTP: ftp://mirror.team-cymru.org/CPAN/authors/01mailrc.txt.gz Could not connect to host 'mirror.team-cymru.org' with Net::FTP Fetching with Net::FTP ftp://mirror.team-cymru.org/CPAN/authors/01mailrc.txt.gz.gz Could not connect to host 'mirror.team-cymru.org' with Net::FTP Trying with /usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan/sources/authors/ +01mailrc.txt.gz.tmp5064" to get ftp://mirror.team-cymru.org/CPAN/authors/01mailrc.txt.gz --2017-07-06 16:19:57-- ftp://mirror.team-cymru.org/CPAN/authors/01ma +ilrc.txt.gz => ‘/testusers/env/test/xxxxx/.cpan/sources/authors/01mailr +c.txt.gz.tmp5064’ 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’ Function system("/usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan +/sources/authors/01mailrc.txt.gz.tmp5064" "ftp://mirror.team-cymru.or +g/CPAN/authors/01mailrc.txt.gz" ") returned status 4 (wstat 1024), left /testusers/env/test/xxxxx/.cpan/sources/authors/01mailrc.txt.gz.tmp506 +4 with size 0 Warning: no success downloading '/testusers/env/test/xxxxx/.cpan/s +ources/authors/01mailrc.txt.gz.tmp5064'. Giving up on it. Trying with /usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan/sources/authors/ +01mailrc.txt.gz.tmp5064" to get ftp://mirrors.sonic.net/cpan/authors/01mailrc.txt.gz --2017-07-06 16:19:57-- ftp://mirrors.sonic.net/cpan/authors/01mailrc +.txt.gz => ‘/testusers/env/test/xxxxx/.cpan/sources/authors/01mailr +c.txt.gz.tmp5064’ Resolving mirrors.sonic.net (mirrors.sonic.net)... failed: Name or ser +vice not known. wget: unable to resolve host address ‘mirrors.sonic.net’ Function system("/usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan +/sources/authors/01mailrc.txt.gz.tmp5064" "ftp://mirrors.sonic.net/cp +an/authors/01mailrc.txt.gz" ") returned status 4 (wstat 1024), left /testusers/env/test/xxxxx/.cpan/sources/authors/01mailrc.txt.gz.tmp506 +4 with size 0 Trying with /usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan/sources/authors/ +01mailrc.txt.gz.tmp5064" to get ftp://mirror.team-cymru.org/CPAN/authors/01mailrc.txt.gz --2017-07-06 16:19:57-- ftp://mirror.team-cymru.org/CPAN/authors/01ma +ilrc.txt.gz => ‘/testusers/env/test/xxxxx/.cpan/sources/authors/01mailr +c.txt.gz.tmp5064’ 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’ Function system("/usr/bin/wget -O "/testusers/env/test/xxxxx/.cpan +/sources/authors/01mailrc.txt.gz.tmp5064" "ftp://mirror.team-cymru.or +g/CPAN/authors/01mailrc.txt.gz" ") returned status 4 (wstat 1024), left /testusers/env/test/xxxxx/.cpan/sources/authors/01mailrc.txt.gz.tmp506 +4 with size 0 Warning: no success downloading '/testusers/env/test/xxxxx/.cpan/s +ources/authors/01mailrc.txt.gz.tmp5064'. Giving up on it. No external ftp command available Please check, if the URLs I found in your configuration file (http://mirror.teklinks.com/CPAN/, ftp://mirrors.sonic.net/cpan/, ftp://mirror.team-cymru.org/CPAN/) are valid. The urllist can be edite +d. E.g. with 'o conf urllist push ftp://myurl/' Could not fetch authors/01mailrc.txt.gz BEGIN failed--compilation aborted. Warning: prerequisite ExtUtils::MakeMaker 7.00 not found. We have 6.68 +. Writing Makefile for local::lib

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2020-12-02 00:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (25 votes). Check out past polls.

    Notices?