Subject: [ruby-ffi] ffi not compiling on mac osx?! |
From: Noel Rocha |
Date: 10/14/11 12:05 PM |
To: ruby-ffi |
Hi Guys,
Im trying to install the ffi gem but it stop when bulding the native
extensions. Im using Snow Leopard and ruby 1.9.2 with rvm.
follow bellow the command and the error:
$ gem install ffi
Building native extensions. This could take a while...
ERROR: Error installing ffi:
ERROR: Failed to build gem native extension.
/Users/noelrocha/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
extconf.rb
checking for ffi.h in /usr/local/include... no
checking for rb_thread_blocking_region()... yes
checking for ruby_thread_has_gvl_p()... yes
checking for ruby_native_thread_p()... yes
checking for rb_thread_call_with_gvl()... yes
creating extconf.h
creating Makefile
make
/bin/sh: line 0: [: /Volumes/Macintosh: binary operator expected
cd /Volumes/Macintosh HD/Users/noelrocha/.rvm/gems/ruby-1.9.2-p180/
gems/ffi-1.0.9/ext/ffi_c/libffi && make
make[1]: *** No targets specified and no makefile found. Stop.
make: *** [HD/Users/noelrocha/.rvm/gems/ruby-1.9.2-p180/gems/ffi-1.0.9/
ext/ffi_c/libffi/.libs/libffi_convenience.a] Error 2
Gem files will remain installed in /Users/noelrocha/.rvm/gems/
ruby-1.9.2-p180/gems/ffi-1.0.9 for inspection.
Results logged to /Users/noelrocha/.rvm/gems/ruby-1.9.2-p180/gems/
ffi-1.0.9/ext/ffi_c/gem_make.out
Thanks in advance,
--
Noel Rocha