OS X:由于路径中的空间而导致失败

时间:2011-12-14 16:54:26

标签: macos makefile install ffi

我正在尝试安装FFI gem。原生扩展没有构建。问题在于制造。如果我这样手动,这就是我所看到的:

RossRankins-MacBook-Pro:libffi Ross$ make
make "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=-g -O2" "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/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=/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld" "NM=/usr/bin/nm" "RANLIB=ranlib" "DESTDIR=" all-recursive
make[1]: *** No rule to make target `HD/Users/Ross/.rvm/gems/ruby-1.9.2-p180/gems/ffi-1.0.11/ext/ffi_c/libffi/missing --run makeinfo '.  Stop.
make: *** [all] Error 2

正如您所看到的那样,它正在截断路径的Macintosh HD部分。我尝试运行上面的完整命令,但编辑路径,它没有帮助......想法?

1 个答案:

答案 0 :(得分:1)

/Volumes/Macintosh HD/Users/...位是否也称为/Users/...? 如果是的话,

$ ls -id "/Volumes/Macintosh HD/Users"
$ ls -id /Users

应该都给出相同的结果,你可以只使用没有空格的版本而不是试图引用它。