I want to create a rails application using Test-Driven Development (TDD), so I wrote
rails new myproject -T
then I added these lines of code to the gemfile
group :test, :development do gem 'turn' gem 'rspec-rails' gem 'capybara' gem 'guard-rspec' gem 'growl_notify' end
so I tried installing the package, but I got this error while typing
Installing rb-appscript (0.6.1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/share/ruby-rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb extconf.rb:44: Use RbConfig instead of obsolete and deprecated Config. create /var/lib/ruby-rvm/gems/ruby-1.9.3-p125/gems/rb-appscript-0.6.1/src/osx_ruby.h ... create /var/lib/ruby-rvm/gems/ruby-1.9.3-p125/gems/rb-appscript-0.6.1/src/osx_intern.h ... creating Makefile make Makefile:226: warning: overriding commands for target `/usr/share/ruby-rvm/gems/ruby-1.9.3-p125/gems/rb-appscript-0.6.1/lib' Makefile:224: warning: ignoring old commands for target `/usr/share/ruby-rvm/gems/ruby-1.9.3-p125/gems/rb-appscript-0.6.1/lib' compiling src/rbae.c src/rbae.c:13:27: fatal error: Carbon/Carbon.h: No such file or directory compilation terminated. make: *** [rbae.o] Error 1 Gem files will remain installed in /usr/share/ruby-rvm/gems/ruby-1.9.3-p125/gems/rb-appscript-0.6.1 for inspection. Results logged to /usr/share/ruby-rvm/gems/ruby-1.9.3-p125/gems/rb-appscript-0.6.1/./gem_make.out An error occured while installing rb-appscript (0.6.1), and Bundler cannot continue. Make sure that `gem install rb-appscript -v '0.6.1'` succeeds before bundling.
so I tried to set the gem manually
gem install rb-appscript -v '0.6.1'
I have the same error too
Building native extensions. This could take a while... ERROR: Error installing rb-appscript: ERROR: Failed to build gem native extension. /usr/share/ruby-rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb extconf.rb:44: Use RbConfig instead of obsolete and deprecated Config. create /var/lib/ruby-rvm/gems/ruby-1.9.3-p125/gems/rb-appscript-0.6.1/src/osx_ruby.h ... create /var/lib/ruby-rvm/gems/ruby-1.9.3-p125/gems/rb-appscript-0.6.1/src/osx_intern.h ... creating Makefile make Makefile:226: warning: overriding commands for target `/usr/share/ruby-rvm/gems/ruby-1.9.3-p125/gems/rb-appscript-0.6.1/lib' Makefile:224: warning: ignoring old commands for target `/usr/share/ruby-rvm/gems/ruby-1.9.3-p125/gems/rb-appscript-0.6.1/lib' compiling src/rbae.c src/rbae.c:13:27: fatal error: Carbon/Carbon.h: No such file or directory compilation terminated. make: *** [rbae.o] Error 1 Gem files will remain installed in /usr/share/ruby-rvm/gems/ruby-1.9.3-p125/gems/rb-appscript-0.6.1 for inspection. Results logged to /usr/share/ruby-rvm/gems/ruby-1.9.3-p125/gems/rb-appscript-0.6.1/./gem_make.out
so any suggestions what can i do now?
source share