Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6385043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:50:59+00:00 2026-05-25T02:50:59+00:00

Trying to get my Ruby/Rails environment working on OSX Lion. I am intermittently getting

  • 0

Trying to get my Ruby/Rails environment working on OSX Lion.

I am intermittently getting connection refused when trying to start irb or rails console.

I just rebooted the machine and got this when trying the rails console:

Chris-Kimptons-MacBook-Air-2:unicode-parallel-bug kimptoc$ rails c
[1]+  Segmentation fault: 11  ( JRUBY_OPTS='' jruby --ng-server 2>&1 > /dev/null )
Chris-Kimptons-MacBook-Air-2:unicode-parallel-bug kimptoc$ set | grep CC
CC=gcc-4.2

Any tips/tricks/suggestions for Jruby on OSX Lion?

It seems like it might be nailgun related. irb hangs, as per below. When I killed nailgun, it then just gives connection refused – presumably because its expecting nailgun.

$:~ kimptoc$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)
$:~ kimptoc$ rvm use jruby
Using /Users/kimptoc/.rvm/gems/jruby-1.6.3
$:~ kimptoc$ irb
^C  #just hangs

$:~ kimptoc$ ps -ae | grep java
  542 ttys000    0:15.20 /usr/bin/java -Dfile.encoding=UTF-8 -server -Djdk.home= -Djruby.home=/Users/kimptoc/.rvm/rubies/jruby-1.6.3 -Djruby.script=jruby -Djruby.shell=/bin/bash -Djffi.boot.library.path=/Users/kimptoc/.rvm/rubies/jruby-1.6.3/lib/native/Darwin -Xmx500m -Xss2048k -Djruby.memory.max=500m -Djruby.stack.max=2048k -Dsun.java.command=com.martiansoftware.nailgun.NGServer -Djava.class.path=/Users/kimptoc/.rvm/rubies/jruby-1.6.3/lib/jruby.jar: com/martiansoftware/nailgun/NGServer
  880 ttys001    0:00.00 grep java
$:~ kimptoc$ kill -9 542

$:~ kimptoc$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)
$:~ kimptoc$ ruby -v
connect: Connection refused
$:~ kimptoc$ ruby --help
connect: Connection refused
$:~ kimptoc$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)

I tried re-install jruby (using rvm) and it got past the above error with irb, but then “rails c” crashes, like so:

$ rails c
$ echo $?
227

Thanks in advance
Chris

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:51:00+00:00Added an answer on May 25, 2026 at 2:51 am

    Solved it by re-installing jruby (possibly rvm too – sorry, cant remember now).

    Probably partly related to nailgun issues- which should now be resolved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to get ruby on rails 1.8.7 working on windows but when i start
Why do I get following error when trying to start a ruby on rails
I get this error when trying ruby script/console Rails requires RubyGems >= . Please
I'm trying to get up and working with vim with ruby on rails and
I'm trying to get Redmine (a Ruby on Rails app) working. It works fine
I am trying to get a multiple ruby/rails environment set up with rvm but
I'm trying to get Ruby on Rails setup on my new eeeubuntu install and
I was trying to get the latest ruby on rails for my Mac running
I've been trying to get setup with Ruby on Rails today, but I think
I'm trying to get a Ruby on Rails project started on Dreamhost, ruby version

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.