sudo: ./install.sh: command not found is not working on Lion

Amandah Wood picture Amandah Wood · Feb 10, 2013 · Viewed 63.4k times · Source

I've been following this tutorial in order to get SimpleOpenNI installed on my mac but I keep getting stuck at installing the OpenNI and NITE components because it requires me to navigate to the folders in Terminal and then run "sudo ./install.sh". I do this and I get this error:

sudo: ./install.sh: command not found

I've installed Command Line Tools in Xcode and everything.

Thanks

Answer

nibbana picture nibbana · Jun 30, 2014

The reason why that happens is because the script you are trying to execute needs the right permissions.

Type:

sudo chmod a+x install.sh

and then try again.