我試圖在Ubuntu 10.10上安裝Rails,但每次都得到File not found:lib。 Ruby和Rubygems已經正確安裝。我已經看到這個問題遍佈整個網絡,但沒有解決方案爲我工作。我重新安裝了rdoc,我仍然得到相同的結果。在Ubuntu 10.10上安裝Rails失敗
$ sudo gem install rails
...
Successfully installed rails-3.0.1
24 gems installed
...
Installing ri documentation for builder-2.1.2...
ERROR: While generating documentation for builder-2.1.2
... MESSAGE: Unhandled special: Special: type=17, text="<!-- HI -->"
... RDOC args: --ri --op /var/lib/gems/1.8/doc/builder-2.1.2/ri --title Builder -- Easy XML Building --main README --line-numbers --quiet lib CHANGES Rakefile README doc/releases/builder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc --title builder-2.1.2 Documentation
(continuing with the rest of the installation)
...
Installing ri documentation for rails-3.0.1...
File not found: lib
$ rails -v
The program 'rails' is currently not installed. You can install it by typing:
sudo apt-get install rails
方式太細節。至少在shell中輸出。另外,什麼紅寶石版本?什麼鐵軌版本?你在使用捆綁器嗎?添加了 – 2011-03-23 02:40:34
。我沒有使用捆綁器。我正在運行sudo gem install rails。 – John 2011-03-23 02:50:16