Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JRuby 1.7.19 fails to build on Ubuntu 14 #734

Closed
suetanvil opened this issue Mar 21, 2015 · 6 comments
Closed

JRuby 1.7.19 fails to build on Ubuntu 14 #734

suetanvil opened this issue Mar 21, 2015 · 6 comments
Labels

Comments

@suetanvil
Copy link

I am unable to install jruby-1.7.19 on Ubuntu 14 using rbenv.

After some digging, I tracked down the problem to a C++ compile-time error while installing the jruby-launcher gem. When I commented out the call to install_ruby_launcher in ruby-build, jruby installed with no problems and ran perfectly.

I'll be submitting a pull request shortly that makes jruby-launcher optional.

suetanvil added a commit to suetanvil-misc/ruby-build that referenced this issue Mar 21, 2015
Since jruby already comes with launch scripts, jruby-launcher isn't
really necessary.  It does, however completely scuttle the
installation if the compile fails.

This change skips the installation of jruby-launcher unless the
install command was invoked with the flag '--launcher-gem'.

This is a fix for issue:

<rbenv#734>.
@hsbt hsbt added the jruby label Mar 26, 2015
@zhaohanweng
Copy link

Currently still cannot install jruby via rbenv install jruby-1.7.19 on mac with jdk8.

Output:

Last 10 log lines:
         ^
1 error generated.
make[2]: *** [build/unix/Darwin/argparser.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

make failed, uncaught signal 2

Gem files will remain installed in /usr/local/var/rbenv/versions/jruby-1.7.19/lib/ruby/gems/shared/gems/jruby-launcher-1.1.1-java for inspection.
Results logged to /usr/local/var/rbenv/versions/jruby-1.7.19/lib/ruby/gems/shared/extensions/universal-java-1.8/1.9/jruby-launcher-1.1.1-java/gem_make.out

Still have the jruby-launcher problem. will this fix be merged next release?

@zhaohanweng
Copy link

I tried just removing the install-jruby-launcher line in the ruby-build. it installed the jruby fine. but I cannot use gem after.

>> gem
>> /usr/local/var/rbenv/versions/jruby-1.7.19/bin/gem: line 4: syntax error near unexpected token `('
>> /usr/local/var/rbenv/versions/jruby-1.7.19/bin/gem: line 4: `load File.join(File.dirname(__FILE__), 'jgem')'

@cldwalker
Copy link

Also unable to install jruby-1.7.19 on osx 10.10 with jdk8 and getting the same errors as @zhaohanweng

@mislav
Copy link
Member

mislav commented Jun 11, 2015

Is JRuby 1.7 even compatible with JDK 8?

@zhaohanweng
Copy link

I am using jdk8 on osx as well. and rbenv install jruby-1.7.20 works.

@hsbt
Copy link
Member

hsbt commented Jan 27, 2017

JRuby 1.7.x is EOL now. see jruby/jruby#4112

@hsbt hsbt closed this as completed Jan 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants