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

GCC and Make are needed for Ubuntu installation. #5730

Closed
seltzy opened this Issue Jan 7, 2017 · 3 comments

Comments

Projects
None yet
4 participants
@seltzy

seltzy commented Jan 7, 2017

  • I believe this to be a bug, not a question about using Jekyll.
  • I updated to the latest Jekyll (or) if on GitHub Pages to the latest github-pages
  • I am on (or have tested on) Debian/Ubuntu GNU/Linux
  • I was trying to install.

My Reproduction Steps

I followed the basic installation instructions to the letter, but as administrator, on the latest version of Ubuntu (16.04).

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ruby
sudo gem update
sudo gem install jekyll

Here's where things went wrong during sudo gem install jekyll:

Building native extensions.  This could take a while...
ERROR:  Error installing jekyll:
        ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/ffi-1.9.14/ext/ffi_c
/usr/bin/ruby2.3 -r ./siteconf20170107-2494-1m1noxn.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/ffi-1.9.14 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/ffi-1.9.14/gem_make.out

It was because gcc was not installed. I've also found that some people needed make. Please add that to the installation requirements. I also installed ruby-dev to be sure. Thanks. :)

@DirtyF DirtyF added the documentation label Jan 7, 2017

@DirtyF

This comment has been minimized.

Show comment
Hide comment
@DirtyF

DirtyF Jan 7, 2017

Member

@jekyll/documentation Does someone under GNU/Linux care to submit a PR?

Member

DirtyF commented Jan 7, 2017

@jekyll/documentation Does someone under GNU/Linux care to submit a PR?

@DirtyF DirtyF added the help-wanted label Jan 7, 2017

zdroid added a commit to zdroid/jekyll that referenced this issue Jan 7, 2017

@zdroid

This comment has been minimized.

Show comment
Hide comment
@zdroid

zdroid Jan 7, 2017

Member

I have both GCC and Make already installed and required for packages on my system, so I don't want to experiment with them removed. However, it seems legit that you need them to finish the installation. I've sent the PR.

Member

zdroid commented Jan 7, 2017

I have both GCC and Make already installed and required for packages on my system, so I don't want to experiment with them removed. However, it seems legit that you need them to finish the installation. I've sent the PR.

@michaelwsherman

This comment has been minimized.

Show comment
Hide comment
@michaelwsherman

michaelwsherman Jan 15, 2018

Hi all. I know this is closed but I think you also need build-essential as a requirement along with make and gcc.

I just ran into this problem myself and still got an error after apt-get install make and apt-get install gcc. Running apt-get install build-essential fixed the error and I only then able to successfully run gem install jekyll without the "Failed to build gem native extension" error.

Thanks.

michaelwsherman commented Jan 15, 2018

Hi all. I know this is closed but I think you also need build-essential as a requirement along with make and gcc.

I just ran into this problem myself and still got an error after apt-get install make and apt-get install gcc. Running apt-get install build-essential fixed the error and I only then able to successfully run gem install jekyll without the "Failed to build gem native extension" error.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment