I am trying to install Intel Fortran Composer 2011. When I try to command ./install.sh it gives an error:
bash: ./install.sh: Permission deniedI tried some ways to get pass this.
Tried;
sudo ./install.shsudo: ./install.sh: command not foundTrying to remount the installation disk with exec permission;
mount /media/user/IFORTRAN2011 -o remount,execTrying to change install.sh to executable;
chmod +x ./install.shTried;
su -c 'install.sh'
with root:
bash: install.sh: command not foundwith user:
Password:
su: Authentication failureand I am sure the password is true. (If it is the same with my user password)
5 . I copied the disk into a folder than compressed it into
file.tar.gz
than extract it with
tar xvzf file.tar.gzthen tried everthing again. No luck.
After I did chmod +x ./install.sh when I look the permissions with: ls -l ./install.sh it still gives:-rw------- 1 user user 14758 Oct 7 2010 ./install.sh
Thanks for any help.
24 Answers
There is many way to execute your script :
launch bash with root privilege
sudo bash install.shchange permissions to launch the script. However be careful, it's an installation script, it may require root privileges. So you must probably run it as root.
chmod +x install.shorchmod 755 install.sh
- Right click on the
something.shfile and click to properties - Then click on permissions and change all access to "read and write"
- Then click on "allow executing file as program" (if not selected!)
- Close the window.
Open terminal at the location of file and write:
./filename.sh
You have to specify the path - like mine is:
sudo /home/humayun/Downloads/xdk_web_linux64/install.shand it works for me. When I was typing:
sudo ./install.shit was giving me error: No Such file or directory. So giving the correct location is important.
just go and right click on the file, choose properties, go to the Permissions, and check the Execute: Allow executing file as program.