Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR installing Jekyll: Failed to build gem native extension #57

Closed
judytime opened this issue Mar 8, 2018 · 7 comments
Closed

ERROR installing Jekyll: Failed to build gem native extension #57

judytime opened this issue Mar 8, 2018 · 7 comments

Comments

@judytime
Copy link

judytime commented Mar 8, 2018

I am having some difficulty installing jekyll.
I have version:

 gem v2.5.2
 ruby v2.3.3

I am trying to run sudo gem install jekyll

The error I am receiving is

ERROR:  Error installing jekyll:
	ERROR: Failed to build gem native extension.

    current directory: /Library/Ruby/Gems/2.3.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20180307-18103-4ueyyk.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/http_parser.rb-0.6.0 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/http_parser.rb-0.6.0/gem_make.out

I have tried to run the development packages

sudo apt-get install ruby-dev
sudo yum ruby-devel

errors

sudo: apt-get: command not found
sudo: yum: command not found

Any help would be appreciated. Thanks!

@sylhare
Copy link
Owner

sylhare commented Mar 8, 2018

Hi!

Which OS are you using ?
(I see you've tried both ubuntu and fedora command lines to install the ruby dev tools)

@judytime
Copy link
Author

judytime commented Mar 8, 2018

Hello! Thanks for the quick reply. I have a macOS 10.13.3 (17D102).

@sylhare
Copy link
Owner

sylhare commented Mar 8, 2018

Ok, then it might be that you haven't the xcode commandline tools installed, it's like Apple dev tool box.
You can either download it from the appstore or run:

xcode-select --install

Let me know if that work.

@judytime
Copy link
Author

judytime commented Mar 8, 2018

You are amazing, thank you! Sucessfully installed jekyll 3.7.3

@sylhare sylhare closed this as completed Mar 8, 2018
@geoffreyhale
Copy link

I'm having the same problem on Ubuntu 16.04.

@sylhare
Copy link
Owner

sylhare commented Sep 13, 2018

Hi what did you run?

Di you try #1 solutions?

@geoffreyhale
Copy link

Yes, of course :). The proposed solutions didn't work in my case.

I solved the problem some other way. Unfortunately, I didn't document the solution or share here and it was a few days ago and I've forgotten already.

Can disregard, thank you.

OMEGA-Y pushed a commit to OMEGA-Y/OMEGA-Y.github.io that referenced this issue Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants