Setup on Ubuntu

So far my experience with Rails has been that is an absolute nightmare
to setup. I followed the tutorial found here=>
https://help.ubuntu.com/community/RubyOnRails

Which is simple enough, although now IRB does not work, gem does not
work, and I continually get the error

./lib/rubygems.rb:10:in require': no such file to load -- thread (LoadError) from ./lib/rubygems.rb:10 from setup.rb:19:in require’
from setup.rb:19

When trying to reinstall gems.

I am sure the problem is something to do with using the apt-get
package installer first.
Any help would be appreciated.

Well I got it but it was slightly ugly. I had to go through and purge
each package and then use the example provided on the ubuntu homepage.
Using apt-get really does make it a struggle.

I followed this tutorial, which seemed like a lot of steps, but it was
as smooth as silk. Just cut and paste and no problems.

http://www.urbanpuddle.com/articles/2008/04/28/install-ruby-on-rails-hardy-heron

Good luck

Yes, I think that my problem was following a slightly outdated
tutorial and using apt-get instead of gem. I purged everything and
started from scratch, and it was really easy. Pretty neat stuff I have
to admit.

http://www.urbanpuddle.com/articles/2008/04/28/install-ruby-on-rails-hardy-heron

Hi,

I got same problem. When I run irb I can’t load any gem. I’m using
Ubuntu 8.04.

Here’s gem env:
RubyGems Environment:

  • RUBYGEMS VERSION: 1.2.0
  • RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
  • INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
  • RUBY EXECUTABLE: /usr/bin/ruby1.8
  • EXECUTABLE DIRECTORY: /usr/bin
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86-linux
  • GEM PATHS:
    • /usr/lib/ruby/gems/1.8
  • GEM CONFIGURATION:
  • REMOTE SOURCES:

“which ruby” gives me /usr/local/bin/ruby which is just symlink to /
usr/bin/ruby1.8. When I require the same gem from Rails’ script/
console, then everything is ok.

Any ideas?