libtool 已安装,但构建找不到它



我正在尝试在适用于iOS 11的macOS上构建OpenSSL。make 命令失败,并显示"找不到 libtool 错误"。

我已经检查了 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.

我通过执行以下操作来解决此问题:

export PATH="/Library/Developer/CommandLineTools/usr/bin":$PATH

相关内容

  • 没有找到相关文章

最新更新