3 ms·
Going to try it out, but does anyone know offhand whether GraalVM can be ran within the Linux subsystem in Windows 10?
by rajangdavis 9y ago
Going to try it out, but does anyone know offhand whether GraalVM can be ran within the Linux subsystem in Windows 10?
- grashalm 9y agoIf you can run a HotSpot JVM there then also GraalVM should work. I don't think we tested that.
- rajangdavis 9y agoWill let you know what I find out, thanks! Edit: It works (for Ruby and Python) Here is how to set up GraalVM for the Linux Subsystem on Windows 10: 1. Enable and Install Ubuntu for Windows 10: https://docs.microsoft.com/en-us/windows/wsl/install-win10 https://docs.microsoft.com/en-us/windows/wsl/install-win10 2. Download the EE edition of GraalVM to Windows: http://www.graalvm.org/downloads/ http://www.graalvm.org/downloads/ 3. Mount the folder that has the tar file: https://stackoverflow.com/a/42586455/2548452 https://stackoverflow.com/a/42586455/2548452 4. Unzip the files (tar xvfs graalvm-ee-1.0.0-rc1-linux-amd64.tar.gz) 5. Create a .bash_profile for setting the $PATH (my personal preference) 6. Follow the instructions from the following up until the "Running Programs": http://www.graalvm.org/docs/getting-started/ http://www.graalvm.org/docs/getting-started/ 7. Follow instructions for installing LLVM and locales: https://github.com/oracle/truffleruby#system-compatibility https://github.com/oracle/truffleruby#system-compatibility 8. Follow instructions for installing libssl-dev: https://github.com/oracle/truffleruby/blob/master/doc/user/installing-libssl.md https://github.com/oracle/truffleruby/blob/master/doc/user/i... 9. NOW continue on with everything _after_ "Running Programs": http://www.graalvm.org/docs/getting-started/ http://www.graalvm.org/docs/getting-started/ Getting npm to work: I could run node -v, but could not run npm and I was getting this error: jvm library could not be loaded: /home/raj/graalvm/jre/lib/polyglot/libpolyglot.so: cannot enable executable stack as shared object requires: Invalid argument I fixed it by running the following: 1. sudo apt-get install prelink 2. sudo execstack -c ~/graalvm/jre/lib/polyglot/libpolyglot.so Going to do some experimenting, but so far so good!
- gbraad 9y agowhy would you want that... it should run directly on Windows too?!? Not sure what you gain from using the linux binary from LXSS. If you really insist, invoke instead as .exe so you can still use bash and other tools, but run the actual compile or runtime using the system-native implementation.
- rajangdavis 9y agoCan you show me any Windows build instructions or anything that indicates Windows support?