install-tl-ubuntu icon indicating copy to clipboard operation
install-tl-ubuntu copied to clipboard

Script fails when no /opt directory exists

Open ghost opened this issue 8 years ago • 5 comments

From my clean install of Linux Mint 17.3 /opt is not created by default and causes the following error and stops the script:

install-tl-ubuntu: linking...
ln: failed to create symbolic link ‘/opt/texbin’: No such file or directory
install-tl-ubuntu: ERROR: could not link.

which I was able to fix by adding the /opt using a command like sudo mkdir --mode=755 /opt and rerunning the script.

Just as a reference, I referred to this link (I'm not very experienced with Linux) http://askubuntu.com/questions/604203/opt-folder-missing-in-ubuntu-14-04

ghost avatar Dec 19 '15 05:12 ghost

Thanks for this report, hobboy. My first reaction is that instead of creating the /opt directory I would prefer to do a check that the directory exists at the beginning of the program and issue a clear error. So you would see something like:

cannot proceed without a /opt directory.
Consider running the following command and then starting install-tl-ubuntu again:
sudo mkdir --mode=755 /opt`

Do you find this solution reasonable?

scottkosty avatar Dec 27 '15 10:12 scottkosty

My response must not have made it through the first time, but your proposal sounds good to me. Thanks!

ghost avatar Jan 05 '16 14:01 ghost

hobboy did you get my email? If not shoot me an email. Nothing important so if in a week I don't hear from you I will go forward with the most safe solution.

scottkosty avatar Jan 08 '16 13:01 scottkosty

I received your email - have just sent a response through now

ghost avatar Jan 09 '16 03:01 ghost

Great, got it. I will fix this the next time I work on the script. Thanks for the help.

scottkosty avatar Jan 10 '16 15:01 scottkosty