Mkmf.rb Can't Find Header Files For Ruby Macos

  1. Mkmf.rb Can't Find Header Files For Ruby Macos 10
  2. Examples Of Header Files

Mkmf.rb can't find header files for ruby on OS X 10.8.2 #66. Closed flaccid opened this issue May 2, 2013 1 comment Closed mkmf.rb can't find header files for. Web Engineer 2009-2011 Hatena(part-time) 2011-2015 DeNA.

Find

This happened to me after upgrading MacOS to version “High Sierra” on my MacBook. I cloned my application repository and went to execute a bundle install command, but it throws the following error message:

So I tried to enter password and install the bundled gems to RubyGems using sudo. But this did not solve the problem and here’s what I saw:

Ii ruby-dev:i386 1:2.3.3 i386 Header files for compiling extension modules for Ruby (default version)ii ruby1.8-dev 1.8.7.358-7 i386 Header files for compiling extension modules for the Ruby 1.8ii ruby2.3-dev:i386 2.3.3-1 i386 Header files for compiling extension modules for the Ruby 2.3. Catalina now ships with Ruby 2.6, instead of 2.3. My guess is that with the upgrade, all custom installed gems became 'untracked' by the new Ruby/Gem package system. With that, gem update doesn't take care of updating colorls. Source site setup new drafts ruby macos rubygems install jekyll MySQLインストール:エラー:gemネイティブ拡張を構築できませんでした Ubuntuでsqlite3-rubyのインストールエラー. 'gem install fpm' fails due to mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h #366 Closed Dieterbe opened this issue Feb 20, 2013 5 comments.

In this error message, we are prompted to install the gem ffi by using the following command:

Mkmf.rb Can't Find Header Files For Ruby Macos 10

This did not help, and the same with the use of sudo. Then I decided to try set a location other than my system’s gem repository. Moreover, in the first error message we were asked about this option.

Looks good. Let’s now try to run the bundle install command:

And it worked.

Conclusion

That’s it, you’re done. So simple isn’t it?

If you are having trouble fixing this problem with the instructions above, but are being able to solve this problem with any another method please describe it in the comment section below. Thanks!

Ruby

If this article helped you solve the problem then please leave a comment

Thanks for reading!

Examples Of Header Files

Arthur is a designer and full stack software engineer. He is the founder of Space X-Chimp and the blog My Cyber Universe. His personal website can be found at arthurgareginyan.com.

Follow Arthur