Install ruby headers with rvm

点点圈 提交于 2019-12-03 17:23:14

you are checking in wrong location, check with:

$ find /home/mpapis/.rvm/rubies/ruby-1.9.3-p194/ -name ruby.h
/home/mpapis/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/ruby/ruby.h
/home/mpapis/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/ruby.h
chb

There is an option that you can pass to rvm install which will force rvm to compile the ruby instance from source:

rvm install <ruby-version> --disable-binary

This made it possible for me to successfully install fog and its dependency nokogiri.

I came across this solution in a GitHub thread; it was posted by mpapis there.

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