Christopher Christopher - 2 months ago 16
Ruby Question

Install gem gives "Failed to build gem native extension."

I did:

sudo apt-get install ruby ruby-dev

And i run:
sudo gem install jekyll

But it gives this output:

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

/usr/bin/ruby2.1 -r ./siteconf20151018-15792-1gfjwox.rb extconf.rb creating Makefile

make "DESTDIR=" clean sh: 1: make: not found

make "DESTDIR=" sh: 1: make: not found

make failed, exit code 127

Gem files will remain installed in
/var/lib/gems/2.1.0/gems/fast-stemmer-1.0.2 for inspection. Results
logged to


You need to install make and other build tools first, run this:

sudo apt-get install build-essential