Failed to build gem native extension (mkmf (LoadError)) - Ubuntu 12.04 [duplicate]

。_饼干妹妹 提交于 2019-11-29 14:42:40
MrYoshiji

Possible duplicate of:

Unable to install gem - Failed to build gem native extension - cannot load such file -- mkmf (LoadError)

Depending on your ruby version, run:

sudo apt-get install ruby1.9.1-dev
Rails Guy

If you are using RVM, you shouldn't ever be using 'sudo'. Using sudo calls libs and such out of the rvm path. Try just a flat:

gem install rails -v3.2.9

and see if that helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!