This forum is no longer active. Please post your questions to our new community site

Getting an error when installing gems

Subscribe to Getting an error when installing gems 3 post(s), 2 voice(s)

 
Avatar amdevx 11 post(s)

Is there a way to get this to work? When I try to use gem install bundler && bundle install, I get the following error:

Successfully installed bundler-1.0.10
1 gem installed
Installing ri documentation for bundler-1.0.10…
Installing RDoc documentation for bundler-1.0.10…
Fetching source index for http://gemcutter.org/
Fetching source index for http://gems.github.com/
Using rake (0.8.7)
Using activesupport (2.3.5)
Using rack (1.0.1)
Using actionpack (2.3.5)
Using actionmailer (2.3.5)
Using activerecord (2.3.5)
Using activeresource (2.3.5)
Using authlogic (2.1.6)
Using builder (2.1.2)
Using haml (3.0.17)
Using compass (0.8.17)
Using crack (0.1.8)
Using diff-lcs (1.1.2)
Using trollop (1.16.2)

Installing gherkin (2.1.5) with native extensions /Applications/rubystack/ruby/lib/ruby/site_ruby/1.8/rubygems/installer.rb:482:in `build_extensions’: ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/ruby/bin/ruby extconf.rb

checking for main() in -lc… no

creating Makefile

make

sh: make: command not found

Gem files will remain installed in /Applications/rubystack/ruby/lib/ruby/gems/1.8/gems/gherkin-2.1.5 for inspection.
Results logged to /Applications/rubystack/ruby/lib/ruby/gems/1.8/gems/gherkin-2.1.5/ext/gherkin_lexer_ar/gem_make.out
/Applications/rubystack/ruby/lib/ruby/site_ruby/1.8/rubygems/installer.rb:445:in `each’
/Applications/rubystack/ruby/lib/ruby/site_ruby/1.8/rubygems/installer.rb:445:in `build_extensions’
/Applications/rubystack/ruby/lib/ruby/site_ruby/1.8/rubygems/installer.rb:197:in `install’
/Applications/rubystack/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/source.rb:96:in `install’
/Applications/rubystack/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/installer.rb:55:in `run’
/Applications/rubystack/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in `each’
/Applications/rubystack/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in `each’
/Applications/rubystack/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/installer.rb:44:in `run’
/Applications/rubystack/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/installer.rb:8:in `install’
/Applications/rubystack/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/cli.rb:226:in `install’
/Applications/rubystack/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/vendor/thor/task.rb:22:in `send’
/Applications/rubystack/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/vendor/thor/task.rb:22:in `run’
/Applications/rubystack/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task’
/Applications/rubystack/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/vendor/thor.rb:246:in `dispatch’
/Applications/rubystack/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/vendor/thor/base.rb:389:in `start’
/Applications/rubystack/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.10/bin/bundle:13
/Applications/rubystack/ruby/bin/bundle:19:in `load’
/Applications/rubystack/ruby/bin/bundle:19

 
Avatar amdevx 11 post(s)

Nevermind, problem solved. After I installed xcode, everything worked great! :)

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Yes, xcode is necessary because this gem requires compilation. I’m glad to hear that.