我想通过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
答案 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