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

This is what I got:

Warning: prerequisite Scope::Upper 0.06 not found. 'EXPATINCPATH' is not a known MakeMaker parameter name. 'EXPATLIBPATH' is not a known MakeMaker parameter name. Generating a Unix-style Makefile Writing Makefile for TryCatch Writing MYMETA.yml and MYMETA.json ASH/TryCatch-1.003002.tar.gz /usr/local/bin/perl Makefile.PL EXPATLIBPATH=/non-standard/lib EXPAT +INCPATH=/non-standard/include -- OK Running make for A/AS/ASH/TryCatch-1.003002.tar.gz ---- Unsatisfied dependencies detected during ---- ---- ASH/TryCatch-1.003002.tar.gz ---- Scope::Upper [requires] Running install for module 'Scope::Upper' Checksum for /home/uce/.cpan/sources/authors/id/V/VP/VPIT/Scope-Upper- +0.28.tar.gz ok Configuring V/VP/VPIT/Scope-Upper-0.28.tar.gz with Makefile.PL Checking if this is an official release of perl... yes Checking if this is gcc 3.4 on Windows trying to link against an impor +t library... no Checking if your kit is complete... Looks good 'EXPATINCPATH' is not a known MakeMaker parameter name. 'EXPATLIBPATH' is not a known MakeMaker parameter name. Generating a Unix-style Makefile Writing Makefile for Scope::Upper Writing MYMETA.yml and MYMETA.json VPIT/Scope-Upper-0.28.tar.gz /usr/local/bin/perl Makefile.PL EXPATLIBPATH=/non-standard/lib EXPAT +INCPATH=/non-standard/include -- OK Running make for V/VP/VPIT/Scope-Upper-0.28.tar.gz cp lib/Scope/Upper.pm blib/lib/Scope/Upper.pm Running Mkbootstrap for Upper () chmod 644 "Upper.bs" "/usr/local/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Uppe +r.bs blib/arch/auto/Scope/Upper/Upper.bs 644 "/usr/local/bin/perl" "/usr/local/lib/perl5/5.24.0/ExtUtils/xsubpp" - +typemap '/usr/local/lib/perl5/5.24.0/ExtUtils/typemap' Upper.xs > Up +per.xsc mv Upper.xsc Upper.c cc -c -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/lo +cal/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSIO +N=\"0.28\" -DXS_VERSION=\"0.28\" -fPIC "-I/usr/local/lib/perl5/5.24.0 +/x86_64-linux/CORE" -DSU_RELEASE=1 Upper.c Upper.xs: In function ‘su_yield’: Upper.xs:1331:11: error: ‘CXt_LOOP_FOR’ undeclared (first use in this +function) case CXt_LOOP_FOR: ^ Upper.xs:1331:11: note: each undeclared identifier is reported only on +ce for each function it appears in Upper.xs: In function ‘su_uplevel_goto_runops’: Upper.xs:1543:30: error: ‘const struct block_sub’ has no member named +‘argarray’ argarray = cx->blk_sub.argarray; ^ In file included from /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/pe +rl.h:2684:0, from Upper.xs:6: Upper.xs: In function ‘su_uplevel_restore’: Upper.xs:1618:28: error: ‘struct block_sub’ has no member named ‘argar +ray’ SvREFCNT_dec(cx->blk_sub.argarray); ^ /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/handy.h:64:41: note: in +definition of macro ‘MUTABLE_PTR’ # define MUTABLE_PTR(p) ({ void *_p = (p); _p; }) ^ /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/sv.h:347:47: note: in ex +pansion of macro ‘MUTABLE_SV’ #define SvREFCNT_dec(sv) S_SvREFCNT_dec(aTHX_ MUTABLE_SV(sv)) ^ Upper.xs:1618:4: note: in expansion of macro ‘SvREFCNT_dec’ SvREFCNT_dec(cx->blk_sub.argarray); ^ Upper.xs:1619:15: error: ‘struct block_sub’ has no member named ‘argar +ray’ cx->blk_sub.argarray = argarray; ^ Upper.xs: In function ‘su_uplevel’: Upper.xs:1930:35: error: ‘const struct block_sub’ has no member named +‘argarray’ if (CxHASARGS(cx) && cx->blk_sub.argarray) { ^ In file included from /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/pe +rl.h:5609:0, from Upper.xs:6: Upper.xs:1939:35: error: ‘const struct block_sub’ has no member named +‘argarray’ av_extend(av, AvMAX(cx->blk_sub.argarray)); ^ /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/embed.h:55:48: note: in +definition of macro ‘av_extend’ #define av_extend(a,b) Perl_av_extend(aTHX_ a,b) ^ /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/av.h:64:30: note: in exp +ansion of macro ‘SvANY’ #define AvMAX(av) ((XPVAV*) SvANY(av))->xav_max ^ Upper.xs:1939:18: note: in expansion of macro ‘AvMAX’ av_extend(av, AvMAX(cx->blk_sub.argarray)); ^ In file included from /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/pe +rl.h:3895:0, from Upper.xs:6: Upper.xs:1940:37: error: ‘const struct block_sub’ has no member named +‘argarray’ AvFILLp(av) = AvFILLp(cx->blk_sub.argarray); ^ /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/sv.h:332:20: note: in de +finition of macro ‘SvANY’ #define SvANY(sv) (sv)->sv_any ^ Upper.xs:1940:18: note: in expansion of macro ‘AvFILLp’ AvFILLp(av) = AvFILLp(cx->blk_sub.argarray); ^ In file included from /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/pe +rl.h:2684:0, from Upper.xs:6: Upper.xs:1941:28: error: ‘const struct block_sub’ has no member named +‘argarray’ Copy(AvARRAY(cx->blk_sub.argarray), AvARRAY(av), AvFILLp(av) + 1, +SV *); ^ /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/handy.h:2110:83: note: i +n definition of macro ‘Copy’ #define Copy(s,d,n,t) (MEM_WRAP_CHECK_(n,t) (void)memcpy((char*)(d),( +const char*)(s), (n) * sizeof(t))) + ^ Upper.xs:1941:9: note: in expansion of macro ‘AvARRAY’ Copy(AvARRAY(cx->blk_sub.argarray), AvARRAY(av), AvFILLp(av) + 1, +SV *); ^ Upper.xs:1942:19: error: ‘struct block_sub’ has no member named ‘argar +ray’ sub_cx->blk_sub.argarray = av; ^ In file included from /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/pe +rl.h:3895:0, from Upper.xs:6: Upper.xs:1944:44: error: ‘struct block_sub’ has no member named ‘argar +ray’ SvREFCNT_inc_simple_void(sub_cx->blk_sub.argarray); ^ /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/sv.h:342:55: note: in de +finition of macro ‘SvREFCNT_inc_simple_void’ #define SvREFCNT_inc_simple_void(sv) STMT_START { if (sv) SvREFCNT(sv +)++; } STMT_END ^ Upper.xs:1944:44: error: ‘struct block_sub’ has no member named ‘argar +ray’ SvREFCNT_inc_simple_void(sub_cx->blk_sub.argarray); ^ /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/sv.h:334:23: note: in de +finition of macro ‘SvREFCNT’ #define SvREFCNT(sv) (sv)->sv_refcnt ^ Upper.xs:1944:4: note: in expansion of macro ‘SvREFCNT_inc_simple_void +’ SvREFCNT_inc_simple_void(sub_cx->blk_sub.argarray); ^ Upper.xs: In function ‘su_context_gimme’: Upper.xs:2238:9: error: ‘CXt_LOOP_FOR’ undeclared (first use in this f +unction) case CXt_LOOP_FOR: ^ Upper.xs: In function ‘XS_Scope__Upper_context_info’: Upper.xs:2740:2: warning: null argument where non-null required (argum +ent 1) [-Wnonnull] PUSHs(su_newmortal_pvn(OutCopFILE(cop), OutCopFILE_len(cop))); ^ make: ** [Upper.o] Erro 1 VPIT/Scope-Upper-0.28.tar.gz /usr/bin/make -- NOT OK ASH/TryCatch-1.003002.tar.gz Has already been unwrapped into directory /home/uce/.cpan/build/TryC +atch-1.003002-rJbpga ASH/TryCatch-1.003002.tar.gz Has already been prepared Running make for A/AS/ASH/TryCatch-1.003002.tar.gz Warning: Prerequisite 'Scope::Upper => 0.06' for 'ASH/TryCatch-1.00300 +2.tar.gz' failed when processing 'VPIT/Scope-Upper-0.28.tar.gz' with +'make => NO'. Continuing, but chances to succeed are limited. cp lib/TryCatch.pm blib/lib/TryCatch.pm Running Mkbootstrap for TryCatch () chmod 644 "TryCatch.bs" "/usr/local/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' + -- TryCatch.bs blib/arch/auto/TryCatch/TryCatch.bs 644 "/usr/local/bin/perl" "-Iinc" "/usr/local/lib/perl5/5.24.0/ExtUtils/xs +ubpp" -typemap '/usr/local/lib/perl5/5.24.0/ExtUtils/typemap' TryCa +tch.xs > TryCatch.xsc mv TryCatch.xsc TryCatch.c cc -c -I/home/uce/.cpan/build/TryCatch-1.003002-rJbpga/inc/EUDeps/B/H +ooks/OP/Check/Install -I/home/uce/.cpan/build/TryCatch-1.003002-rJbpg +a/inc/EUDeps/B/Hooks/OP/PPAddr/Install -fwrapv -fno-strict-aliasing - +pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FI +LE_OFFSET_BITS=64 -O2 -DVERSION=\"1.003002\" -DXS_VERSION=\"1.00300 +2\" -fPIC "-I/usr/local/lib/perl5/5.24.0/x86_64-linux/CORE" TryCatc +h.c TryCatch.xs: In function ‘try_return’: TryCatch.xs:72:7: warning: format ‘%d’ expects argument of type ‘int’, + but argument 2 has type ‘IV’ [-Wformat=] printf("have a $CTX of %d\n", SvIV(ctx)); ^ In file included from /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/pe +rl.h:5609:0, from TryCatch.xs:2: TryCatch.c: In function ‘XS_TryCatch__XS_uninstall_op_checks’: /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/embed.h:62:35: warning: +ignoring return value of ‘Perl_av_shift’, declared with attribute war +n_unused_result [-Wunused-result] #define av_shift(a) Perl_av_shift(aTHX_ a) ^ TryCatch.xs:263:5: note: in expansion of macro ‘av_shift’ av_shift(av); ^ rm -f blib/arch/auto/TryCatch/TryCatch.so cc -shared -O2 -L/usr/local/lib -fstack-protector -o blib/arch/auto/T +ryCatch/TryCatch.so TryCatch.o \ \ chmod 755 blib/arch/auto/TryCatch/TryCatch.so Manifying 1 pod document ASH/TryCatch-1.003002.tar.gz /usr/bin/make -- OK Running make test "/usr/local/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' + -- TryCatch.bs blib/arch/auto/TryCatch/TryCatch.bs 644 PERL_DL_NONLAZY=1 "/usr/local/bin/perl" "-MExtUtils::Command::MM" "-MT +est::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, ' +inc', 'blib/lib', 'blib/arch')" t/catch_01.t t/context.t t/destroy.t +t/handwritten.t t/invalid.t t/method.t t/mx_types_structured.t t/nest +ed.t t/simple.t t/types.t t/xml_sax_expat.t t/catch_01.t ............. 1/? Bailout called. Further testing stoppe +d: Cannot load TryCatch # 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-rJbpga/inc /home/uce/.cpan/build/TryCatch-1.003002-r +Jbpga/blib/lib /home/uce/.cpan/build/TryCatch-1.003002-rJbpga/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- +rJbpga/blib/lib/TryCatch.pm line 13. # BEGIN failed--compilation aborted at /home/uce/.cpan/build/TryCatch- +1.003002-rJbpga/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 uce@uce-HP-Z400-Workstation:~/SOFTWARE_UCEs/CLUMPAK/GD-2.56$ cpan -i T +ryCatch Reading '/home/uce/.cpan/Metadata' Database was generated on Fri, 20 May 2016 02:53:34 GMT Running install for module 'TryCatch' Checksum for /home/uce/.cpan/sources/authors/id/A/AS/ASH/TryCatch-1.00 +3002.tar.gz ok Configuring A/AS/ASH/TryCatch-1.003002.tar.gz with Makefile.PL *** Module::AutoInstall version 1.06 *** Checking for Perl dependencies... *** Since we're running under CPAN, I'll just let it take care of the dependency's installation later. [Core Features] - Test::More ...loaded. (1.001014 >= 0.88) - Test::Exception ...loaded. (0.43) - B::Hooks::OP::PPAddr ...loaded. (0.03 >= 0.03) - B::Hooks::OP::Check ...loaded. (0.19 >= 0.18) - Parse::Method::Signatures ...loaded. (1.003016 >= 1.003012) - B::Hooks::EndOfScope ...loaded. (0.20 >= 0.12) - Devel::Declare ...loaded. (0.006018 >= 0.005007) - Moose ...loaded. (2.1801) - MooseX::Types ...loaded. (0.46) - Scope::Upper ...missing. (would need 0.06) - Variable::Magic ...loaded. (0.59 >= 0.28) - Sub::Exporter ...loaded. (0.987 >= 0.979) - XSLoader ...loaded. (0.21) - namespace::clean ...loaded. (0.27 >= 0.20) *** Module::AutoInstall configuration finished. Checking if your kit is complete... Looks good Warning: prerequisite Scope::Upper 0.06 not found. 'EXPATINCPATH' is not a known MakeMaker parameter name. 'EXPATLIBPATH' is not a known MakeMaker parameter name. Generating a Unix-style Makefile Writing Makefile for TryCatch Writing MYMETA.yml and MYMETA.json ASH/TryCatch-1.003002.tar.gz /usr/local/bin/perl Makefile.PL EXPATLIBPATH=/non-standard/lib EXPAT +INCPATH=/non-standard/include -- OK Running make for A/AS/ASH/TryCatch-1.003002.tar.gz ---- Unsatisfied dependencies detected during ---- ---- ASH/TryCatch-1.003002.tar.gz ---- Scope::Upper [requires] Running install for module 'Scope::Upper' Checksum for /home/uce/.cpan/sources/authors/id/V/VP/VPIT/Scope-Upper- +0.28.tar.gz ok Configuring V/VP/VPIT/Scope-Upper-0.28.tar.gz with Makefile.PL Checking if this is an official release of perl... yes Checking if this is gcc 3.4 on Windows trying to link against an impor +t library... no Checking if your kit is complete... Looks good 'EXPATINCPATH' is not a known MakeMaker parameter name. 'EXPATLIBPATH' is not a known MakeMaker parameter name. Generating a Unix-style Makefile Writing Makefile for Scope::Upper Writing MYMETA.yml and MYMETA.json VPIT/Scope-Upper-0.28.tar.gz /usr/local/bin/perl Makefile.PL EXPATLIBPATH=/non-standard/lib EXPAT +INCPATH=/non-standard/include -- OK Running make for V/VP/VPIT/Scope-Upper-0.28.tar.gz cp lib/Scope/Upper.pm blib/lib/Scope/Upper.pm Running Mkbootstrap for Upper () chmod 644 "Upper.bs" "/usr/local/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Uppe +r.bs blib/arch/auto/Scope/Upper/Upper.bs 644 "/usr/local/bin/perl" "/usr/local/lib/perl5/5.24.0/ExtUtils/xsubpp" - +typemap '/usr/local/lib/perl5/5.24.0/ExtUtils/typemap' Upper.xs > Up +per.xsc mv Upper.xsc Upper.c cc -c -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/lo +cal/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSIO +N=\"0.28\" -DXS_VERSION=\"0.28\" -fPIC "-I/usr/local/lib/perl5/5.24.0 +/x86_64-linux/CORE" -DSU_RELEASE=1 Upper.c Upper.xs: In function ‘su_yield’: Upper.xs:1331:11: error: ‘CXt_LOOP_FOR’ undeclared (first use in this +function) case CXt_LOOP_FOR: ^ Upper.xs:1331:11: note: each undeclared identifier is reported only on +ce for each function it appears in Upper.xs: In function ‘su_uplevel_goto_runops’: Upper.xs:1543:30: error: ‘const struct block_sub’ has no member named +‘argarray’ argarray = cx->blk_sub.argarray; ^ In file included from /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/pe +rl.h:2684:0, from Upper.xs:6: Upper.xs: In function ‘su_uplevel_restore’: Upper.xs:1618:28: error: ‘struct block_sub’ has no member named ‘argar +ray’ SvREFCNT_dec(cx->blk_sub.argarray); ^ /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/handy.h:64:41: note: in +definition of macro ‘MUTABLE_PTR’ # define MUTABLE_PTR(p) ({ void *_p = (p); _p; }) ^ /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/sv.h:347:47: note: in ex +pansion of macro ‘MUTABLE_SV’ #define SvREFCNT_dec(sv) S_SvREFCNT_dec(aTHX_ MUTABLE_SV(sv)) ^ Upper.xs:1618:4: note: in expansion of macro ‘SvREFCNT_dec’ SvREFCNT_dec(cx->blk_sub.argarray); ^ Upper.xs:1619:15: error: ‘struct block_sub’ has no member named ‘argar +ray’ cx->blk_sub.argarray = argarray; ^ Upper.xs: In function ‘su_uplevel’: Upper.xs:1930:35: error: ‘const struct block_sub’ has no member named +‘argarray’ if (CxHASARGS(cx) && cx->blk_sub.argarray) { ^ In file included from /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/pe +rl.h:5609:0, from Upper.xs:6: Upper.xs:1939:35: error: ‘const struct block_sub’ has no member named +‘argarray’ av_extend(av, AvMAX(cx->blk_sub.argarray)); ^ /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/embed.h:55:48: note: in +definition of macro ‘av_extend’ #define av_extend(a,b) Perl_av_extend(aTHX_ a,b) ^ /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/av.h:64:30: note: in exp +ansion of macro ‘SvANY’ #define AvMAX(av) ((XPVAV*) SvANY(av))->xav_max ^ Upper.xs:1939:18: note: in expansion of macro ‘AvMAX’ av_extend(av, AvMAX(cx->blk_sub.argarray)); ^ In file included from /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/pe +rl.h:3895:0, from Upper.xs:6: Upper.xs:1940:37: error: ‘const struct block_sub’ has no member named +‘argarray’ AvFILLp(av) = AvFILLp(cx->blk_sub.argarray); ^ /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/sv.h:332:20: note: in de +finition of macro ‘SvANY’ #define SvANY(sv) (sv)->sv_any ^ Upper.xs:1940:18: note: in expansion of macro ‘AvFILLp’ AvFILLp(av) = AvFILLp(cx->blk_sub.argarray); ^ In file included from /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/pe +rl.h:2684:0, from Upper.xs:6: Upper.xs:1941:28: error: ‘const struct block_sub’ has no member named +‘argarray’ Copy(AvARRAY(cx->blk_sub.argarray), AvARRAY(av), AvFILLp(av) + 1, +SV *); ^ /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/handy.h:2110:83: note: i +n definition of macro ‘Copy’ #define Copy(s,d,n,t) (MEM_WRAP_CHECK_(n,t) (void)memcpy((char*)(d),( +const char*)(s), (n) * sizeof(t))) + ^ Upper.xs:1941:9: note: in expansion of macro ‘AvARRAY’ Copy(AvARRAY(cx->blk_sub.argarray), AvARRAY(av), AvFILLp(av) + 1, +SV *); ^ Upper.xs:1942:19: error: ‘struct block_sub’ has no member named ‘argar +ray’ sub_cx->blk_sub.argarray = av; ^ In file included from /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/pe +rl.h:3895:0, from Upper.xs:6: Upper.xs:1944:44: error: ‘struct block_sub’ has no member named ‘argar +ray’ SvREFCNT_inc_simple_void(sub_cx->blk_sub.argarray); ^ /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/sv.h:342:55: note: in de +finition of macro ‘SvREFCNT_inc_simple_void’ #define SvREFCNT_inc_simple_void(sv) STMT_START { if (sv) SvREFCNT(sv +)++; } STMT_END ^ Upper.xs:1944:44: error: ‘struct block_sub’ has no member named ‘argar +ray’ SvREFCNT_inc_simple_void(sub_cx->blk_sub.argarray); ^ /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/sv.h:334:23: note: in de +finition of macro ‘SvREFCNT’ #define SvREFCNT(sv) (sv)->sv_refcnt ^ Upper.xs:1944:4: note: in expansion of macro ‘SvREFCNT_inc_simple_void +’ SvREFCNT_inc_simple_void(sub_cx->blk_sub.argarray); ^ Upper.xs: In function ‘su_context_gimme’: Upper.xs:2238:9: error: ‘CXt_LOOP_FOR’ undeclared (first use in this f +unction) case CXt_LOOP_FOR: ^ Upper.xs: In function ‘XS_Scope__Upper_context_info’: Upper.xs:2740:2: warning: null argument where non-null required (argum +ent 1) [-Wnonnull] PUSHs(su_newmortal_pvn(OutCopFILE(cop), OutCopFILE_len(cop))); ^ make: ** [Upper.o] Erro 1 VPIT/Scope-Upper-0.28.tar.gz /usr/bin/make -- NOT OK ASH/TryCatch-1.003002.tar.gz Has already been unwrapped into directory /home/uce/.cpan/build/TryC +atch-1.003002-sMP1EG ASH/TryCatch-1.003002.tar.gz Has already been prepared Running make for A/AS/ASH/TryCatch-1.003002.tar.gz Warning: Prerequisite 'Scope::Upper => 0.06' for 'ASH/TryCatch-1.00300 +2.tar.gz' failed when processing 'VPIT/Scope-Upper-0.28.tar.gz' with +'make => NO'. Continuing, but chances to succeed are limited. cp lib/TryCatch.pm blib/lib/TryCatch.pm Running Mkbootstrap for TryCatch () chmod 644 "TryCatch.bs" "/usr/local/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' + -- TryCatch.bs blib/arch/auto/TryCatch/TryCatch.bs 644 "/usr/local/bin/perl" "-Iinc" "/usr/local/lib/perl5/5.24.0/ExtUtils/xs +ubpp" -typemap '/usr/local/lib/perl5/5.24.0/ExtUtils/typemap' TryCa +tch.xs > TryCatch.xsc mv TryCatch.xsc TryCatch.c cc -c -I/home/uce/.cpan/build/TryCatch-1.003002-sMP1EG/inc/EUDeps/B/H +ooks/OP/Check/Install -I/home/uce/.cpan/build/TryCatch-1.003002-sMP1E +G/inc/EUDeps/B/Hooks/OP/PPAddr/Install -fwrapv -fno-strict-aliasing - +pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FI +LE_OFFSET_BITS=64 -O2 -DVERSION=\"1.003002\" -DXS_VERSION=\"1.00300 +2\" -fPIC "-I/usr/local/lib/perl5/5.24.0/x86_64-linux/CORE" TryCatc +h.c TryCatch.xs: In function ‘try_return’: TryCatch.xs:72:7: warning: format ‘%d’ expects argument of type ‘int’, + but argument 2 has type ‘IV’ [-Wformat=] printf("have a $CTX of %d\n", SvIV(ctx)); ^ In file included from /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/pe +rl.h:5609:0, from TryCatch.xs:2: TryCatch.c: In function ‘XS_TryCatch__XS_uninstall_op_checks’: /usr/local/lib/perl5/5.24.0/x86_64-linux/CORE/embed.h:62:35: warning: +ignoring return value of ‘Perl_av_shift’, declared with attribute war +n_unused_result [-Wunused-result] #define av_shift(a) Perl_av_shift(aTHX_ a) ^ TryCatch.xs:263:5: note: in expansion of macro ‘av_shift’ av_shift(av); ^ rm -f blib/arch/auto/TryCatch/TryCatch.so cc -shared -O2 -L/usr/local/lib -fstack-protector -o blib/arch/auto/T +ryCatch/TryCatch.so TryCatch.o \ \ chmod 755 blib/arch/auto/TryCatch/TryCatch.so Manifying 1 pod document ASH/TryCatch-1.003002.tar.gz /usr/bin/make -- OK Running make test "/usr/local/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' + -- TryCatch.bs blib/arch/auto/TryCatch/TryCatch.bs 644 PERL_DL_NONLAZY=1 "/usr/local/bin/perl" "-MExtUtils::Command::MM" "-MT +est::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, ' +inc', 'blib/lib', 'blib/arch')" t/catch_01.t t/context.t t/destroy.t +t/handwritten.t t/invalid.t t/method.t t/mx_types_structured.t t/nest +ed.t t/simple.t t/types.t t/xml_sax_expat.t t/catch_01.t ............. 1/? Bailout called. Further testing stoppe +d: Cannot load TryCatch # 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-sMP1EG/inc /home/uce/.cpan/build/TryCatch-1.003002-s +MP1EG/blib/lib /home/uce/.cpan/build/TryCatch-1.003002-sMP1EG/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- +sMP1EG/blib/lib/TryCatch.pm line 13. # BEGIN failed--compilation aborted at /home/uce/.cpan/build/TryCatch- +1.003002-sMP1EG/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

Replies are listed 'Best First'.
Re^3: How to add path to @INC
by syphilis (Archbishop) on May 21, 2016 at 03:19 UTC
    First problem occurs when building Scope::Upper (which is a TryCatch prerequisite):
    Upper.xs:1331:11: error: ‘CXt_LOOP_FOR’ undeclared (first use in this +function) case CXt_LOOP_FOR:
    Therefore Scope::Upper fails to build and does not get installed.
    Versions of perl prior to 5.24.0 define CXt_LOOP_FOR in cop.h, but not perl-5.24.0.
    But it's worse than that - see the bug report.
    That thread contains a patch which might solve your issue if you wish to apply it.

    TryCatch therefore fails its tests because Scope::Upper cannot be found.
    Therefore, TryCatch fails to install. You could force the installation but that won't help because TryCatch.pm needs to load Scope/Upper.pm and there's no way of installing a loadable Scope::Upper when it fails to build.

    I would take this up with the authors of these 2 modules.
    Does TryCatch *really* need to use Scope::Upper ?
    Maybe the Scope::Upper author would agree to upload a devel version of Scope::Upper that at least builds (despite his reservations about the mileage that would provide). It could be that the broken aspects of Scope::Upper don't impact on TryCatch.pm and it's just a matter of installing the patched version.

    Or you could consider using something else .... or revert to perl-5.22.x or earlier.

    Cheers,
    Rob
      That thread contains a patch which might solve your issue if you wish to apply it.
      That patch was just a work-in-progress proof of concept; I wouldn't recommend using it in production. I'm still working writing proper fixes for Scope::Upper.

      Dave.

      Thank you Rob

      I had a earlier version of Perl however I needed update it due to a software (CLUMPAK) that asks for modules that only work in Perl 5.24! Really everything worked fine in earlier version but in this one I have problems like that! Even more others modules have problems too:

      cpan[7]> install GraphViz Running install for module 'GraphViz' Checksum for /home/uce/.cpan/sources/authors/id/R/RS/RSAVAGE/GraphViz- +2.20.tgz ok Configuring R/RS/RSAVAGE/GraphViz-2.20.tgz with Build.PL Can't exec "dot": Ficheiro ou directoria inexistente at Build.PL line +14. Please install Graphviz from http://www.graphviz.org/. No 'Build' created RSAVAGE/GraphViz-2.20.tgz /usr/local/bin/perl Build.PL --installdirs site -- NOT OK Failed during this command: RSAVAGE/GraphViz-2.20.tgz : writemakefile NO -- No + 'Build' created

      or

      cpan[6]> install DB_File Running install for module 'DB_File' Checksum for /home/uce/.cpan/sources/authors/id/P/PM/PMQS/DB_File-1.83 +8.tar.gz ok Configuring P/PM/PMQS/DB_File-1.838.tar.gz with Makefile.PL Parsing config.in... Looks Good. Checking if your kit is complete... Looks good 'EXPATINCPATH' is not a known MakeMaker parameter name. 'EXPATLIBPATH' is not a known MakeMaker parameter name. Warning (mostly harmless): No library found for -ldb Generating a Unix-style Makefile Writing Makefile for DB_File Writing MYMETA.yml and MYMETA.json PMQS/DB_File-1.838.tar.gz /usr/local/bin/perl Makefile.PL EXPATLIBPATH=/non-standard/lib EXPAT +INCPATH=/non-standard/include -- OK Running make for P/PM/PMQS/DB_File-1.838.tar.gz cp DB_File.pm blib/lib/DB_File.pm Running Mkbootstrap for DB_File () chmod 644 "DB_File.bs" "/usr/local/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- DB_F +ile.bs blib/arch/auto/DB_File/DB_File.bs 644 cc -c -I/usr/local/BerkeleyDB/include -fwrapv -fno-strict-aliasing -p +ipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FIL +E_OFFSET_BITS=64 -O2 -DVERSION=\"1.838\" -DXS_VERSION=\"1.838\" -fP +IC "-I/usr/local/lib/perl5/5.24.0/x86_64-linux/CORE" -D_NOT_CORE -D +mDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t version.c version.c:30:16: fatal error: db.h: Ficheiro ou directoria inexistente #include <db.h> ^ compilation terminated. make: ** [version.o] Erro 1 PMQS/DB_File-1.838.tar.gz /usr/bin/make -- NOT OK Failed during this command: PMQS/DB_File-1.838.tar.gz : make NO

      summing up, all these modules required for Bio:SeIO fail

      cpan[5]> install Bio::SeqIO Running install for module 'Bio::SeqIO' Checksum for /home/uce/.cpan/sources/authors/id/C/CJ/CJFIELDS/BioPerl- +1.6.924.tar.gz ok Scanning cache /home/uce/.cpan/build for sizes ...................................................................... +......DONE Configuring C/CJ/CJFIELDS/BioPerl-1.6.924.tar.gz with Build.PL Checking prerequisites... recommends: * DB_File is not installed * GraphViz is not installed * SOAP::Lite is not installed Checking optional features... Bio::DB::GFF Tests....disabled requires: ! DBI is not installed DB_File Tests.........disabled requires: ! DB_File is not installed EntrezGene............disabled requires: ! Bio::ASN1::EntrezGene is not installed MySQL Tests...........disabled requires: ! DBD::mysql is not installed ! DBI is not installed Pg Tests..............disabled requires: ! DBD::Pg is not installed ! DBI is not installed SQLite Tests..........disabled requires: ! DBD::SQLite is not installed ! DBI is not installed ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the v +ersions of the modules indicated above before proceeding with this installatio +n Install [a]ll BioPerl scripts, [n]one, or choose groups [i]nteractivel +y? [a] ^CWarning: No success on command[/usr/local/bin/perl Build.PL +--installdirs site] CJFIELDS/BioPerl-1.6.924.tar.gz /usr/local/bin/perl Build.PL --installdirs site -- NOT OK Failed during this command: CJFIELDS/BioPerl-1.6.924.tar.gz : writemakefile NO '/usr +/local/bin/perl Build.PL --installdirs site' returned status 2

      However I installed BioPerl-1.6.924 (Bio::SeqIO) from "outside" (without cpan), after to adding the path at PERL5LIB, and it works just fine! When I run all tests everything sounds good!

      All tests successful. Files=334, Tests=21522, 120 wallclock secs ( 3.39 usr 0.47 sys + 107. +39 cusr 4.43 csys = 115.68 CPU) Result: PASS

      What you think about all this?

      Best, TSN

        Can't exec "dot": Ficheiro ou directoria inexistente at Build.PL line 14.

        On Ubuntu, I also don't have "dot":
        $ dot --help The program 'dot' is currently not installed. You can install it by ty +ping: sudo apt-get install graphviz $
        Not sure what the intent of Build.PL is, but if I wanted to install GraphViz then I would first install "dot".
        I think that should enable installation of that module.

        version.c:30:16: fatal error: db.h: Ficheiro ou directoria inexistente #include <db.h>

        db.h is not being found - you can fix this by adding the location of db.h to the CPATH environment variable:
        export CPATH=/wherever/it/is:$CPATH
        I think you'll subsequently find that the DB library is also unlocatable - which will result in unresolved symbols when you try to run the module (eg during 'make test' stage of the build).
        That being so, I would try adding the location of the DB library's .so file to the LD_LIBRARY_PATH environment variable:
        export LD_LIBRARY_PATH=/wherever/it/is:$LD_LIBRARY_PATH
        Or maybe you need to add the location of the static DB library (.a) to the LIBRARY_PATH environment variable.
        I'm a little unsure as I've never managed to properly understand the way linking is effected on Linux - I just usually stuff around with things until I find something that works.
        Maybe someone else can chime in here with some more definitive advice.

        Cheers,
        Rob
        CJFIELDS/BioPerl-1.6.924.tar.gz
        : writemakefile NO '/usr/local/bin/perl Build.PL --installdirs site' returned status 2


        This looks like an issue with Module::Build.
        Apparently your version of Module::Build cannot handle the --installdirs site arguments.
        Perhaps your version of Module::Build is too old or too new.

        If you need additional information about that I think you should take it up with the BioPerl folk (or maybe someone else will update this thread with better information).

        Sorry - I can't even look properly at Module::Build issues.
        Such is my loathing of that module that any attempt to diagnose problems with it just leaves me wanting to throw a brick through the console, and I'm not prepared to waste a perfectly good brick over Module::Build.

        If Module::Build gets in the way of allowing a module to install, then I just go without that module.
        Thankully, so far, this policy has not meant that I've had to do without a module that I really want.

        Cheers,
        Rob