Thrift安装
1 安装:
1.1 依赖:boost
安装boost:
wget http://sourceforge.net/projects/boost/files/boost/1.51.0/boost_1_51_0.tar.gz/download tar -xvzf boost_1_51_0.tar.gz cd boost_1_51_0/ ./bootstrap.sh ./b2 install
1.2 下载thrift:
配置安装 :
./configure --with-cpp --with-boost=/usr/local --without-python --without-csharp --without-java --without-erlang --without-perl --without-php --without-php_extension --without-ruby --without-haskell --without-go make make install
1.3 例子:
可以试用tutorial的例子:
thrift -r --gen cpp tutorial.thrift cd ../cpp make
1.4 可能出现的错误和解决方法:
error while loading shared libraries... ============Solution============= echo "/usr/local/lib" >> /etc/ld.so.conf /sbin/ldconfig -v
浙公网安备 33010602011771号