I look to see where the command is located:
xxx:~/mono/mono-2.6.7$ which mono /usr/local/bin/mono If I execute it directly, no problem:
xxx:~/mono/mono-2.6.7$ /usr/local/bin/mono -V Mono JIT compiler version 2.6.7 (tarball Mon Aug 2 16:01:50 UTC 2010) Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com .... But if I execute the command without the path it cannot find it:
xxx:~/mono/mono-2.6.7$ mono bash: /usr/bin/mono: No such file or directory There is no mono file in /usr/bin:
xxx:~/mono/mono-2.6.7$ ls -l /usr/bin/mono ls: cannot access /usr/bin/mono: No such file or directory Here is my path:
xxx:~/mono/mono-2.6.7$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games Doesn't it search each directory separated by the colons? So shouldn't it find mono in /usr/local/bin ?
If I log in as root, it works. I can execute mono on the command line and it finds it. The permissions are:
xxx:~/mono/mono-2.6.7$ ls -l /usr/local/bin/mono -rwxr-xr-x 1 root root 8452592 2010-08-02 16:23 /usr/local/bin/mono Is the user I am using not part of the right group?