我跟着this instruction對我的Ubuntu 11.04安裝Ruby on Rails的,但總是得到這個錯誤信息:在Ubuntu 11.04安裝Ruby on Rails的失敗:文件 'LIB' 未找到
[email protected]:~$ 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
我GOOGLE了這個問題,這意味着文檔無法生成,但安裝了rails 3.0.9。爲了解決這個問題,我嘗試了兩種方法:
在軌文件夾中創建一個 「LIB」 文件夾
須藤的mkdir /home/feicun/.rvm/gems/ruby-1.9.2-p290 /gems/rails-3.0.9/lib
運行「
gem install rdoc
」之前安裝導軌
但是這兩種方法都沒有工作對我來說,這仍然是在軌道不lib文件夾-3.0.9文件夾。
這是我的環境:
[email protected]:~$ which ruby
/home/feicun/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
[email protected]:~$ which gem
/home/feicun/.rvm/rubies/ruby-1.9.2-p290/bin/gem
[email protected]:~$ which rails
/home/feicun/.rvm/gems/ruby-1.9.2-p290/bin/rails
[email protected]:~$ 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/[email protected]
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
這意味着無法構建文檔。您的rails 3.0.9已安裝。試試rails -v來查看你的rails版本。你應該看到正確的版本。 –
@vicent是的我知道文檔沒有安裝,但我想正確安裝它們。 –