命令行提示:
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
(忘记了在那里找到的解决方法)