最近在学习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 -DHAVE_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 -DHAVE_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