Skip to content

Instantly share code, notes, and snippets.

@iconara
Created October 26, 2011 08:43
Show Gist options
  • Save iconara/1315805 to your computer and use it in GitHub Desktop.
Save iconara/1315805 to your computer and use it in GitHub Desktop.
Installing JRuby with Oracle's JDK 7 Developer Preview
Code/mikka% rvm install jruby-1.6.5
jruby-1.6.5 - #fetching
jruby-1.6.5 - #downloading jruby-bin-1.6.5, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14.6M 100 14.6M 0 0 156k 0 0:01:35 0:01:35 --:--:-- 210k
jruby-1.6.5 - #extracting jruby-bin-1.6.5 to /Users/theo/.rvm/src/jruby-1.6.5
jruby-1.6.5 - #extracted to /Users/theo/.rvm/src/jruby-1.6.5
Building Nailgun
jruby-1.6.5 - #installing to /Users/theo/.rvm/rubies/jruby-1.6.5
jruby-1.6.5 - #importing default gemsets (/Users/theo/.rvm/gemsets/)
Copying across included gems
Fetching: jruby-launcher-1.0.9-java.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing jruby-launcher:
ERROR: Failed to build gem native extension.
/Users/theo/.rvm/rubies/jruby-1.6.5/bin/jruby extconf.rb
make
make -f inc/Makefile-rules.mk CONF=unix SUBPROJECTS= .build-conf
make -f inc/Makefile-rules.mk jruby
mkdir -p build/unix/Darwin
rm -f build/unix/Darwin/argparser.o.d
g++ -O2 -Wall -I/Library/Java/JavaVirtualMachines/JDK 1.7.0 Developer Preview.jdk/Contents/Home/include -c argparser.cpp -MMD -MP -MF build/unix/Darwin/argparser.o.d -o build/unix/Darwin/argparser.o
i686-apple-darwin11-llvm-g++-4.2: 1.7.0: No such file or directory
i686-apple-darwin11-llvm-g++-4.2: Developer: No such file or directory
i686-apple-darwin11-llvm-g++-4.2: Preview.jdk/Contents/Home/include: No such file or directory
make[2]: *** [build/unix/Darwin/argparser.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
Gem files will remain installed in /Users/theo/.rvm/gems/jruby-1.6.5/gems/jruby-launcher-1.0.9-java for inspection.
Results logged to /Users/theo/.rvm/gems/jruby-1.6.5/gems/jruby-launcher-1.0.9-java/./gem_make.out
Code/mikka% /usr/libexec/java_home
/Library/Java/JavaVirtualMachines/JDK 1.7.0 Developer Preview.jdk/Contents/Home
Code/mikka% /usr/libexec/java_home -v 1.6
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Code/mikka% JAVA_HOME=$(/usr/libexec/java_home -v 1.6) rvm install jruby-1.6.5
jruby-1.6.5 - #fetching
jruby-1.6.5 - #extracted to /Users/theo/.rvm/src/jruby-1.6.5 (already extracted)
Building Nailgun
jruby-1.6.5 - #installing to /Users/theo/.rvm/rubies/jruby-1.6.5
jruby-1.6.5 - #importing default gemsets (/Users/theo/.rvm/gemsets/)
Copying across included gems
Building native extensions. This could take a while...
Successfully installed jruby-launcher-1.0.9-java
1 gem installed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment