# Rails didn't install correctly

**URL:** <https://www.ruby-forum.com/t/rails-didnt-install-correctly/78947>\
**Category:** Rails\
**Created:** [December 28, 2005, 4:04pm UTC](https://www.ruby-forum.com/t/rails-didnt-install-correctly/78947 "2005-12-28T16:04:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spiz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@spiz](https://www.ruby-forum.com/u/spiz)\
**Post date:** [December 28, 2005, 4:04pm UTC](https://www.ruby-forum.com/t/rails-didnt-install-correctly/78947/1 "2005-12-28T16:04:47Z")

</div>

Hi all,

# Apparently rails didn’t install correctly on my Mandrake 10.0 system.

# [slitt@mydesk work]$ rails demo /usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:204:in `report_activate_error': Could not find RubyGem rails (> 0) (Gem::LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:141:in `activate’ from /usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:37:in `require_gem_with_options' from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:31:in `require\_gem’ from /usr/bin/rails:17 [slitt@mydesk work]$

I installed rails with this command as root:

gem install rails --include-dependencies

It errored out (can’t remember what it didn’t find) so I ran it again  
and it  
said it installed successfully.

My Mandrake 10.0 came with Ruby 1.8.1 which is insufficient for rails,  
so I  
installed ruby 1.8.4 in /usr/local/bin, and then renamed the ruby in  
/usr/bin  
to ruby.1.8.1, and then set up a symlink from /usr/bin/ruby  
to /usr/local/bin/ruby. At that point, running Ruby brought up 1.8.4.

I have no idea what the error message meant by “RubyGem rails (\> 0)”.  
Can  
anyone give me some hints on how to troubleshoot this?

Thanks

SteveT

Steve L.  
Author:

- Universal Troubleshooting Process courseware
- Troubleshooting Techniques of the Successful Technologist
- Rapid Learning: Secret Weapon of the Successful Technologist  
Webmaster
- [Troubleshooters.Com](http://Troubleshooters.Com)
- [http://www.troubleshooters.com](http://www.troubleshooters.com)

---

<div class="post-metadata">

**Author:** ![spiz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@spiz](https://www.ruby-forum.com/u/spiz)\
**Post date:** [December 28, 2005, 6:36pm UTC](https://www.ruby-forum.com/t/rails-didnt-install-correctly/78947/2 "2005-12-28T18:36:49Z")

</div>

Hi all,

What I did was reinstalled, but this time without the  
–include-dependencies.

gem install rails

This meant that for each dependency, I had to say yes. The install  
appeared to  
go through cleanly. I then did rails demo, and it did the right thing,  
and  
after this:

cd /home/slitt/work/demo  
ruby script/server

I was able to pull up a rails generated page on [http://localhost:3000](http://localhost:3000).

I have NO IDEA why installing without the --include-dependencies would  
have  
made the problem go away, or even whether the thing that fixed it was  
just  
doing one more install of any kind. What I do know is I found out about  
running without --include-dependencies after google searching the error  
message, and that email thread suggested just gem install rails.

If anyone else asks about a “Could not find RubyGem rails” error, please  
tell  
them to try not using --include-dependencies, and please tell me what  
happened, as I’d like to find the true root cause of this problem.

Thanks

SteveT

---

<div class="post-metadata">

**Author:** ![spiz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@spiz](https://www.ruby-forum.com/u/spiz)\
**Post date:** [December 28, 2005, 7:46pm UTC](https://www.ruby-forum.com/t/rails-didnt-install-correctly/78947/3 "2005-12-28T19:46:45Z")

</div>

Hi all,

What I did was reinstalled, but this time without the  
–include-dependencies.

gem install rails

This meant that for each dependency, I had to say yes. The install  
appeared to  
go through cleanly. I then did rails demo, and it did the right thing,  
and  
after this:

cd /home/slitt/work/demo  
ruby script/server

I was able to pull up a rails generated page on [http://localhost:3000](http://localhost:3000).

I have NO IDEA why installing without the --include-dependencies would  
have  
made the problem go away, or even whether the thing that fixed it was  
just  
doing one more install of any kind. What I do know is I found out about  
running without --include-dependencies after google searching the error  
message, and that email thread suggested just gem install rails.

If anyone else asks about a “Could not find RubyGem rails” error, please  
tell  
them to try not using --include-dependencies, and please tell me what  
happened, as I’d like to find the true root cause of this problem.

Thanks

SteveT

On Wednesday 28 December 2005 10:04 am, Steve L. wrote:

> `require\_gem\_with\_options’  
> it said it installed successfully.
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
Steve L.

> **[Troubleshooters.Com](http://www.troubleshooters.com)**
>
> The process and mindset of troubleshooting.

removed\_email\_address@domain.invalid
