in reply to Re^2: WWW::mechanize install
in thread WWW::mechanize install

It starts failing here:

Could not read '/Users/Erika/.cpan/build/HTTP-Server-Simple-0.43-4jFYr +2/META.yml'. Falling back to other methods to determine prerequisites JESSE/HTTP-Server-Simple-0.43.tar.gz make -- NOT OK

This means that HTTP::Server::Simple fails to install for you. Maybe try first to install HTTP::Server::Simple separate from the rest.

HTTP::Server::Simple is only needed for testing of WWW::Mechanize, so you can still to try to install WWW::Mechanize, even if installation of HTTP::Server::Simple won't work.

Replies are listed 'Best First'.
Re^4: WWW::mechanize install
by Anonymous Monk on Jun 03, 2010 at 20:42 UTC

    Thank you for your reply about the HTTP::Server::Simple. I just tried installing that with the code below but as you can see (also below) I got another "fail" message.

    How do I install WWW::Mechanize if it didn't work before and I get a "Make had returned bad status, install seems impossible" message?

    HTTP::Server::Simple $ cpan HTTP::Server::Simple CPAN: Storable loaded ok (v2.18) Going to read /Users/Erika/.cpan/Metadata Database was generated on Thu, 03 Jun 2010 11:27:12 GMT Running install for module 'HTTP::Server::Simple' CPAN: Data::Dumper loaded ok (v2.121_14) 'YAML' not installed, falling back to Data::Dumper and Storable to rea +d prefs '/Users/Erika/.cpan/prefs' Running make for J/JE/JESSE/HTTP-Server-Simple-0.43.tar.gz CPAN: Digest::SHA loaded ok (v5.45) CPAN: Compress::Zlib loaded ok (v2.008) Checksum for /Users/Erika/.cpan/sources/authors/id/J/JE/JESSE/HTTP-Ser +ver-Simple-0.43.tar.gz ok x HTTP-Server-Simple-0.43/ x HTTP-Server-Simple-0.43/ex/ x HTTP-Server-Simple-0.43/ex/sample_server x HTTP-Server-Simple-0.43/t/ x HTTP-Server-Simple-0.43/t/02pod.t x HTTP-Server-Simple-0.43/t/00smoke.t x HTTP-Server-Simple-0.43/t/01live.t x HTTP-Server-Simple-0.43/t/00signature.t x HTTP-Server-Simple-0.43/t/03podcoverage.t x HTTP-Server-Simple-0.43/t/04cgi.t x HTTP-Server-Simple-0.43/MANIFEST.SKIP x HTTP-Server-Simple-0.43/SIGNATURE x HTTP-Server-Simple-0.43/Changes x HTTP-Server-Simple-0.43/MANIFEST x HTTP-Server-Simple-0.43/META.yml x HTTP-Server-Simple-0.43/lib/ x HTTP-Server-Simple-0.43/lib/HTTP/ x HTTP-Server-Simple-0.43/lib/HTTP/Server/ x HTTP-Server-Simple-0.43/lib/HTTP/Server/Simple/ x HTTP-Server-Simple-0.43/lib/HTTP/Server/Simple/CGI.pm x HTTP-Server-Simple-0.43/lib/HTTP/Server/Simple/CGI/ x HTTP-Server-Simple-0.43/lib/HTTP/Server/Simple/CGI/Environment.pm x HTTP-Server-Simple-0.43/lib/HTTP/Server/Simple.pm x HTTP-Server-Simple-0.43/inc/ x HTTP-Server-Simple-0.43/inc/Module/ x HTTP-Server-Simple-0.43/inc/Module/Install.pm x HTTP-Server-Simple-0.43/inc/Module/Install/ x HTTP-Server-Simple-0.43/inc/Module/Install/Can.pm x HTTP-Server-Simple-0.43/inc/Module/Install/Metadata.pm x HTTP-Server-Simple-0.43/inc/Module/Install/Win32.pm x HTTP-Server-Simple-0.43/inc/Module/Install/WriteAll.pm x HTTP-Server-Simple-0.43/inc/Module/Install/Base.pm x HTTP-Server-Simple-0.43/inc/Module/Install/Fetch.pm x HTTP-Server-Simple-0.43/inc/Module/Install/Makefile.pm x HTTP-Server-Simple-0.43/Makefile.PL x HTTP-Server-Simple-0.43/README CPAN: File::Temp loaded ok (v0.18) Warning (usually harmless): 'YAML' not installed, will not store persi +stent state CPAN.pm: Going to build J/JE/JESSE/HTTP-Server-Simple-0.43.tar.gz Checking if your kit is complete... Looks good Writing Makefile for HTTP::Server::Simple Could not read '/Users/Erika/.cpan/build/HTTP-Server-Simple-0.43-OqA09 +1/META.yml'. Falling back to other methods to determine prerequisites JESSE/HTTP-Server-Simple-0.43.tar.gz make -- NOT OK Warning (usually harmless): 'YAML' not installed, will not store persi +stent state Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible

      Weird. CPAN claims that some YAML decoder is not available and it then tries to proceed to find the prerequisites without inspecting META.yml. But then it seems to fall flat on its face, because make fails. I'm not sure what happens there, but my guess is that installing some YAML parser could be the path of least resistance. Maybe YAML is the one that's easiest to install.

        Okay, tried YAML per your suggestion and below is what I get:

        $ cpan YAML-0.71 CPAN: Storable loaded ok (v2.18) Going to read /Users/Erika/.cpan/Metadata Database was generated on Thu, 03 Jun 2010 11:27:12 GMT Warning: Cannot install YAML-0.71, don't know what it is. Try the command i /YAML-0.71/ to find objects with matching identifiers. CPAN: Time::HiRes loaded ok (v1.9711) econ2-231-74-dhcp:~ Erika$ i/YAML-0.71 -bash: i/YAML-0.71: No such file or directory econ2-231-74-dhcp:~ Erika$ i /YAML-0.71/ -bash: i: command not found

        I'm really not sure what is going on here. I would really appreciate any other suggestions or thoughts, particularly regarding the correctness of my coding because I am quite new to perl.