make 这步出错, 找不到头文件 按网上方法试验无效
来源:3-3 Python开发信息服务
遇见未来的你
2018-07-21
make /Applications/Xcode-beta.app/Contents/Developer/usr/bin/make all-recursive Making all in lib/cpp Making all in . depbase=`echo src/thrift/transport/TSSLSocket.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I../../lib/c_glib/src/thrift -I/usr/local/include -I./src -D__STDC_LIMIT_MACROS -Wall -Wextra -pedantic -g -O2 -std=c++11 -MT src/thrift/transport/TSSLSocket.lo -MD -MP -MF $depbase.Tpo -c -o src/thrift/transport/TSSLSocket.lo src/thrift/transport/TSSLSocket.cpp &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I../../lib/c_glib/src/thrift -I/usr/local/include -I./src -D__STDC_LIMIT_MACROS -Wall -Wextra -pedantic -g -O2 -std=c++11 -MT src/thrift/transport/TSSLSocket.lo -MD -MP -MF src/thrift/transport/.deps/TSSLSocket.Tpo -c src/thrift/transport/TSSLSocket.cpp -fno-common -DPIC -o src/thrift/transport/.libs/TSSLSocket.o src/thrift/transport/TSSLSocket.cpp:41:10: fatal error: 'openssl/err.h' file not found #include <openssl/err.h> ^ 1 error generated. make[3]: *** [src/thrift/transport/TSSLSocket.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
报错如上
这个方法(拷贝brew install openssl 的include里的openssl 到xcode 的 include 文件夹)试了无效
https://segmentfault.com/q/1010000003827802/a-1020000003839253
添加参数方法./configure --with-openssl-dir="/usr/local/Cellar/openssl/1.0.2o_2/bin/openssl" 也无效
写回答
2回答
-
fei199255
2019-02-28
请问最后弄好了嘛?是怎么调好的呀?
00 -
刘果国
2018-07-23
参考这个文档试试 https://www.imooc.com/article/30296
032019-07-25
相似问题