原文转自http://www.cnblogs.com/peterpanzsy/p/4210127.html
在安装libevent出现
Install libevent bufferevent_openssl.c:60:10: fatal error: 'openssl/bio.h' file not found
brew install openssl
brew link openssl --force
cp -R /usr/local/Cellar/openssl/1.0.2h_1/include/openssl ~/software/libevent-2.0.22-stable
参考:http://blog.csdn.net/qq910894904/article/details/41132779
升级 bison
wget http://ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gz
tar xvf bison-2.5.1.tar.gz
cd bison-2.5.1
./configure --prefix=/usr
make
sudo make install
cd ..
安装thrift
安装thrift-0.10.0的时候老是报dyld:sybom not found:_GENERAL_NAME_FREE
没有找到解决办法,就换成thrift-0.9.3
make 出现 'openssl/xx.h' file not found,依旧是cp -R /usr/local/openssl/include/openssl ~/thrift
出现Nothing to be done for `all' 解决方法
1.这句提示是说明你已经编译好了,而且没有对代码进行任何改动。
若想重新编译,可以先删除以前编译产生的目标文件:
make clean
然后再
make
make[4]: Entering directory `/home/yantze/dl/thrift/lib/cpp/test'
在make install时报错):
mkdir: /usr/lib/xx/Thrift: Operation not permitted
先这样configure
./configure --prefix=/usr/local/ --with-xx=no --with-boost=/usr/local CXXFLAGS="-g -O2"
然后再sudo make,sudo make install