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

Hello Guys,
I trying to learn writing tests in Perl, i installed the Test::Harness version 3.23 on a Solaris 10 machine, however when i try to use the prove command to run the test i get the following error
bash: prove: command not found
Request your help on how do i check what has gone wrong here?
Regards
Alok

Replies are listed 'Best First'.
Re: prove: command not found
by davido (Cardinal) on Jan 01, 2012 at 11:31 UTC

    What happens when you type either of the following:

    which prove

    ...or...

    perldoc -l prove

    Either of those should specify where prove resides. If one or the other produces a path, make sure that path is part of your environment's path. If neither of those produce a path then move on to trying:

    perldoc -l App::Prove

    If that produces a path you know it's at least on your system. But possibly not installed properly. Then you'll want to try:

    perl -MApp::Prove -e 0

    That should produce no output. If you get an error, App::Prove probably isn't properly installed, and you may need to fetch the distribution from CPAN and install it. But on the other hand, if you get the good sign (no output), then App::Prove is installed, and you're back to looking at your environment's path again.

    I can't be sure this will be helpful, but it's part of the process of elimination that I would look into myself. You could, of course, always just "cpan App::Prove" all over again and try to get a fresh install.


    Dave

Re^2: prove: command not found
by i5513 (Pilgrim) on Jan 01, 2012 at 12:57 UTC
    It is because prove command is not in your path
    Find it:
    find / -type f -name "prove"

    And then run it with full path or include directory in your path

    Regards, PD: Sorry I missleveled this answer (should be Re: and not Re^2:)