Saturday, February 4, 2012

"src/rbae.c:13:27: fatal error: Carbon/Carbon.h: No such file or directory" while installing rb-appscript (0.6.1) on ubuntu

While running bundle install, got following error:
Installing rb-appscript (0.6.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /home/ritesh/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb
extconf.rb:44: Use RbConfig instead of obsolete and deprecated Config.
create /home/ritesh/.rvm/gems/ruby-1.9.3-p0@koodrails/gems/rb-appscript-0.6.1/src/osx_ruby.h ...
create /home/ritesh/.rvm/gems/ruby-1.9.3-p0@koodrails/gems/rb-appscript-0.6.1/src/osx_intern.h ...
creating Makefile

make
Makefile:226: warning: overriding commands for target `/home/ritesh/.rvm/gems/ruby-1.9.3-p0@koodrails/gems/rb-appscript-0.6.1/lib'
Makefile:224: warning: ignoring old commands for target `/home/ritesh/.rvm/gems/ruby-1.9.3-p0@koodrails/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 /home/ritesh/.rvm/gems/ruby-1.9.3-p0@koodrails/gems/rb-appscript-0.6.1 for inspection.
Results logged to /home/ritesh/.rvm/gems/ruby-1.9.3-p0@koodrails/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.




Yet looking for solution to fix the issue, if someone can help.

2 comments:

  1. I got the same error when trying to bundle install app that I had previously configure in Mac OSX. In my case I had to remove two gemfiles to make it work:

    # gem "rb-fsevent"
    # gem "growl_notify"

    ReplyDelete
  2. This is my error When i am installingMerb in my ubuntu 11.10,
    Any one help me.

    Thanks in Advance.




    ~/Merb/admin_panel$ merb Merb root at: /home/nyros/Merb/admin_panel/usr/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:74:in `require': no such file to load -- merb/action/args (LoadError) from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:74:in `rescue in block in require' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:62:in `block in require' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `each' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `require' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler.rb:119:in `require' from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:400:in `load_dependencies' from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:375:in `run' from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:97:in `run' from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/server.rb:172:in `bootup' from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:in `start' from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core.rb:165:in `start' from /usr/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/bin/merb:20:in `' from /usr/bin/merb:19:in `load' from /usr/bin/merb:19:in `'

    ReplyDelete