0

我目前正在尝试在 Mac OS X 上安装 Middleman。我已经完成了此处描述的一些初始步骤:

http://petertran.com.au/2013/02/23/how-to-install-middleman-mac-on-macosx/

但是通过“gem install middleman”进行的主要安装会中断。这是一些输出。

[..]
In file included from Variadic.c:35:
In file included from /usr/include/ffi/ffi.h:58:
/usr/include/ffi/fficonfig.h:120:9: warning: 'PACKAGE_TARNAME' macro redefined
#define PACKAGE_TARNAME "libffi"
        ^
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0/config.h:3:9: note: previous definition is here
#define PACKAGE_TARNAME ""
        ^
In file included from Variadic.c:35:
In file included from /usr/include/ffi/ffi.h:58:
/usr/include/ffi/fficonfig.h:123:9: warning: 'PACKAGE_VERSION' macro redefined
#define PACKAGE_VERSION "2.1"
        ^
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0/config.h:4:9: note: previous definition is here
#define PACKAGE_VERSION ""
        ^
5 warnings generated.
cc -arch i386 -arch x86_64 -pipe -bundle -undefined dynamic_lookup -o ffi_c.bundle AbstractMemory.o ArrayType.o Buffer.o Call.o ClosurePool.o DataConverter.o DynamicLibrary.o ffi.o Function.o FunctionInfo.o LastError.o LongDouble.o MappedType.o MemoryPointer.o MethodHandle.o Platform.o Pointer.o Struct.o StructByReference.o StructByValue.o StructLayout.o Thread.o Type.o Types.o Variadic.o -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L. -arch i386 -arch x86_64     -lruby -lffi  -lpthread -ldl -lobjc  
make install
/usr/bin/install -c -m 0755 ffi_c.bundle ./.gem.20130626-33730-oxkffm
ERROR:  While executing gem ... (NoMethodError)
    undefined method `join' for nil:NilClass

感谢您的任何意见。在 ruby​​ 二进制文件或任何这个 ffi 模块的上下文中,我对 Mac OS X 编译器的东西不是很好。所有这些警告(还有很多我没有引用的)对我来说似乎也有点奇怪。

4

1 回答 1

0

在丹尼斯的提示后,我做了以下解决它:

我卸载了 MacPorts 并全新安装了最新的 1.9.x Ruby,重新安装了 MacPorts(最新版本)并全新安装了中间人。现在一切都很好。

于 2013-06-26T20:47:56.823 回答