Error installing rails, failed to build gem native extension
debian, makefile, ruby, ruby-on-rails
Solution
You don't have make command, as your output says. In debian install package build-essential
Problem
I know there is a couple of topics about that, but the reason I create a new one is that it still doesn't work for me ... So here is my configuration : ``` ruby -v : 1.8.7 gem -v : 1.8.21 ``` And when I try to make ``` sudo gem1.8 install rails ``` I have the following error : ``` Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb creating Makefile make sh: make: not found Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/json-1.6.6 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/json-1.6.6/ext/json/ext/generator/gem_make.out ``` I'm running on Debian 6.0.4 Squeeze. Thanks in advance for your answers !