No such file or directory
I copied g95 executable under /usr/bin which is clearly in my PATH. When I type g95, it says "bash: /home/username/bin/g95: No such file or directory". Why doesn't it look for somewhere else that is in my PATH?
|
EDIT: Sorry, disregard my post previous post. Obviously it's got nothing to do with your problem. I answered without reading it properly.
|
It's possible that '/home/username/bin/g95' is hard-coded in the g95 binary. If it is, this might do the trick:
cd /home/username/bin ln -s /usr/bin/g95 g95 This will create a soft-link in the /home/username/bin directory to the g95 binary installed in the /usr/bin directory. Now, try to run g95 and see if this did the trick. Good luck. Shahriar. |
Your shell might have hashed the location of the file and so could be expecting to find it in its original position.
'hash' is a bash builtin. As the shell finds commands along the search path it remembers the found location in an internal hash table. The next time you enter a command the shell uses the value in its hash table instead of searching the path again. Code:
# To see your 'hash' table:- |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 10:48 PM. |