I've hit a wall just after starting to learn perl. Mainly when I try to install packages it seems to install fine but then I try to use the Linux bash shell commands and it gives me the message

bash: cpanm: command not found...

This is one of the ways I tried to install cpanminus

downloaded package from http://search.cpan.org/dist/App-cpanminus/ navigated to download folder typed: tar zxf App-cpanminus-1.7004.tar.gz cd App-cpanminus-1.7004/ perl Makefile.PL make make test make install

The following is the CUI Screen readout

[IrishMonk@localhost ~]$ cd Downloads/ [IrishMonk@localhost Downloads]$ cd App-cpanminus-1.7004/ [IrishMonk@localhost App-cpanminus-1.7004]$ perl Makefile.PL Generating a Unix-style Makefile Writing Makefile for App::cpanminus Writing MYMETA.yml and MYMETA.json [IrishMonk@localhost App-cpanminus-1.7004]$ make Skip blib/lib/App/cpanminus.pm (unchanged) Skip blib/lib/App/cpanminus/fatscript.pm (unchanged) cp bin/cpanm blib/script/cpanm /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/cpanm Manifying blib/man1/cpanm.1 Manifying blib/man3/App::cpanminus.3pm Manifying blib/man3/App::cpanminus::fatscript.3pm [IrishMonk@localhost App-cpanminus-1.7004]$ make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/happy_cpantesters.t .. 1/1 # App::cpanminus/1.7004 t/happy_cpantesters.t .. ok All tests successful. Files=1, Tests=1, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.03 cusr 0.00 csys = 0.07 CPU) Result: PASS [IrishMonk@localhost App-cpanminus-1.7004]$ make install Appending installation info to /home/IrishMonk/perl5 /lib/perl5/i386-linux-thread-multi/perllocal.pod [IrishMonk@localhost App-cpanminus-1.7004]$ cpanm bash: cpanm: command not found... Similar command is: 'cpan' [IrishMonk@localhost App-cpanminus-1.7004]$

In reply to cpanminus installing but not working by IrishMonk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.