SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Jul 2008
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Unable to get Ruby on Rails working on Mac OS X 10.5

    Dear All,

    I tried installing RoR on Mac OS X 10.5.

    First I installed Developer Tools, followed by the following steps:

    1. Installing Readline

    2. Install Ruby
    After installing Ruby, the command ruby -v gives me:
    Code:
    ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]

    3. Installed RubyGems
    After installing RubyGems, the command gem -v gives me:
    Code:
    1.2.0

    4. Installed Rails
    After installing Rails, the command rails -v gives me:
    Code:
    Rails 1.2.6

    5. Installed MySQL 5.0.51b

    After all this and, created shovell directory

    But now after I run script/server, I get an error saying the version is not compatible, try by commenting the check in configure/environment

    After this too, localhost:3000 refuses to connect!

    Please help me!!!


  2. #2
    SitePoint Member
    Join Date
    Jul 2008
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy

    While trying to install again, I get this error (while installing Ruby)

    Code:
    checking whether struct tm is in sys/time.h or time.h... ./configure: line 12182: syntax error: unexpected end of file

  3. #3
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your Ruby & RubyGems version numbers are good, but you have an old Rails. The current version is 2.1.0. I know nothing about OS X, but you update Rails like this on Linux:

    Code:
    gem update
    This will update Rails to version 2.1.0. Does that fix your problem?

  4. #4
    SitePoint Member
    Join Date
    Jul 2008
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy

    thank you for the reply,

    after updating rails, i am able to get the first localhost:3000 page where it says

    Code:
    Welcome aboard
    You’re riding Ruby on Rails!
    however on clicking About your application’s environment

    I get an error:

    Code:
     MissingSourceFile in Rails/infoController#properties
    
    no such file to load -- sqlite3
    
    RAILS_ROOT: /Users/vibhu/build/shovell
    Application Trace | Framework Trace | Full Trace
    
    This error occurred while loading the following files:
       sqlite3
    
    Request
    
    Parameters:
    
    None
    
    Show session dump
    
    --- 
    flash: !map:ActionController::Flash::FlashHash {}
    
    Response
    
    Headers:
    
    {"cookie"=>[],
     "Cache-Control"=>"no-cache"}
    Many thanks again!

  5. #5
    SitePoint Member
    Join Date
    Jul 2008
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb

    solved it!!!

    Turns out the database wasn't connecting... I had to configure and create the database for it to work! many thanks for the posts!!!

    Have another problem now regarding irb... creating a new thread for that...

  6. #6
    SitePoint Member
    Join Date
    Aug 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by bullet350 View Post
    solved it!!!

    Turns out the database wasn't connecting... I had to configure and create the database for it to work! many thanks for the posts!!!

    Have another problem now regarding irb... creating a new thread for that...
    Could you point me in the direction of exactly how you accomplished that?

    Thanks!


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •