I am quite a n00b on MacOS and it feels like it got worse with Big Sur.
I need to execute a .sh script to complete the setup of a 3d party app. The instructions say to "execute install.sh"
The first obstacle I found was that the file did't have the -x attribute set, so "sudo chmod +x ./install.sh
" did that. Yet, when I do "sudo ./install.sh
" it barfs "sudo: unable to execute ./install.sh: No such file or directory
"
The file exists:
ls -l install.sh
-rwxr-xr-x@ 1 mbaas staff 740 14 Feb 12:44 install.sh
What am I missing?
Additional details:
first line of script has the usual shebang:
#!/bin/sh
according to these instructions, the following shows the association of sh-files:
readlink /var/select/sh
/bin/bash
- does that shell exist?
ls -l /bin/bash
-r-xr-xr-x 1 root wheel 1296640 1 Jan 2020 /bin/bash
ls -l /bin/sh
rwxr-xr-x 1 root wheel 120912 1 Jan 2020 /bin/sh
That's interesting:
ls -lOe@ install.sh
ls: install.sh : No such file or directory
I thought I may have been in the wrong directory, so just to verify:
ls -l install.sh
-rwxr-xr-x@ 1 mbaas staff 757 14 Feb 18:08 install.sh
- and finally:
hexdump -Cv -n 32 install.sh
00000000 23 21 2f 62 69 6e 2f 73 68 0d 0a 73 65 74 20 2d |#!/bin/sh..set -|
00000010 65 0d 0a 0d 0a 42 41 53 45 44 49 52 3d 24 28 64 |e....BASEDIR=$(d|
00000020
ls -lOe@ install.sh
give you? How abouthexdump -Cv -n 32 install.sh
?git clone https://github.com/Dyalog/dyalog-jupyter-kernel.git
and got aninstall.sh
with the x attribute set.0d 0a
) :-)