I have had a bit of a problem with some commands lately, not working as intended.
I wanted to fiddle with some Markdown and try it as a substitute for some simple HTML pages, so I looked into some easy to use tools and found pandoc.
I went ahead, installed it, it was succesfull and I opened Terminal.app.
However, I am not able to run my command as normal user:
-bash: pandoc: command not found
If I do a man pandoc
I am able to see the manual, so I know it is installed.
But I am able to run it as super user aka root.
If I try sudo pandoc
I am able to use the tool,
for example sudo pandoc -s test.mdown -o test.html
What is the reason for this and is it easy to fix? It is working perfectly fine on my laptop, but not on my desktop computer.
My $PATH is
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin
Thanks in advance, this really grinds my gear.
/usr/local/bin/pandoc
pandoc
?root
user (using the commandsudo pandoc
), but not as normal user. What doesls -l /usr/local/bin/pandoc
say? Maybe only root has permissions to execute the file? And what happens if you start it as/usr/local/bin/pandoc
(with the full path)?ls: /usr/local/bin/pandoc: Permission denied
so it looks like permission problems. If I try to run with full path I get-bash: /usr/local/bin/pandoc: Permission denied