0

我正在尝试在 macOS 上为 iOS 11 构建 OpenSSL。make 命令失败并显示“libtool not found error”。

我检查了 libtool 的哪个命令的输出,结果符合预期:

[Amy-MacBook-Pro-3:openssl-fips-ecp-2.0.12 $ which libtool
/usr/bin/libtool

PATH 变量显示 /usr/bin 列出:

[Amy-MacBook-Pro-3:openssl-fips-ecp-2.0.12 $ echo $PATH
/usr/bin:/usr/local/bin:/usr/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin

这是错误:

clang: error: no such file or directory: 'libtool'
make[2]: *** [../libcrypto.a] Error 1
make[1]: *** [all] Error 2
make: *** [build_fips] Error 1

我在下面列出了 libtool 的版本:

[Amy-MacBook-Pro-3:openssl-fips-ecp-2.0.12 $ libtool --version
libtool (GNU libtool) 2.4.4
Written by Gordon Matzigkeit, 1996

Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
4

1 回答 1

0

我通过执行以下操作解决了这个问题:

export PATH="/Library/Developer/CommandLineTools/usr/bin":$PATH
于 2019-02-19T15:53:57.587 回答