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 9076769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:11:05+00:00 2026-06-16T19:11:05+00:00

Just updated Ruby on a staging server via RVM: $ rvm upgrade 1.9.3-p327 1.9.3-p362

  • 0

Just updated Ruby on a staging server via RVM:

$ rvm upgrade 1.9.3-p327 1.9.3-p362

I said ‘yes’ to all the migration and alias questions including deleting old Ruby.

Now getting error from Passenger whenever I try to access Rails application:

Error message: 
dlopen(/Library/WebServer/rails/myapp/shared/bundle/ruby/1.9.1/gems/bcrypt-ruby-3.0.1/lib/bcrypt_ext.bundle, 9): 
Library not loaded: /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/libruby.1.9.1.dylib 
Referenced from: /Library/WebServer/rails/myapp/shared/bundle/ruby/1.9.1/gems/bcrypt-ruby-3.0.1/lib/bcrypt_ext.bundle 
Reason: image not found - /Library/WebServer/rails/myapp/shared/bundle/ruby/1.9.1/gems/bcrypt-ruby-3.0.1/lib/bcrypt_ext.bundle

I’ve re-installed Passenger…and also ran cap deploy with slightly updated Gemfile. but it appears there are still some references to the old Ruby. What’s happening here and how can up update, or re-compile, so gems etc reference new Ruby? Is there some flag I can specify in Capistrano that would force the recompiling of gems (assuming that’s the problem)?

Edit (adding some RVM info):

I’m using a “Multi-user” installation of RVM on this server and because of that the gems are installed in: /Library/WebServer/rails/popup/shared/bundle/ruby/1.9.1/gems and not where I might have expected them: /usr/local/rvm/rubies/ruby-1.9.3-p362/lib/ruby/gems/1.9.1/gems. Never really understood what RVM was doing in a Multi-user installation but it has worked.

So, poing being I can’t really $ rvm gemset use myapp and then bundle install because I don’t think that would install in the correct directory.

Here’s Capistrano‘s output during bundle install task:

  * 2013-01-03 19:23:22 executing `bundle:install'
  * executing "cd /Library/WebServer/rails/myapp/releases/20130104032317 && bundle install --gemfile /Library/WebServer/rails/myapp/releases/20130104032317/Gemfile --path /Library/WebServer/rails/myapp/shared/bundle --deployment --quiet --without development test"
  • 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-06-16T19:11:06+00:00Added an answer on June 16, 2026 at 7:11 pm

    The error is about /Library/WebServer/rails/myapp/shared/bundle/ruby/1.9.1/gems/bcrypt-ruby-3.0.1/lib/bcrypt_ext.bundle referencing non existing file /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/libruby.1.9.1.dylib this should not happen as in most cases libruby.1.9.1.dylib should be available as already loaded from ruby when it’s running. So either you have installed ruby using only static compilation or it might be broken.

    Are you sure ruby 1.9.3-p362 is used? RVM provides 1.9.3-p327 for OSX 10.8 which is compiled statically (no package manager issue on OSX). Maybe you used that version(p327) instead?

    As for reinstalling the gems – there is not yet a command that would force reinstalling installed gems in bundler, however you can just remove the gems and force installation fresh:

    cd /Library/WebServer/rails/myapp/
    rm -rf shared/bundle
    bundle install
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just updated to try rails 3, using rvm with ruby 1.9.2-p0. When I
I've just updated my ruby installation on my gentoo server to ruby 1.8.6 patchlevel
Just updated the version of Ruby (1.9.2 to 1.9.3) I have installed but now
I just updated my Windows 2008 Server x64 box to rubygems 1.5.0 and now
I just updated my ruby version and now when I run irb in command
I just updated virtualbox to the latest 4.1.16 r78094 and realized that I can
I just updated PHP 5.2.0 to 5.2.11 and now I am getting loads of
Having just updated Mono to 2.6.3 (on OS X), I noticed in the installer
I just updated an app from .NET 2.0 to .NET 4.0 and I have
I just updated my OS from Snow Leopard to LION 10.7.3, and I usually

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.