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

6

17

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

Suiting answered 10/2, 2013 at 21:57 Comment(6)
Sorry here is the link to the tutorial: creativec0d1ng.blogspot.ca/2012/08/…Suiting
Which step fails? I see two with sudo ./install.sh.Spannew
The very first step with that command in it. But really running that command for any of the steps comes up with the same error.Suiting
right before you do the "sudo" thing, type in "ls" in Terminal. That prints out a list of files. Do you see "install.sh" in that list of files? If not, type in "pwd" and tell us where you are.Requisition
If you do as above and there is an install.sh, do ls -l and check that it is actually executable (-rwxr-xr-x)Spannew
Thanks for your help, I was making a really dumb typo error - must've just been tired. All good now. Thank you again.Suiting
P
32

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.

Plasmo answered 30/6, 2014 at 13:43 Comment(1)
I was having trouble installing rapid7's InsightAgent on an AWS instance via PuTTY, and this line of code fixed it.Antiserum
A
11

In directory of install.sh

prompt$ sh install.sh
Alvis answered 30/8, 2018 at 21:33 Comment(0)
K
5

first open Terminal, type cd and than drag the map into Terminal and press enter. Now type sudo ./install.sh and it will work. Took me very long to find out. Hope it helps.

Kaylyn answered 9/5, 2013 at 12:46 Comment(0)
S
0

.sh scripts should have "\n" line breaks. "Command not found" also occurs if "\r\n" line breaks are used. Well at least this is the case on FreeBSD.

Squally answered 27/6, 2015 at 6:18 Comment(0)
R
0

You need to run VBoxLinuxAdditions.run as root, not autorun.sh

Once you've inserted the Guest Additions ISO, open Files and open the disc from the sidebar. Then, right-click in the background of the window where autorun.sh is and select

Open in > Terminal

Now you can run the following command to install the Guest Additions:

sudo ./VboxLinuxAdditions.run

Roomy answered 5/7, 2017 at 9:28 Comment(0)
C
0

I'm a newbie but here is an answer that may help with the sh problem...I am running Armbian on an orange pi prime H5 SBC and I had downloaded and unzipped arduino ide well after 2 hours of searching and trying I hit it ....open the directory where the file you want to open or install is ...now at the top of the directory open a terminal(under file it will say open a terminal here).now the sh filename.sh will work.

Cain answered 15/4, 2019 at 5:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.