Chinaunix首页 | 论坛 | 博客
  • 博客访问: 404424
  • 博文数量: 101
  • 博客积分: 2207
  • 博客等级: 大尉
  • 技术积分: 2508
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-19 20:45
文章分类

全部博文(101)

文章存档

2013年(15)

2012年(86)

我的朋友

分类: LINUX

2012-07-19 10:04:22

1. tar xzvf thrift-0.8.0.tar.gz
2. cd thrift-0.8.0
3. ./configure 
4. 提示for openssl/rand.h... no,checking for SSL_ctrl in -lssl... no
5. ./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
阅读(1082) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~