Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ruby

gem

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 /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/fast-stemmer-1.0.2/gem_make.out

like image 253
Christopher Avatar asked Oct 18 '15 18:10

Christopher


1 Answers

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

sudo apt-get install build-essential
like image 58
Alexey Shein Avatar answered Sep 27 '22 22:09

Alexey Shein