xcode - can't setup ruby environment - installing fii gem error -
i'm trying setup environtment ruby project. when run 'bundle', have error during installing 'fii' gem:
installing ffi (1.8.1) gem::installer::extensionbuilderror: error: failed build gem native extension. /users/bmalets/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb checking ffi.h... *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. may need configuration options. /users/bmalets/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': compiler failed generate executable file. (runtimeerror) have install development tools first. gem files remain installed in /users/bmalets/.rvm/gems/ruby-1.9.3-p448@api2/gems/ffi-1.8.1 inspection. results logged /users/bmalets/.rvm/gems/ruby-1.9.3-p448@api2/gems/ffi-1.8.1/ext/ffi_c/gem_make.out error occurred while installing ffi (1.8.1), , bundler cannot continue. make sure `gem install ffi -v '1.8.1'` succeeds before bundling.
my environment:
os_x 10.8.4
ruby 1.9.3p448
xcode 4.6.3
libffi-3.0.13
please, me fix it.
make sure have installed apple xcode , command line tools (look @ screenshot):
https://developer.apple.com/technologies/tools/
after that, don't forget install libffi.
1) if using homebrew
brew install libffi
2) if using macport
sudo port install libffi
Comments
Post a Comment