http://www.perlmonks.org?node_id=1163701


in reply to Re^3: How to add path to @INC
in thread How to add path to @INC

I donīt know what to do with the comand that you post! How can I reinstall TryCatcher in other directory?

When I try install it again through cpan I have the test failed:

# Failed test 'use TryCatch;' # at t/catch_01.t line 6. # Tried to use 'TryCatch'. # Error: Can't locate Scope/Upper.pm in @INC (you may need to ins +tall the Scope::Upper module) (@INC contains: /home/uce/.cpan/build/T +ryCatch-1.003002-hybwUs/inc /home/uce/.cpan/build/TryCatch-1.003002-h +ybwUs/blib/lib /home/uce/.cpan/build/TryCatch-1.003002-hybwUs/blib/ar +ch /usr/local/lib/perl5/site_perl/5.24.0/x86_64-linux /usr/local/lib/ +perl5/site_perl/5.24.0 /usr/local/lib/perl5/5.24.0/x86_64-linux /usr/ +local/lib/perl5/5.24.0 .) at /home/uce/.cpan/build/TryCatch-1.003002- +hybwUs/blib/lib/TryCatch.pm line 13. # BEGIN failed--compilation aborted at /home/uce/.cpan/build/TryCatch- +1.003002-hybwUs/blib/lib/TryCatch.pm line 13. # Compilation failed in require at t/catch_01.t line 6. # BEGIN failed--compilation aborted at t/catch_01.t line 6. # Tests were run but no plan was declared and done_testing() was not s +een. # Looks like your test exited with 255 just after 1. FAILED--Further testing stopped: Cannot load TryCatch make: ** [test_dynamic] Erro 255 ASH/TryCatch-1.003002.tar.gz one dependency not OK (Scope::Upper); additionally test harness failed /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports ASH/TryCatch-1.003002.tar.gz Failed during this command: VPIT/Scope-Upper-0.28.tar.gz : make NO ASH/TryCatch-1.003002.tar.gz : make_test NO one depen +dency not OK (Scope::Upper); additionally test harness failed

The Scope::Upper module is already installed too but in the directory ~/.cpan/build/Scope-Upper-0.28-DoTw6Z/lib

What should I do to make it in the right directory

Replies are listed 'Best First'.
Re^5: How to add path to @INC
by choroba (Cardinal) on May 20, 2016 at 23:41 UTC
    Scope::Upper doesn't work in 5.24, see CPAN Testers.

    Again, ~/.cpan/build/Scope-Upper-0.28-DoTw6Z/lib isn't a place where Scope::Upper is installed, it's the place where your CPAN client tries to build the module and install it from there to its desired location (probably /usr/local/lib/perl5).

    ($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,