This project is archived and is in readonly mode.

#5790 ✓invalid
Ken Vogt

Installing Rails 3.0 under Snow Leopard

Reported by Ken Vogt | October 11th, 2010 @ 09:37 PM

I would like to install Rails 3.0 on my Macbook which is running Snow Leopard. It came with Ruby 1.8.6. I installed Rails 3.0 but I can't get anything to run. I managed to upgrade Ruby to 1.8.7 but do I need 1.9.2? Is there a recipe somewhere in the world for installing the latest Ruby on Rails under Snow Leopard?

BTW, running "ruby -v" in my terminal returns:

ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10]

Comments and changes to this ticket

  • Ken Vogt

    Ken Vogt October 11th, 2010 @ 09:48 PM

    Allow me to add a few details. While I would have used sqlite3, the gem would not install because it requires Ruby 1.9.1 or greater. So I tried using mysql. Here is the result of running "rails server":

    $ rails server => Booting WEBrick => Rails 3.0.0 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2010-10-11 13:45:03] INFO WEBrick 1.3.1 [2010-10-11 13:45:03] INFO ruby 1.8.7 (2009-06-12) [universal-darwin10.0] [2010-10-11 13:45:03] INFO WEBrick::HTTPServer#start: pid=2756 port=3000 dyld: lazy symbol binding failed: Symbol not found: _mysql_init
    Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle Expected in: flat namespace

    dyld: Symbol not found: _mysql_init
    Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle Expected in: flat namespace

    Trace/BPT trap

  • Ryan Bigg

    Ryan Bigg October 11th, 2010 @ 10:24 PM

    • State changed from “new” to “invalid”
    • Importance changed from “” to “Low”

    This is not a Rails issue, this is to do with your the mysql gem is set up on your machine. Please use the mysql gem.

  • Ken Vogt

    Ken Vogt October 11th, 2010 @ 10:57 PM

    I must respectfully disagree that this is not a Rails issue. I am asking for a recipe for installing Rails under Snow Leopard. If there is a more appropriate forum to ask this question though I would appreciate your recommendation.

    Here is the result I get when installing the mysql gem:

    $ gem install mysql ERROR: While executing gem ... (Errno::EACCES)

    Permission denied - /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/COPYING
    
  • Ryan Bigg

    Ryan Bigg October 11th, 2010 @ 11:29 PM

    You must use sudo to install gems to /Library, as your user doesn't own this directory. The Rails lighthouse is reserved for Rails-specific issues, such as bugs, feature requests or patches to improve the documentation.

    For general help, please ask on http://stackoverflow.com or http://groups.google.com/group/rubyonrails-talk.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages