bash: ./install.sh: Permission denied installing intel fortran 2011
I am trying to install Intel Fortran Composer 2011. When I try to command ./install.sh it gives an error:
bash: ./install.sh: Permission denied
I tried some ways to get pass this.
sudo: ./install.sh: command not found
Trying to remount the installation disk with exec permission;
mount /media/user/IFORTRAN2011 -o remount,exec
Trying to change install.sh to executable;
chmod +x ./install.sh
su -c 'install.sh'
bash: install.sh: command not found
Password: su: Authentication failure
and 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
than extract it with
tar xvzf file.tar.gz
then tried everthing again. No luck.
After I did
chmod +x ./install.shwhen I look the permissions with:
ls -l ./install.shit still gives:
-rw------- 1 user user 14758 Oct 7 2010 ./install.sh
Thanks for any help.
There is many way to execute your script :
launch bash with root privilege
sudo bash install.sh
change 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.shor
chmod 755 install.sh
Problem solved with `chmod -R 777 /installation_dir` command. Thanks for your help.