1. tar xzvf thrift-0.8.0.tar.gz2. cd thrift-0.8.03. ./configure 4. 提示for openssl/rand.h... no,checking for SSL_ctrl in -lssl... no5. ./configure --help 有如下些提示 LDFLAGS linker flags, e.g. -L if you have libraries in a
nonstandard directory
LIBS libraries to pass to the linker, e.g. -l
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if
you have headers in a nonstandard directory
查看我的openssl的目录为/usr/local/ssl/include/
6.运行如下命令
./configure CPPFLAGS=-I/usr/local/ssl/include LDFLAGS=-L/usr/local/ssl/lib
生成Makefile
(CPPFLAGS如果有多个目录,可以使用逗号分隔,CPPFLAGS=-I"/usr/local/ssl/include:/usr/local/include"
7.make && make install
阅读(1095) | 评论(0) | 转发(0) |