Reputation: 22438
According to these instructions I linked a binary into /usr/bin
as follows:
sudo ln -s ~/Applications/calibre.app/Contents/MacOS/ebook-convert /usr/bin
Now the symlink exists, and /usr/bin
is obviously in $PATH
:
cls@clsmba > ls -lah /usr/bin/ebook-convert
lrwxr-xr-x 1 root wheel 64B Jul 18 13:00 /usr/bin/ebook-convert -> /Users/cls/Applications/calibre.app/Contents/MacOS/ebook-convert
However, the fish shell doesn't know that it exists:
cls@clsmba > ebook-convert
fish: Unknown command 'ebook-convert'
cls@clsmba > ./usr/bin/ebook-convert
fish: Unknown command './usr/bin/ebook-convert'
What am I doing wrong?
Upvotes: 0
Views: 685
Reputation: 7459
You created /usr/bin/ebook-convert
as a symlink. Then you attempted to run ./usr/bin/ebook-convert
(note the leading dot) which won't work unless your cwd is / (i.e., the root dir). Of course the main problem is you probably don't have a /Users/cls/Applications
directory; or, if you do, it doesn't contain calibre.app. You probably want /Applications
not ~/Applications
.
Upvotes: 2