fatal error: openssl/base.h: No such file or directory

168 views
Skip to first unread message

happy Wang

unread,
Jan 2, 2022, 8:07:39 PM1/2/22
to grpc.io
Hello! I'm trying to install P4studio. When I install grpc , Linux18.04 report a error.The specific error message is as follows:
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
    src/boringssl/err_data.c:17:10: fatal error: openssl/base.h: No such file or directory
     #include <openssl/base.h>
              ^~~~~~~~~~~~~~~~
    compilation terminated.
    creating tmp
    creating tmp/tmpvpIqnh
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-gnDdqE/python2.7-2.7.17=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c /tmp/tmpvpIqnh/a.c -o tmp/tmpvpIqnh/a.o
Is there some any way to address it?
Thanks!
Reply all
Reply to author
Forward
0 new messages