linux 安装jsoncpp

来源:互联网 发布:java 取绝对值的方法 编辑:程序博客网 时间:2024/05/23 12:03

原文地址:http://itchen.blog.51cto.com/343363/704268

  1. #tar -zxf scons-2.1.0.tar.gz 
  2. #cd scons-2.1.0 
  3. #python setup.py install 
  4. #tar -zxf jsoncpp-src-0.5.0.tar.gz  
  5. #cd jsoncpp-src-0.5.0 
  6. #scons platform=linux-gcc 
  7. #mv libs/linux-gcc-4.1.2/libjson_linux-gcc-4.1.2_libmt.so /lib 
  8. #mv include/json/ /usr/include/ 
  9. #ldconfig  
  10. #./bin/linux-gcc-4.1.2/test_lib_json  
The standard outputs shown as follows:
Testing ValueTest/size: OK 
Testing ValueTest/isObject: OK 
Testing ValueTest/isArray: OK 
Testing ValueTest/isBool: OK 
Testing ValueTest/isInt: OK 
Testing ValueTest/isUInt: OK 
Testing ValueTest/isDouble: OK 
Testing ValueTest/isString: OK 
Testing ValueTest/isNull: OK 
All 9 tests passed