warrior32
asked on
Ruby on Rails installation Help
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.fram ework/Vers ions/1.8/u sr/lib/rub y
- RUBY EXECUTABLE: /System/Library/Frameworks /Ruby.fram ework/Vers ions/1.8/u sr/bin/rub y
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-9
- GEM PATHS:
- /System/Library/Frameworks /Ruby.fram ework/Vers ions/1.8/u sr/lib/rub y/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.r b:54: syntax error, unexpected ',', expecting '|' (SyntaxError)
... define_method name do |*args, &block| # TODO: really works ...
^
./lib/rubygems/deprecate.r b:55: syntax error, unexpected tCONSTANT, expecting '}'
./lib/rubygems/deprecate.r b:64: syntax error, unexpected kEND, expecting '}'
./lib/rubygems/deprecate.r b: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?
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 EXECUTABLE: /System/Library/Frameworks
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-9
- GEM PATHS:
- /System/Library/Frameworks
- /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.r
... define_method name do |*args, &block| # TODO: really works ...
^
./lib/rubygems/deprecate.r
./lib/rubygems/deprecate.r
./lib/rubygems/deprecate.r
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
ASKER
'sudo gem install rails'
Password:
ERROR: While executing gem ... (Gem::RemoteSourceExceptio
HTTP Response 302 fetching http://gems.rubyforge.org/yaml