13

我想通过自制软件安装 32 位 gettext:

brew install gettext --32-bit

但是当还是x86_64版本的时候:

file /usr/local/Cellar/gettext/0.18.2/lib/libgettextlib-0.18.2.dylib 

/usr/local/Cellar/gettext/0.18.2/lib/libgettextlib-0.18.2.dylib: Mach-O 64-bit dynamically linked shared library x86_64
4

1 回答 1

20

您可能想要使用brew install gettext --universal,它将构建一个包含 32 位和 64 位代码的通用(“胖”)二进制文件。没有--32-bit选择;查看brew info gettext支持哪些选项。

$ brew install gettext --universal
[...snip...]
$ file /usr/local/Cellar/gettext/0.18.2/lib/libgettextlib-0.18.2.dylib
/usr/local/Cellar/gettext/0.18.2/lib/libgettextlib-0.18.2.dylib: Mach-O universal binary with 2 architectures
/usr/local/Cellar/gettext/0.18.2/lib/libgettextlib-0.18.2.dylib (for architecture i386):    Mach-O dynamically linked shared library i386
/usr/local/Cellar/gettext/0.18.2/lib/libgettextlib-0.18.2.dylib (for architecture x86_64):  Mach-O 64-bit dynamically linked shared library x86_64
于 2013-04-25T06:05:22.037 回答