Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script fails when no /opt directory exists #20

Open
ghost opened this issue Dec 19, 2015 · 5 comments
Open

Script fails when no /opt directory exists #20

ghost opened this issue Dec 19, 2015 · 5 comments

Comments

@ghost
Copy link

ghost commented Dec 19, 2015

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

@scottkosty
Copy link
Owner

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?

@ghost
Copy link
Author

ghost commented Jan 5, 2016

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

@scottkosty
Copy link
Owner

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.

@ghost
Copy link
Author

ghost commented Jan 9, 2016

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

@scottkosty
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant