libtool: unrecognized option `-no_warning_for_no_symbols' 问题

在安装搭建GRPC的时候,执行make命令,出现了该错误。。。

[AR] Creating /Users/zhangdongling/hnwf/demo/proto-source/grpc/libs/opt/libaddress_sorting.a

libtool: unrecognized option `-no_warning_for_no_symbols'

libtool: Try `libtool --help' for more information.

make: *** [/Users/zhangdongling/hnwf/demo/proto-source/grpc/libs/opt/libaddress_sorting.a] Error 1


error-1

执行命令 which libtool 可以发现,返回的路径是 /usr/local/bin/libtool

但是执行 whereis libtool ,返回两个路径,/usr/bin/libtool 和 /usr/local/bin/libtool 。

分别执行命令  /usr/local/bin/libtoo -no_warning_for_no_symbols 和 /usr/bin/libtool -no_warning_for_no_symbols

其中/usr/local/bin/libtoo -no_warning_for_no_symbols 会出现上述错误,但是 /usr/bin/libtool -no_warning_for_no_symbols 不会出现。


解决方法:

简单粗暴的删除 /usr/local/bin/libtool 文件,然后重新安装libtool即可。

sudo rm -rf /usr/local/bin/libtool 

brew install libtool


感谢:https://www.cnblogs.com/mlj318/p/6472302.html

你可能感兴趣的:(libtool: unrecognized option `-no_warning_for_no_symbols' 问题)