in reply to Re^5: WWW::mechanize install
in thread WWW::mechanize 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.

Replies are listed 'Best First'.
Re^7: WWW::mechanize install
by Corion (Patriarch) on Jun 03, 2010 at 21:19 UTC

    You should use the following:

    cpan YAML

    or, if you want to follow the hints of the CPAN command, you will need to enter the cpan shell:

    $ cpan cpan>

    There you can enter the i/YAML/ command to get information about YAML modules.

    I'm not sure where you picked up cpan YAML-0.71 as a valid command to enter.

      Thanks for that. So I ran the  cpan YARML code and I get:

      $ cpan YAML 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 'YAML' 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 A/AD/ADAMK/YAML-0.71.tar.gz CPAN: LWP::UserAgent loaded ok (v5.813) CPAN: Time::HiRes loaded ok (v1.9711) Fetching with LWP: ftp://cpan-du.viaverio.com/pub/CPAN/authors/id/A/AD/ADAMK/YAML-0.71. +tar.gz CPAN: Digest::SHA loaded ok (v5.45) Fetching with LWP: ftp://cpan-du.viaverio.com/pub/CPAN/authors/id/A/AD/ADAMK/CHECKSUMS CPAN: Compress::Zlib loaded ok (v2.008) Checksum for /Users/Erika/.cpan/sources/authors/id/A/AD/ADAMK/YAML-0.7 +1.tar.gz ok x YAML-0.71/ x YAML-0.71/Makefile.PL x YAML-0.71/META.yml x YAML-0.71/LICENSE x YAML-0.71/README x YAML-0.71/inc/ x YAML-0.71/inc/Test/ x YAML-0.71/inc/Test/Base/ x YAML-0.71/inc/Test/Base/Filter.pm x YAML-0.71/inc/Test/More.pm x YAML-0.71/inc/Test/Builder/ x YAML-0.71/inc/Test/Builder/Module.pm x YAML-0.71/inc/Test/Builder.pm x YAML-0.71/inc/Test/Base.pm x YAML-0.71/inc/Module/ x YAML-0.71/inc/Module/Install.pm x YAML-0.71/inc/Module/Install/ x YAML-0.71/inc/Module/Install/Can.pm x YAML-0.71/inc/Module/Install/Fetch.pm x YAML-0.71/inc/Module/Install/Win32.pm x YAML-0.71/inc/Module/Install/WriteAll.pm x YAML-0.71/inc/Module/Install/Metadata.pm x YAML-0.71/inc/Module/Install/Base.pm x YAML-0.71/inc/Module/Install/TestBase.pm x YAML-0.71/inc/Module/Install/Makefile.pm x YAML-0.71/inc/Module/Install/Include.pm x YAML-0.71/inc/Spiffy.pm x YAML-0.71/MANIFEST x YAML-0.71/Changes x YAML-0.71/t/ x YAML-0.71/t/export.t x YAML-0.71/t/dump-code.t x YAML-0.71/t/load-spec.t x YAML-0.71/t/node-info.t x YAML-0.71/t/dump-perl-types.t x YAML-0.71/t/marshall.t x YAML-0.71/t/dump-tests.t x YAML-0.71/t/dump-blessed.t x YAML-0.71/t/TestYAML.pm x YAML-0.71/t/freeze-thaw.t x YAML-0.71/t/bugs-emailed.t x YAML-0.71/t/regexp.t x YAML-0.71/t/98_pod.t x YAML-0.71/t/load-works.t x YAML-0.71/t/99_pmv.t x YAML-0.71/t/basic-tests.t x YAML-0.71/t/references.t x YAML-0.71/t/inbox.t x YAML-0.71/t/load-tests.t x YAML-0.71/t/dump-file-utf8.t x YAML-0.71/t/changes.t x YAML-0.71/t/dump-file.t x YAML-0.71/t/global-api.t x YAML-0.71/t/test.t x YAML-0.71/t/svk-config.yaml x YAML-0.71/t/bugs-rt.t x YAML-0.71/t/errors.t x YAML-0.71/t/dump-basics.t x YAML-0.71/t/2-scalars.t x YAML-0.71/t/97_meta.t x YAML-0.71/t/Base.pm x YAML-0.71/t/long-quoted-value.yaml x YAML-0.71/t/dump-works.t x YAML-0.71/t/svk.t x YAML-0.71/t/dump-stringify.t x YAML-0.71/t/dump-nested.t x YAML-0.71/t/load-fails.t x YAML-0.71/t/load-passes.t x YAML-0.71/t/pugs-objects.t x YAML-0.71/t/dump-opts.t x YAML-0.71/t/load-slides.t x YAML-0.71/lib/ x YAML-0.71/lib/YAML.pm x YAML-0.71/lib/YAML/ x YAML-0.71/lib/YAML/Dumper.pm x YAML-0.71/lib/YAML/Any.pm x YAML-0.71/lib/YAML/Base.pm x YAML-0.71/lib/YAML/Dumper/ x YAML-0.71/lib/YAML/Dumper/Base.pm x YAML-0.71/lib/YAML/Node.pm x YAML-0.71/lib/YAML/Tag.pm x YAML-0.71/lib/YAML/Loader/ x YAML-0.71/lib/YAML/Loader/Base.pm x YAML-0.71/lib/YAML/Error.pm x YAML-0.71/lib/YAML/Marshall.pm x YAML-0.71/lib/YAML/Types.pm x YAML-0.71/lib/YAML/Loader.pm x YAML-0.71/lib/Test/ x YAML-0.71/lib/Test/YAML.pm CPAN: File::Temp loaded ok (v0.18) Warning (usually harmless): 'YAML' not installed, will not store persi +stent state CPAN.pm: Going to build A/AD/ADAMK/YAML-0.71.tar.gz Checking if your kit is complete... Looks good Writing Makefile for YAML Could not read '/Users/Erika/.cpan/build/YAML-0.71-pZsez6/META.yml'. F +alling back to other methods to determine prerequisites ADAMK/YAML-0.71.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

      Why does make return as "bad status" and does this mean that YAML is installed? I tried doing  $cpan WWW::Mechanize but this failed to install again

        Why does make return as "bad status" and does this mean that YAML is installed?

        No, YAML is not installed.

        Something is wrong and it has to do with permissions. Maybe its your umask, maybe its permissions on the directory /Users/Erika/.cpan/build/, or ..... but for some reason you cannot read /Users/Erika/.cpan/build/YAML-0.71-pZsez6/META.yml. Try checking to see what the permissions on /Users/Erika/.cpan/build/YAML-0.71-pZsez6/META.yml are.

        Next thing I would do is take cpan out of the equation and try cpanp i YAML, if that doesn't work, I'd do it manually, ie

        $ cd ~/tmp wget -c http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/YAML-0.71.ta +r.gz tar -zxvf YAML-0.71.tar.gz cd YAML-0.71 perl Makefile.PL make make test make install