安装 Python2.7 + jsoncpp-src-0.5.0

 

 

# tar -zxvf Python-2.7.tar 
# cd Python-2.7/
# ./configure --with-threads --enable-shared
# make
# make install
# mv /usr/bin/python /usr/bin/python_bak
# ln -s /usr/local/bin/python /usr/bin/python
# echo "/usr/local/lib" >>/etc/ld.so.conf
# ldconfig
# python

 

 

安装 Python2.7 + jsoncpp-src-0.5.0_第1张图片

 

# tar -zxvf scons-2.1.0.tar.gz
# cd scons-2.1.0
# python setup.py install
# tar -zxvf jsoncpp-src-0.5.0.tar.gz
# cd jsoncpp-src-0.5.0
# scons platform=linux-gcc
# mv libs/linux-gcc-4.1.2/libjson_linux-gcc-4.1.2_libmt.so /lib
# mv include/json/ /usr/include/
# ldconfig
# ./bin/linux-gcc-4.1.2/test_lib_json
# mv libs/linux-gcc-4.1.2/libjson_linux-gcc-4.1.2_libmt.a /lib


 安装 Python2.7 + jsoncpp-src-0.5.0_第2张图片

你可能感兴趣的:(python)