Installing Ruby on Rails on Ubuntu 11.04 failed: file 'lib' not found
I followed [this instruction][1] to install Ruby on Rails on my ubuntu 11.04, but always got this error message:

    feicun@feicun-ubuntu:~$ gem install rails
    Successfully installed rails-3.0.9
    1 gem installed
    Installing ri documentation for rails-3.0.9...
    file 'lib' not found
    Installing RDoc documentation for rails-3.0.9...
    file 'lib' not found

I googled this problem, and tried two method:

1. create a "lib" folder in rails' folder

    sudo mkdir /home/feicun/.rvm/gems/ruby-1.9.2-p290/gems/rails-3.0.9/lib

2. run "`gem install rdoc`" before install rails

But both of these methods are not work for me, these is still haven't lib folder in rails-3.0.9 folder.

This is my environment:

    feicun@feicun-ubuntu:~$ which ruby
    /home/feicun/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
    feicun@feicun-ubuntu:~$ which gem
    /home/feicun/.rvm/rubies/ruby-1.9.2-p290/bin/gem
    feicun@feicun-ubuntu:~$ which rails
    /home/feicun/.rvm/gems/ruby-1.9.2-p290/bin/rails
    feicun@feicun-ubuntu:~$ gem environment
    RubyGems Environment:
      - RUBYGEMS VERSION: 1.8.6
      - RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [i686-linux]
      - INSTALLATION DIRECTORY: /home/feicun/.rvm/gems/ruby-1.9.2-p290
      - RUBY EXECUTABLE: /home/feicun/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
      - EXECUTABLE DIRECTORY: /home/feicun/.rvm/gems/ruby-1.9.2-p290/bin
      - RUBYGEMS PLATFORMS:
        - ruby
        - x86-linux
      - GEM PATHS:
         - /home/feicun/.rvm/gems/ruby-1.9.2-p290
         - /home/feicun/.rvm/gems/ruby-1.9.2-p290@global
      - GEM CONFIGURATION:
         - :update_sources => true
         - :verbose => true
         - :benchmark => false
         - :backtrace => false
         - :bulk_threshold => 1000
      - REMOTE SOURCES:
         - http://rubygems.org/


  [1]: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/
Installing Ruby on Rails on Ubuntu 11.04 failed: file 'lib' not found
===

I followed [this instruction][1] to install Ruby on Rails on my ubuntu 11.04, but always got this error message:

    feicun@feicun-ubuntu:~$ gem install rails
    Successfully installed rails-3.0.9
    1 gem installed
    Installing ri documentation for rails-3.0.9...
    file 'lib' not found
    Installing RDoc documentation for rails-3.0.9...
    file 'lib' not found

I googled this problem, and tried two method:

1. create a "lib" folder in rails' folder

    sudo mkdir /home/feicun/.rvm/gems/ruby-1.9.2-p290/gems/rails-3.0.9/lib

2. run "`gem install rdoc`" before install rails

But both of these methods are not work for me, these is still haven't lib folder in rails-3.0.9 folder.

This is my environment:

    feicun@feicun-ubuntu:~$ which ruby
    /home/feicun/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
    feicun@feicun-ubuntu:~$ which gem
    /home/feicun/.rvm/rubies/ruby-1.9.2-p290/bin/gem
    feicun@feicun-ubuntu:~$ which rails
    /home/feicun/.rvm/gems/ruby-1.9.2-p290/bin/rails
    feicun@feicun-ubuntu:~$ gem environment
    RubyGems Environment:
      - RUBYGEMS VERSION: 1.8.6
      - RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [i686-linux]
      - INSTALLATION DIRECTORY: /home/feicun/.rvm/gems/ruby-1.9.2-p290
      - RUBY EXECUTABLE: /home/feicun/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
      - EXECUTABLE DIRECTORY: /home/feicun/.rvm/gems/ruby-1.9.2-p290/bin
      - RUBYGEMS PLATFORMS:
        - ruby
        - x86-linux
      - GEM PATHS:
         - /home/feicun/.rvm/gems/ruby-1.9.2-p290
         - /home/feicun/.rvm/gems/ruby-1.9.2-p290@global
      - GEM CONFIGURATION:
         - :update_sources => true
         - :verbose => true
         - :benchmark => false
         - :backtrace => false
         - :bulk_threshold => 1000
      - REMOTE SOURCES:
         - http://rubygems.org/


  [1]: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/