Closed alexbeattie42 closed 1 month ago
@alexbeattie42, sure, feel free to submit a PR if you have some time!
I submitted a PR that contains my idea for solving this. If the approach is suitable I can add zsh
and test on mac as well.
I think this issue is more indicative of the unconventional choices in the build script that require this brittle path modification. Ideally on Linux, opensim should be installed in a more traditional location (i.e. following FHS it should be /opt/
or /usr/local/
), and then a link to the opensim-cmd
binary placed in /usr/local/bin
. I'm not sure what this should conventionally look like on MacOS, but I suspect installing to the home folder is also unusual regardless of OS.
(Also, putting a link to the opensim binary somewhere already on the PATH and installing opensim to a more traditional location are independent, so a simpler immediate fix would be to just replace the PATH modification with a link.)
I agree. I have updated the PR to invoke the install script that exists in the install directory which creates the symbolic links. Does that look better?
Both the Linux and MacOS build scripts contain the following install step:
Problem
This causes the following problems:
.bashrc
file every time the build script is run.Solution
.env
script.env
file before attempting to add itI am happy to submit a pull request for the script update if you would find it helpful.