Since my SSD is small, I still relegate it to only holding the OS.
So, during Ubuntu install, I created a 60 GB partition for /
on my SSD, and a 500 GB partition for /home
on my HDD.
However, now I am finding issues such as the one described in this question: Conda update <package>: Permission issues
The accepted answer suggested:
sudo ln ~/anaconda/bin/conda /usr/local/bin/
I had to use a softlink because I was getting an "invalid cross-device link" error if I did not specify the -s
for softlink in the command. The following discussion (the very last post) gave me the clue of using a softlink: http://www.linuxquestions.org/questions/linux-newbie-8/invalid-cross-device-link-731268/
sudo ln -s ~/anaconda/bin/conda /usr/local/bin/
Now, I find that I am having an issue that looks superficially similar when using the matlab installer script:
brian@brian-linux:~/matlab-installer$ ls
activate.ini etc installer_input.txt license.txt sys
archives help install_guide.pdf patents.txt trademarks.txt
bin install java readme.txt
brian@brian-linux:~/matlab-installer$ ./install
bash: ./install: Permission denied
brian@brian-linux:~/matlab-installer$ sudo ./install
[sudo] password for brian:
sudo: ./install: command not found
brian@brian-linux:~/matlab-installer$ bash ./install
./install: line 334: /home/brian/matlab-installer/bin/glnxa64/install_unix: Permission denied
brian@brian-linux:~/matlab-installer$ sudo bash ./install
./install: line 334: /home/brian/matlab-installer/bin/glnxa64/install_unix: Permission denied
What is going on, and how can I prevent such issues once and for all in the future?
ls -l ./install
? It might not be executable. (Just in case you didn't check yet; this, however, may only be a part of the problem). Could it be that your/home
is mounted with thenoexec
parameter? (to check:mount | grep /home
)(EDIT: to make it executable you can run
– Kai Apr 06 '15 at 21:15chmod +x ./install
)/dev/sdb2 on /home type ext4 (rw)
. However, I don't see thenoexec
parameter listed in thefstab
file? – Apr 07 '15 at 14:46ls -l
gave me the following for./install
: -rw------- 1, so I did run the
chmod` command. – Apr 07 '15 at 14:50./install
now? (until you get that "Permission denied" error from line 334 I suppose?) Also, you could have a look at line 334 in theinstall
script - if the program tries to runinstall_unix
with a path (e.g. simply "/home/brian/matlab-installer/bin/glnxa64/install_unix") then that file might need the executable permission, too. (using the chmod command again). – Kai Apr 07 '15 at 20:29