install-tl-ubuntu
install-tl-ubuntu copied to clipboard
Script fails when no /opt directory exists
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
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?
My response must not have made it through the first time, but your proposal sounds good to me. Thanks!
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.
I received your email - have just sent a response through now
Great, got it. I will fix this the next time I work on the script. Thanks for the help.