Subject:
[ruby-ffi] Re: Install ffi on Mac OS one a volume name with a space
From:
Zac Parker
Date:
7/4/12 4:16 AM
To:
ruby-ffi@googlegroups.com

Anyone? I'm having the same issue. Any help is much appreciated.

Thanks!

On Thursday, December 15, 2011 2:40:26 PM UTC-8, Ross Rankin wrote:
Is there a workaround to this bug?  Issue #87 talks about it but it
looks like no one is responding to comments...  Anyway, I've tried all
kinds of symlinks, parameters, and environment variables and yet its
seems to pull the path /Volumes/Macintosh HD/ no mater what I do...
I've tried manually installing via ./configure, make, make install
still not love, even editing the build file by hand...  any ideas?
Here's the error I get on bundle install:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
extension.

        /Users/Ross/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
checking for ffi.h... no
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
Configuring libffi
configure: WARNING: Libtool does not cope well with whitespace in
`pwd`
cd "/Volumes/Macintosh HD/Users/Ross/.rvm/gems/ruby-1.9.2-p180@webapp/
gems/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi" && make
make "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=" "CXXFLAGS="
"CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=" "INSTALL=/usr/bin/install -c"
"INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/
install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "JC1FLAGS="
"LDFLAGS=" "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=" "MAKE=make" "MAKEINFO=/
bin/sh "/Volumes/Macintosh HD/Users/Ross/.rvm/gems/ruby-1.9.2-
p180@webapp/gems/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/missing"
--run makeinfo " "PICFLAG=" "PICFLAG_FOR_TARGET=" "RUNTESTFLAGS="
"SHELL=/bin/sh" "exec_prefix=/usr/local" "infodir=/usr/local/share/
info" "libdir=/usr/local/lib" "prefix=/usr/local" "AR=ar" "AS=as"
"CC=gcc" "CXX=g++" "LD=ld" "NM=/usr/bin/nm" "RANLIB=ranlib" "DESTDIR="
all-recursive
make[2]: *** No rule to make target `HD/Users/Ross/.rvm/gems/
ruby-1.9.2-p180@webapp/gems/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/
libffi/missing --run makeinfo '.  Stop.
make[1]: *** [all] Error 2
make: *** ["/Volumes/Macintosh] Error 2


Gem files will remain installed in /Users/Ross/.rvm/gems/ruby-1.9.2-
p180@webapp/gems/ruby/1.9.1/gems/ffi-1.0.11 for inspection.
Results logged to /Users/Ross/.rvm/gems/ruby-1.9.2-p180@webapp/gems/
ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/gem_make.out

Here's the error I get when I do the make install:
ranlib: file: /usr/local/lib/libffi.a(ffi.o) has no symbols
ranlib: file: /usr/local/lib/libffi.a(darwin.o) has no symbols
/Volumes/Macintosh: /Volumes/Macintosh: is a directory
make[2]: *** [install-libLTLIBRARIES] Error 126
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1

Out if ideas... anyone else have an idea on how to get past this?