title: Using JRuby with Rails 3.2
body: <p>Has anyone had any success with installing Rails 3.2 and JRuby 1.6.5 on Mac OSX Lion using RVM? I'm planning on using TorqueBox with NGINX on my production server and I'm trying to mimic as much of the development technology onto my development machine as possible. I haven't gotten to install TorqueBox on my production server, and so far with my OSX RVM install I'm getting a few errors from an existing Rails 3.2 app that works fine with 1.9.2 and REE.</p>
  
  <p>The problem that I'm experiencing is this:</p>
  
  <blockquote>
    <p>ld: -rpath can only be used when targeting Mac OS X 10.5 or later
    collect2: ld returned 1 exit status
    make: <em>*</em> [<strong>GEM</strong>.bundle] Error 1</p>
  </blockquote>
  
  <p>Where <strong>GEM</strong> is any of the handful of Gems that fail when installed with JRuby (1.6.5).</p>
  
  <p>Basically what I'm asking is that if I were to not use JRuby on my dev machine and stick to just 1.9.2 and then use JRuby only on the production machine then is this really a problem? Or should I continue trying to get it to work on Lion?</p>
  
  <p>--- EDIT ---</p>
  
  <p>So far this works with 1.6.6, but Rails 3.2 seems to hang when first accessed after it is booted up. No errors in the console. Any ideas?</p>