Gem files will remain installed in /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25 for inspection. yesĬonfigure: error: in `/usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi-x86_64-darwin18':Ĭonfigure: error: C++ preprocessor "/lib/cpp" fails sanity check yesĬhecking for rb_thread_call_without_gvl(). noĬhecking for rb_thread_call_with_gvl(). noĬhecking for rb_thread_blocking_region(). siteconf20180925-70551-fjs550.rb extconf.rbĬhecking for ffi.h in /usr/local/include,/usr/include/ffi. This could take a while.ĮRROR: Failed to build gem native extension.Ĭurrent directory: /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c I am using the following command to installĭone installing documentation for bundler after 3 secondsīuilding native extensions. So I uninstalled it, and now I cannot install it again. I updated my MacBook Pro to the new OS version (10.14), and Jekyll did not work anymore. I used Jekyll on my MacBook Pro without any problem in the previous version of M … acOS. If you want to be able to run different Ruby development environments, then go with rbenv as documented above. Gems should be installed in your home directory: $ which bundler Then follow the normal procedure: $ gem install bundler jekyll We now run latest stable Ruby, cool, Jekyll should be a bit faster. Then add Ruby path to you shell config file (mine is Zsh):Įcho 'export PATH="/usr/local/opt/ruby/bin:$PATH"' > ~/.zshrc If the above method does not work for you or you want to run latest Ruby, you should install ruby with homebrew : Relaunch you terminal for the changes to be taken into account or source the config file. This is recommended whatever method you choose to install Jekyll to avoid file permissions problems. Note: What is still missing here is a way to check that headers are present in order to compile extensions like ffi. Most of the errors you encounter are related to those two operations. It should work fine on macOS 10.14, given you have compilation headers installed and that you change default PATH for gems to ~/gems. Note: rbenv should not be the default install method on Jekyll docs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |