What is the problem in that? I work in xubuntu x86_x64 I get the following error while trying to execute install_bin :
mohamed@mohamed:~/Desktop/installer_v3.0$ ls
batch_installer install_bin installer install.now setup.sh
mohamed@mohamed:~/Desktop/installer_v3.0$ ls -l
total 44
-rw-rw-rw- 1 mohamed mohamed 8533 Jan 24 2013 batch_installer
drwxrwxrwx 13 mohamed mohamed 4096 Feb 9 19:29 install_bin
-rw-rw-rw- 1 mohamed mohamed 9179 Jan 24 2013 installer
-rwxrwxrwx 1 mohamed mohamed 9179 Jan 24 2013 install.now
-rwxrwxrwx 1 mohamed mohamed 497 Jan 24 2013 setup.sh
mohamed@mohamed:~/Desktop/installer_v3.0$ ./setup.sh
/home/mohamed/Desktop/installer_v3.0/installer: Permission denied.
mohamed@mohamed:~/Desktop/installer_v3.0$ 3 Answers
I found that you're new to askubuntu. so I will start by jumping to sudo command.
try
sudo sh setup.shIt should work because your script setup.sh is using installer also
sudo should work but you can do it the other way (correct way - as the other answer by @geirha):
sudo chmod +x installerand then run your setup.sh as you were trying
./setup.sh 5 The error message is pretty clear at what the error is:
/home/mohamed/Desktop/installer_v3.0/installer: Permission denied.It's trying to execute the file named installer, but installer doesn't have the execute bit set, as can be seen in the ls -l output.
-rw-rw-rw- 1 mohamed mohamed 9179 Jan 24 2013 installerso
chmod 755 installerand try again.
10Have you tried this:
sudo bash
sudo su
sudo sh /.setup.sh
~/desktop/installer3.0$ lsand then it might work fine this way.