如何通过自制软件安装32位应用程序

时间:2013-04-08 01:51:48

标签: homebrew 32-bit

我想通过homebrew安装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

1 个答案:

答案 0 :(得分: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