On 24 Feb 2009, at 07:18, Ephraim Mamo wrote:

>
> I am newbie to RoR and trying to install on CentOS. Installing of Ruby
> from ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.gz and  
> that
> went smoothly.
>
> % ruby -v
> ruby 1.9.1p0 (2009-01-30 revision 21907) [i686-linux]
>

ruby 1.9 bundles rubygems. You probably overwrote the version of  
rubygems that is part of ruby itself.
ruby 2.2.2 isn't ready for ruby 1.9 (rails 2.3 should be)

Fred
> Then trying installing rubygems from
> http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz.  
> Running
> "ruby setup.rb" was a total disaster. The last message the  
> installation
> prints out is "RubyGems installed the following executables:
> /usr/local/bin/ruby," and doing
>
> % ruby -v
> /usr/local/bin/ruby: line 8: require: command not found
> /usr/local/bin/ruby: line 9: require: command not found
> /usr/local/bin/ruby: line 10: require: command not found
> /usr/local/bin/ruby: line 12: required_version: command not found
> /usr/local/bin/ruby: line 14: unless: command not found
> /usr/local/bin/ruby: line 15: abort: command not found
> /usr/local/bin/ruby: line 16: end: command not found
> /usr/local/bin/ruby: line 21: syntax error near unexpected token `('
> /usr/local/bin/ruby: line 21: `args = !ARGV.include?("--") ?  
> ARGV.clone
> : ARGV[0...ARGV.index("--")]'
>
> I can get ruby back by reinstalling it ... then I attempted "gem  
> install
> rails" which seems to have succeeded to my surprise.
>
> % gem update rails
> Updating installed gems
> Nothing to update
>
> Then the following happens:
>
> % cd %demo_app%
> % ruby script/server
> /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/lib/ 
> active_support/dependencies.rb:153:in
> `require': no such file to load -- test/unit/error (MissingSourceFile)
>        from
> /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/lib/ 
> active_support/dependencies.rb:153:in
> `block in require'
>        from
> /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/lib/ 
> active_support/dependencies.rb:521:in
> `new_constants_in'
>        from
> /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/lib/ 
> active_support/dependencies.rb:153:in
> `require'
>        from
> /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/lib/ 
> active_support/deprecation.rb:224:in
> `<top (required)>'
>        from
> /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/lib/ 
> active_support/dependencies.rb:153:in
> `require'
>        from
> /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/lib/ 
> active_support/dependencies.rb:153:in
> `block in require'
>        from
> /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/lib/ 
> active_support/dependencies.rb:521:in
> `new_constants_in'
>        from
> /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/lib/ 
> active_support/dependencies.rb:153:in
> `require'
>        from
> /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/lib/ 
> active_support.rb:37:in
> `<top (required)>'
>        from
> /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.2.2/lib/commands/ 
> server.rb:1:in
> `require'
>        from
> /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.2.2/lib/commands/ 
> server.rb:1:in
> `<top (required)>'
>        from script/server:3:in `require'
>        from script/server:3:in `<main>'
>
>
> Now what am I to do?
>
> Thanks in advance.
> -- 
> Posted via http://www.ruby-forum.com/.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to