You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I installed the latest version of orca via ORCA.jl (v0.1.0) under Julia v1.0 on my MacBook Pro (OS X 10.11.6), and ran using ORCA. Then it complained:
/Users/xxx/.julia/packages/ORCA/vWe2Y/deps/bin/orca: line 7: /Users/xxx/.julia/packages/ORCA/vWe2Y/deps/lib/orca_app/orca: No such file or directory
/Users/xxx/.julia/packages/ORCA/vWe2Y/deps/bin/orca: line 7: exec: /Users/xxx/.julia/packages/ORCA/vWe2Y/deps/lib/orca_app/orca: cannot execute: No such file or directory
exec /Users/xxx/.julia/packages/ORCA/vWe2Y/deps/lib/orca_app/orca "$@"
fi
Since in my ~/.bashrc, I define export OSTYPE=uname, on my MacBook Pro, the value of OSTYPE is Darwin, not darwin. Of couse, I could suppress that line in my ~/.bashrc, but in general, we never know what each user handles the OSTYPE variable, it would be a bit risky to just judge if "$OSTYPE" == "darwin", in my opinion. Perhaps, at least, we should check whether [[ "$OSTYPE" == "darwin" ] || [ "$OSTYPE" == "Darwin"* ]]. (Perhaps, there is a better way to check a word with a case insensitive way in bash...)
Thanks a lot to address this problem!
The text was updated successfully, but these errors were encountered:
The best way forward is probably to move all of the OSTYPE-based logic into the build process and create a different bin/orca shell script for MacOs and Linux.
Then add recipe/bin/orca_osx and recipe/bin/orca_linux template scripts that contain only the exec line for that OS, and don't include the OSTYPE conditional logic
Update the OSTYPE conditional logic in reciple/build.sh to copy the correct template script for that OS.
if [[ "$OSTYPE" == "darwin"* ]]; then
# Mac OSX
mv release/mac/orca.app $PREFIX/lib
cp $RECIPE_DIR/bin/orca_osx $ORCA_ENTRY
else
# Assume Linux
mv release/linux-unpacked/ $PREFIX/lib/orca_app
cp $RECIPE_DIR/bin/orca_linux $ORCA_ENTRY
fi
Are you interested in creating a PR with these changes?
@jonmmease Thanks a lot for your comments! I would greatly appreciate it if you could do pull request rather than doing it myself since I am not familar with npm, etc. Thanks!
When I installed the latest version of orca via ORCA.jl (v0.1.0) under Julia v1.0 on my MacBook Pro (OS X 10.11.6), and ran using ORCA. Then it complained:
/Users/xxx/.julia/packages/ORCA/vWe2Y/deps/bin/orca: line 7: /Users/xxx/.julia/packages/ORCA/vWe2Y/deps/lib/orca_app/orca: No such file or directory
/Users/xxx/.julia/packages/ORCA/vWe2Y/deps/bin/orca: line 7: exec: /Users/xxx/.julia/packages/ORCA/vWe2Y/deps/lib/orca_app/orca: cannot execute: No such file or directory
So, I took a look at deps/bin/orga:
#!/bin/bash
if [[ "$OSTYPE" == "darwin"* ]]; then
Mac OSX
exec /Users/xxx/.julia/packages/ORCA/vWe2Y/deps/lib/orca.app/Contents/MacOS/orca "$@"
else
Assume linux
exec /Users/xxx/.julia/packages/ORCA/vWe2Y/deps/lib/orca_app/orca "$@"
fi
Since in my ~/.bashrc, I define export OSTYPE=
uname
, on my MacBook Pro, the value of OSTYPE is Darwin, not darwin. Of couse, I could suppress that line in my ~/.bashrc, but in general, we never know what each user handles the OSTYPE variable, it would be a bit risky to just judge if "$OSTYPE" == "darwin", in my opinion. Perhaps, at least, we should check whether [[ "$OSTYPE" == "darwin" ] || [ "$OSTYPE" == "Darwin"* ]]. (Perhaps, there is a better way to check a word with a case insensitive way in bash...)Thanks a lot to address this problem!
The text was updated successfully, but these errors were encountered: