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
@sglyon , when I installed ORCA on my MacBook Pro (OS X 10.11.6), and ran using ORCA for PlotlyJS, 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...)
The text was updated successfully, but these errors were encountered:
@sglyon , when I installed ORCA on my MacBook Pro (OS X 10.11.6), and ran using ORCA for PlotlyJS, 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 ofOSTYPE
isDarwin
, notdarwin
. Of couse, I could suppress that line in my ~/.bashrc, but in general, we never know what each user handles theOSTYPE
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...)The text was updated successfully, but these errors were encountered: