Executable symbolic link results in "command not found"
Things to check:
- Perform an
ls -l /usr/bin/prj-python
If it's like:lrwxrwxrwx (...) /usr/bin/prj-python -> bin/python
The file will actually be searched at /usr/bin/bin/python (that's what xralf tried to say). Fix:rm /usr/bin/prj-python
ln -s /full/path/to/your/python /usr/bin/python-prj
- If your
bin/python
is a shell script (aka. wrapper-script) check the #!-line (sometimes called shebang-line) at the first line. If there's a typo like#!/bin/bush
that will cause a not found error message also.
You forgot the initial slash before bin/python
. This means /usr/bin/prj-python
now points to /usr/bin/bin/python
. What would you like it to point to exactly?