命令行提示:
1. Building native extensions. This could take a while...
2. ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
3. ERROR: Failed to build gem native extension.
4.
5. ruby extconf.rb install gettext
6. extconf.rb:12:in `require': no such file to load -- mkmf (LoadError)
7. from extconf.rb:12
原來,gem需要編譯,但找不到文件mkmf,所以,要先安裝ruby1.8-dev,這樣就不會報錯了。
命令行提示:
1. sudo apt-get install ruby1.8-dev
(忘記了在那裏找到的解決方法)