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. #1

Closed
sylhare opened this issue Oct 2, 2017 · 3 comments
Closed

ERROR installing Jekyll: Failed to build gem native extension. #1

sylhare opened this issue Oct 2, 2017 · 3 comments

Comments

@sylhare
Copy link
Owner

sylhare commented Oct 2, 2017

While trying to install Jekyll on Ubuntu 16.04 32bits. I encountered an error.
Here is what I had:

  • gem 2.5.1
  • ruby 2.3.1

Trying to run:

gem install jekyll

And here is the error message:

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.18/ext/ffi_c
/usr/bin/ruby2.3 -r ./siteconf20171002-2379-1byb6u9.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.18 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86-linux/2.3.0/ffi-1.9.18/gem_make.out
@sylhare
Copy link
Owner Author

sylhare commented Oct 2, 2017

Ok so you need to install the ruby development headers to install some gem with Ruby-FFI (it is a ruby extension for programmatically loading dynamic libraries, binding functions within them, and calling those functions from Ruby code).

Solution

You need to install the ruby development package before using gem install jekyll depending on your distribution it is not named the same:

sudo apt-get install ruby-dev
sudo yum ruby-devel
  • For MacOS, make sure that Xcode is installed and licensed is agreed:
xcode-select --install

@sylhare sylhare closed this as completed Oct 2, 2017
@sylhare
Copy link
Owner Author

sylhare commented Nov 8, 2017

For other issues linked to nokogiri and native extensions, you can check it out at nokogiri.org

craigonaonewheel pushed a commit to craigonaonewheel/craigonaonewheel.github.io that referenced this issue Aug 31, 2018
@imrrahul
Copy link

imrrahul commented Feb 5, 2019

I was getting the same error but got the solution, just go ahead and install ruby-dev and you have got the solution. Cheers!
Command - sudo apt-get install ruby-dev

0xln added a commit to 0xln/Blog that referenced this issue Apr 23, 2020
…/lodash.merge-4.6.2

Bump lodash.merge from 4.6.1 to 4.6.2 in /assets
kawine referenced this issue in kawine/sail-blog Nov 10, 2020
merging updates from stanford vl
OMEGA-Y pushed a commit to OMEGA-Y/OMEGA-Y.github.io that referenced this issue Dec 8, 2020
* Rearrange

* Set theme jekyll-theme-architect

* Add nav

* Move layout to the correct place

* Change theme

* Add docsify generated site

* Rename link

* Add extra sidebar

* Fix sidebars

* Fix C readme link

* Rearrange repo

* Add some basic docs

* Fixing broken links

* Update docs/concept-exercises.md

Co-Authored-By: Erik Schierboom <[email protected]>

* Update docs/concept-exercises.md

Co-Authored-By: Erik Schierboom <[email protected]>

* Update docs/concept-exercises.md

Co-Authored-By: Erik Schierboom <[email protected]>

* Fix sidebars

* Updated links

* Add maintainers info

* Add tooling sidebar

* Fix more broken links

* Add extra start to get started

* Additional link-fixes

* Additional link-fixes

* Rename content to reference

* Update repository structure

* Move exercise-shared files to separate section

* csharp: update to new structure (sylhare#1)

* csharp: create docs, reference and exercises directory

* csharp: make README and index

* csharp: renamed concept-exercises to reference

* csharp: move cli.md and debug.md to exercise/.docs directory

* csharp: add how to implement document

* csharp: update links

* csharp: add concept-exercises document

* csharp: add concept exercises

* csharp: fix invalid escaping

* csharp: fix link

* csharp: add todo for converting to Fact-based tests

* csharp: add shared file

* csharp: add new concept exercise template

* csharp: add reference to how to implement

* csharp: fix grammar

* csharp: replace duplicate information

* Fix broken links

* Add link to C# reference

* csharp: add example for new concept exercise

* csharp: example of reference

* csharp: add contributing

* csharp: add link

* csharp: update links

* csharp: add sidebar

* csharp: update sidebar

* csharp: more work

* Tweak README

* csharp: update README

* csharp: add contributing information for reference documents

* Add license

* Add GitHub information to repository structure

* Add subdivision for exercises directory in repository structure

* Update language contributing text

* Update languages/README.md

Co-Authored-By: Jeremy Walker <[email protected]>

* Update languages/README.md

Co-Authored-By: Jeremy Walker <[email protected]>

* csharp: add document for contributing to exercise-shared documents

* templates: make implement new concept exercise template generic

* Fix about

* csharp: add suggest new exercise template

* Add new concept exercise info

* templates: add placeholder brackets

* Add ask a question template

* Update ask question template

* Update markdown

* Update contributing

* csharp: update name

* Update documents

* Add links to all reference documents

* Add links to implemented files

* Add link to reference docs contributing

* Improve links

* Update links

* csharp: remove dependencies

* csharp: add more contributing

* csharp: add readme for docs

* Add links to analyzer/representer/test-runner

* csharp: update strings

* csharp: bitwise operations to fact-base

* csharp: add defaults

* csharp: convert tests to fact-based

* csharp: add sidebars

* csharp: add link

* Change V3 to v3

* Consistent casing

* csharp: change order

* Update README

* Update README.md

* Tweak things further

* More tweaks

* Fix links

* Fix typos

* Change

* csharp: rework readme

* csharp: updates

* csharp: update readme

* csharp: update word

* csharp: update

* csharp: move concepts

* Add reference doc

* Fix template links

* csharp: more work

* Simplify

* csharp: remove unused link

* csharp: remove empty row

* csharp: removing contributing

* csharp: explain

* Update README.md

* Update README.md

* Update README.md

* Add maintainers docs

* Add links

* Update C# readme

* Fix link

* Fix link

* Tweak repo structure document

* Small improvements

* csharp: fixes

* csharp: more

* Fix typo

* Add converting details

* structure: make it more clear

* Add new README and docs

* Split out readiness steps further

* Split out online editor settings further

* Tweak the repo structure docs a little

* Tweak the README for clarity

* Add new language docs

* csharp: link directly to analyzer and representer

* csharp: move concept interpretation to reference doc

* csharp: small update

* csharp: add online editor settings

* csharp: add config.json example

* csharp: more data

* Use consistent example

* Add online editor config changes

* Update README.md

Co-Authored-By: Erik Schierboom <[email protected]>

* Update README.md

Co-Authored-By: Erik Schierboom <[email protected]>

* Update docs/_sidebar.md

Co-Authored-By: Erik Schierboom <[email protected]>

* Update docs/_sidebar.md

Co-Authored-By: Erik Schierboom <[email protected]>

* Update docs/concept-exercises.md

Co-Authored-By: Erik Schierboom <[email protected]>

* Update docs/concept-exercises.md

* Update docs/maintainers/README.md

Co-Authored-By: Erik Schierboom <[email protected]>

* Apply suggestions from code review

Co-Authored-By: Erik Schierboom <[email protected]>

* Apply suggestions from code review

Co-Authored-By: Erik Schierboom <[email protected]>

* Update languages/csharp/docs/examples/new-concept-exercise-arrays.md

Co-Authored-By: Jeremy Walker <[email protected]>

* Update languages/csharp/docs/examples/new-concept-exercise-arrays.md

Co-Authored-By: Jeremy Walker <[email protected]>

* Move migrating config json file to separate file

* Add more details

* Add introduction for what maintainers actually need to do

* Update README.md

* Move things around for clarity

* Fix tons of issues

* Fix links

* Fix links

* More fixes

* Fix things more

* Revert link

* Rephrase

* Add maintainers

* update

* casing

Co-authored-by: Charles Care <[email protected]>
Co-authored-by: Erik Schierboom <[email protected]>
sangmichaelxie referenced this issue in sangmichaelxie/sail-blog Jul 21, 2022
new blog post (Ney city vs. Blue people)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants