Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

PERL_ANYEVENT_NET_TESTS environment variable not set

by cbtshare (Monk)
on Feb 04, 2016 at 19:48 UTC ( [id://1154418]=perlquestion: print w/replies, xml ) Need Help??

cbtshare has asked for the wisdom of the Perl Monks concerning the following question:

Can I please get some assitance in resolving my issue.I have a a centos 6, 6b -bit, with perl, v5.10.1. I am trying to install aws api module VM::EC2. I need to first install AnyEvent, when I go to install it "cpan AnyEvent", I get the following error:

t/80_ssltest.t ............. skipped: no usable Net::SSLeay t/81_hosts.t ............... ok t/handle/01_readline.t ..... ok t/handle/02_write.t ........ ok t/handle/03_http_req.t ..... skipped: PERL_ANYEVENT_NET_TESTS environm +ent variable not set t/handle/04_listen.t ....... AnyEvent::Handle uncaught error: Connecti +on refused at /root/.cpan/build/AnyEvent-7.12-JRk62y/blib/lib/AnyEven +t/Socket.pm line 1000. t/handle/04_listen.t ....... Dubious, test returned 111 (wstat 28416, +0x6f00) Failed 2/2 subtests Test Summary Report ------------------- t/handle/04_listen.t (Wstat: 28416 Tests: 0 Failed: 0) Non-zero exit status: 111 Parse errors: Bad plan. You planned 2 tests but ran 0. Files=82, Tests=248, 72 wallclock secs ( 0.77 usr 1.17 sys + 3.37 cu +sr 3.78 csys = 9.09 CPU) Result: FAIL Failed 1/82 test programs. 0/248 subtests failed. make: *** [test_dynamic] Error 111 MLEHMANN/AnyEvent-7.12.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports MLEHMANN/AnyEvent-7.12.tar.gz

I also tried to install NET::SSLeay, but it hangs

rm -f blib/arch/auto/Net/SSLeay/SSLeay.so LD_RUN_PATH="/usr/lib64" gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIF +Y_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 - +m64 -mtune= eay.so +\ -L/usr -L/usr/lib64 -L/usr/lib -lssl -lcrypto -lz \ chmod 755 blib/arch/auto/Net/SSLeay/SSLeay.so "/usr/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- SS +Leay.bs blib/arch/auto/Net/SSLeay/SSLeay.bs 644 Manifying 2 pod documents MIKEM/Net-SSLeay-1.72.tar.gz /usr/bin/make -- OK Running make test Running Mkbootstrap for Net::SSLeay () chmod 644 "SSLeay.bs" PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::H +arness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', +'blib/lib', t/handle/local/05_use.t ................ ok t/local/01_pod.t ....................... skipped: Test::Pod 1.00 requi +red for testing POD t/local/02_pod_coverage.t .............. skipped: these tests are for +only for release candidate testing. Enable with RELEASE_TESTING=1 t/local/03_use.t ....................... ok t/local/04_basic.t ..................... ok t/local/05_passwd_cb.t ................. ok t/local/06_tcpecho.t ................... Use of uninitialized value $g +ot in string eq at t/local/06_tcpecho.t line 66.

Replies are listed 'Best First'.
Re: PERL_ANYEVENT_NET_TESTS environment variable not set
by Discipulus (Canon) on Feb 04, 2016 at 20:27 UTC
    If only test fails you can skip tests with cpan force install AnyEvent and hope evrything else run fine.

    Anyway message you got seems to me unharmful: that env var $ENV{PERL_ANYEVENT_NET_TESTS} was not found and some test were skipped. Just for sake of curiosity you can try to set that env var and watch what change.

    The main error seems a line after: t/handle/04_listen.t ....... [METAMOD://AnyEvent::Handle] uncaught error: Connection refused at /root/.cpan/build/AnyEvent-7.12-JRk62y/blib/lib/AnyEvent/Socket.pm line 1000.

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
Re: PERL_ANYEVENT_NET_TESTS environment variable not set
by cbtshare (Monk) on Feb 05, 2016 at 19:47 UTC

    I tried the force and got the following below

    t/80_ssltest.t ............. skipped: no usable Net::SSLeay t/81_hosts.t ............... ok t/handle/01_readline.t ..... ok t/handle/02_write.t ........ ok t/handle/03_http_req.t ..... skipped: PERL_ANYEVENT_NET_TESTS environm +ent variable not set t/handle/04_listen.t ....... AnyEvent::Handle uncaught error: Connecti +on refused at /root/.cpan/build/AnyEvent-7.12-0C2qsS/blib/lib/AnyEven +t/Socket.pm line 1000. t/handle/04_listen.t ....... Dubious, test returned 111 (wstat 28416, +0x6f00) Failed 2/2 subtests Test Summary Report ------------------- t/handle/04_listen.t (Wstat: 28416 Tests: 0 Failed: 0) Non-zero exit status: 111 Parse errors: Bad plan. You planned 2 tests but ran 0. Files=82, Tests=248, 71 wallclock secs ( 0.62 usr 0.99 sys + 3.31 cu +sr 3.51 csys = 8.43 CPU) Result: FAIL Failed 1/82 test programs. 0/248 subtests failed. make: *** [test_dynamic] Error 111 MLEHMANN/AnyEvent-7.12.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports MLEHMANN/AnyEvent-7.12.tar.gz

    What should I set the environment variable to?

    export $PERL_ANYEVENT_NET_TESTS=
      What should I set the environment variable to?

      export $PERL_ANYEVENT_NET_TESTS=

      Firstly, that's not how to set an environment variable in the shell. The leading dollar should be omitted, eg:

      export PERL_ANYEVENT_NET_TESTS=1

      See the bash reference for more on using variables in the shell. However that will not solve the test failure. The message about that variable is merely a diagnostic to tell you that a test is being skipped. It is entirely benign.

      The tests are actually failling because of

      AnyEvent::Handle uncaught error: Connection refused at /root/.cpan/build/AnyEvent-7.12-0C2qsS/blib/lib/AnyEvent/Socket.pm line 1000.

      Fix that and you'll be good to go.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1154418]
Approved by Discipulus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found