“要求”:没有这样的文件来加载-mkmf(LoadError)我试图在UbuntuNattyNarwhal 11.04上安装Rails,使用ruby1.9.1。我安装了rubyapt-get install ruby1.9.1-full它包含dev包。我搜索了这个错误,并且都建议我安装我已经拥有的1.9.1-dev。Building native extensions. This could take a while...ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
extconf.rb:36:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:36
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/bcrypt-ruby-3.0.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/bcrypt-ruby-3.0.1/ext/mri/gem_make.out
3 回答
ABOUTYOU
TA贡献1812条经验 获得超5个赞
-dev
ruby1.8
ruby1.9.1
sudo apt-get install ruby1.9.1-dev
sudo apt-get install ruby-dev
locate mkmf
慕森卡
TA贡献1806条经验 获得超8个赞
sudo apt-get install ruby-dev# if above doesnt work make sure you have build essentialsudo apt-get install build-essential
- 3 回答
- 0 关注
- 510 浏览
添加回答
举报
0/150
提交
取消