您的位置:首页 > 运维架构

libevent 编译找不到 openssl/bio.h的问题

2012-11-12 17:04 826 查看
最近在学习python高性能网络框架gevent, 需要先安装libevent。在solaris系统下,已经安装了openssl,并加到环境变量里面了,而且系统默认环境下的/usr/sfw/include/openssl也是有的,比较奇怪。不管怎么样,先编译过去再说,

ln -s /usr/local/ssl/include/openssl /usr/include/openssl

重新make就过去了

下面是错误log:

/bin/bash ./libtool --tag=CC --mode=compile gcc -DH***E_CONFIG_H -I. -I./compat -I./include -I./include -g -O2 -Wall -fno-strict-aliasing -D_REENTRANT -pthreads
-MT bufferevent_openssl.lo -MD -MP -MF .deps/bufferevent_openssl.Tpo -c -o bufferevent_openssl.lo bufferevent_openssl.c

libtool: compile: gcc -DH***E_CONFIG_H -I. -I./compat -I./include -I./include -g -O2 -Wall -fno-strict-aliasing -D_REENTRANT -pthreads -MT bufferevent_openssl.lo -MD -MP -MF .deps/bufferevent_openssl.Tpo -c bufferevent_openssl.c -fPIC -DPIC -o .libs/bufferevent_openssl.o

bufferevent_openssl.c:60:25: openssl/bio.h: No such file or directory

bufferevent_openssl.c:61:25: openssl/ssl.h: No such file or directory

bufferevent_openssl.c:62:25: openssl/err.h: No such file or directory

bufferevent_openssl.c:104: error: syntax error before '*' token
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: