running a simple command line tool
Chris Green
cl at isbd.net
Wed Feb 22 19:13:10 UTC 2012
On Wed, Feb 22, 2012 at 09:25:35AM -0600, CJ Tres wrote:
> On 02/22/2012 09:16 AM, Chris Green wrote:
>
> >>
> >Show us the result of "ls -l" in the directory where you [think you]
> >have natool installed.
> >
>
> This is from the directory that holds the bin dir where the script lives:
> drwxr-xr-x 2 curt curt 4096 2012-02-22 06:59 bin
> -rw-r--r-- 1 curt curt 1053 2012-02-21 17:33 Copyright.txt
> drwxr-xr-x 5 curt curt 4096 2012-02-21 17:33 CPAN
> -rw-r--r-- 1 curt curt 7977 2012-02-21 17:33 install.pl
> -rw-r--r-- 1 curt curt 18009 2012-02-21 17:33 LICENSE.GPL
> -rw-r--r-- 1 curt curt 31020 2012-02-21 17:33 natool.1.pod
> drwxr-xr-x 3 curt curt 4096 2012-02-21 17:33 Neuros
> -rw-r--r-- 1 curt curt 2464 2012-02-21 17:33 README
> drwxr-xr-x 9 curt curt 4096 2012-02-22 07:05 regression_tests
> -rw-r--r-- 1 curt curt 8 2012-02-21 17:33 VERSION
>
> This is from within the "bin" dir:
> total 4
> -rwxr-xr-x 1 curt curt 274 2012-02-21 17:33 natool
>
Well it's not going to work unless *that* bin dir is on your path.
By saying "./natool" you're asking for natool in the current directory
and, quite correctly, it's telling you it's not there.
If you're still in the above directory you need to say "bin/natool" but
in the long term you need to add the path to that bin directory to your
PATH variable. Read up how to do that, there are tutorials/explanations
all over the internet which will be much better than I can manage.
--
Chris Green
More information about the ubuntu-users
mailing list