Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 在OS X 10.9.2上编译GREP 2.18_Macos_Grep - Fatal编程技术网

Macos 在OS X 10.9.2上编译GREP 2.18

Macos 在OS X 10.9.2上编译GREP 2.18,macos,grep,Macos,Grep,当我尝试在Mac OS X 10.9.2上构建grep-2.18时,返回 ld: warning: ignoring file libgrep.a, file was built for archive which is not the architecture being linked (x86_64): libgrep.a Undefined symbols for architecture x86_64: 然后列出被忽略的libgrep.a中必须包含的内容。请帮帮我,这让我困惑了很久。

当我尝试在Mac OS X 10.9.2上构建grep-2.18时,返回

ld: warning: ignoring file libgrep.a, file was built for archive which is not the architecture being linked (x86_64): libgrep.a
Undefined symbols for architecture x86_64:
然后列出被忽略的
libgrep.a
中必须包含的内容。请帮帮我,这让我困惑了很久。
另外,我是那种爱挑剔的人,不喜欢使用预构建的二进制文件,所以请不要告诉我使用MacPorts、Homebrew等。使用此配置构建grep-2.20

 ./configure --prefix=$PREFIX --build=i386-apple-darwin CFLAGS=-m32