sh 在ubuntu 14.04上安装--boost1-64-with-python3.sh

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 在ubuntu 14.04上安装--boost1-64-with-python3.sh相关的知识,希望对你有一定的参考价值。

#!/bin/bash 

# boost
wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.gz 

which python3
#'usually /usr/bin/python3'

#update boost_1_64_0/tools/build/example/user-config.jam

# use python3
using python : 3.4 : /usr/bin/python3 : /usr/include/python3.4m : /usr/lib ;


./bootstrap.sh --libdir=/usr/local/lib/boost/ --includedir=/usr/local/include/ --with-python-version=3.4 0--with-python-root=/usr/local/lib/python3.4/

# -a rebuilds everything
./b2 -j 50 -a install


# check all ld  paths 
ldconfig -p
# if you cant find boost libs
# libboost_python3.so. and  libboost_python.so 

cat /etc/ld.so.conf
# put /usr/local/lib/boost in one of the conf file in .d
echo '/usr/local/lib/boost/' > /etc/ld.so.conf.d/boost.conf

# make sure to run ldconfig to change the caches
ldconfig 

# check again ldconfig -p if you find 
# libboost_python3.so. and  libboost_python.so
# then you are good 






# TIP: Use ldd Mylib.so to checkk the lib deps 

以上是关于sh 在ubuntu 14.04上安装--boost1-64-with-python3.sh的主要内容,如果未能解决你的问题,请参考以下文章

sh 在Ubuntu 14.04上安装Maven 3.3.3

sh 另一个docker安装在ubuntu 14.04 LTS上

sh 使用PHP7在Ubuntu 14.04上安装MongoDB

sh 在Ubuntu Trusty上安装g ++ 5.x(14.04)

sh 在Ubuntu 14.04上使用pyenv安装python 2.7.10

sh 在ubuntu 14.04上安装--boost1-64-with-python3.sh