Solved

Ruby on Rails installation Help

Posted on 2012-03-29
3
665 Views
Last Modified: 2012-06-04
I need help figuring out what I'm doing wrong.  I have Mac OS 10.5.8 and need to get ruby on rails installed and working.

g'em env' rom the terminal prompt has the following:


gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.0.1 (1.0.1)
  - RUBY VERSION: 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0]
  - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
  - RUBYGEMS PREFIX: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby
  - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-darwin-9
  - GEM PATHS:
     - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
     - /Library/Ruby/Gems/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://gems.rubyforge.org


I thought I had installed 1.9.3

When I try to install rubygems1.8.21 I get the following

rubygems-1.8.21 uriel$ sudo /usr/bin/ruby setup.rb
./lib/rubygems.rb:334: warning: parenthesize argument(s) for future version
./lib/rubygems.rb:516: warning: parenthesize argument(s) for future version
./lib/rubygems.rb:32:in `require': ./lib/rubygems/deprecate.rb:54: syntax error, unexpected ',', expecting '|' (SyntaxError)
... define_method name do |*args, &block| # TODO: really works ...
                              ^
./lib/rubygems/deprecate.rb:55: syntax error, unexpected tCONSTANT, expecting '}'
./lib/rubygems/deprecate.rb:64: syntax error, unexpected kEND, expecting '}'
./lib/rubygems/deprecate.rb:69: syntax error, unexpected kEND, expecting '}'
      from ./lib/rubygems.rb:32
      from setup.rb:27:in `require'
      from setup.rb:27


'which ruby'  from the terminal has
/usr/bin/ruby


Did I install ruby wrong?
0
Comment
Question by:warrior32
  • 2
3 Comments
 

Author Comment

by:warrior32
ID: 37780586
When I do from the terminal

'sudo gem install rails'
Password:
ERROR:  While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302 fetching http://gems.rubyforge.org/yaml
0
 
LVL 3

Accepted Solution

by:
Rameshwar Vyevhare earned 500 total points
ID: 37786300
You want to work with multiple version of ruby then you should install RVM first then try ruby gems version you wants to install.

http://seanbehan.com/mac-os-x/installing-and-using-rvm-on-mac-os-x-creating-gemsets-and-reverting-to-original-environment/


Use this link which will help you.


Best Luck.
0
 
LVL 3

Expert Comment

by:Rameshwar Vyevhare
ID: 37786301
You want to work with multiple version of ruby then you should install RVM first then try ruby gems version you wants to install.

http://seanbehan.com/mac-os-x/installing-and-using-rvm-on-mac-os-x-creating-gemsets-and-reverting-to-original-environment/


Use this link which will help you.


Best Luck.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How does a lexer and parser works 2 84
PL/SQL help needed. Script to compare columns and copy data between tables 6 64
sameEnds challenge 25 83
recursion example 16 111
I recently rediscovered rails when I needed a holiday project and decided to build a management dashboard for the company where I work.  With it being a project done in my free time, I could focus my time on learning the basics rather than trying to…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now