Created
May 31, 2019 20:32
-
-
Save bbarker/366940b3490acef8120ea2e77ce81dc1 to your computer and use it in GitHub Desktop.
Patch matlab java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Patching java... ($MATLAB_PATH/sys/java/jre/glnxa64/jre/bin/java)" | |
chmod u+rw "$MATLAB_PATH/sys/java/jre/glnxa64/jre/bin/java" | |
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ | |
--set-rpath "$libPath:$(patchelf --print-rpath $MATLAB_PATH/sys/java/jre/glnxa64/jre/bin/java)"\ | |
--force-rpath "$MATLAB_PATH/sys/java/jre/glnxa64/jre/bin/java" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Still get this error:
readelf seems to indicate it is 64bit, which would match the matlab install type: