install boost in ubuntu

1. 获取boost安装包

  a. 使用命令下载. wget -O boost_1_54_0.tar.bz2 http://downloads.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.tar.bz2?r=http%3A%2F%2Fwww.boost.org%2Fusers%2Fhistory%2Fversion_1_54_0.html&ts=1375162670&use_mirror=jaist

   解压tar --bzip2 -xf ./boost_1_54_0.tar.bz2

  b. 也可以直接去http://boost.cppll.jp/下载自己想要的版本。

2. 安装依赖的一些程序

  apt-get install mpi-default-dev  #安装mpi库

  apt-get install libicu-dev     #支持正则表达式的UNICODE字符集 

  apt-get install python-dev     #需要python的话

  apt-get install libbz2-dev     #如果编译出现错误:bzlib.h: No such file or directory

3. 解压boost_1_54_0.tar.bz2,并进入此目录选择安装想要的boost库(默认全部安装)

  安装命令 ./bootstrap.sh

  默认库安装 /usr/local/lib目录下

  头文件在/usr/local/include/boost目录下

参考:

  http://www.linuxidc.com/Linux/2013-07/88095.htm

  http://www.linuxidc.com/Linux/2013-07/87573.htm

时间: 2024-10-09 23:08:36

install boost in ubuntu的相关文章

(转) How to install eclipse in ubuntu 12.04

源地址:http://www.krizna.com/ubuntu/install-eclipse-in-ubuntu-12-04/ Eclipse installation in ubuntu 12.04 is very simple . you can install eclipse using “software center” but you may not get the latest version, better download the latest version and ins

Install golang on Ubuntu 14.04 LTS

1. Install golang on Ubuntu 14.04 LTS a)~$ sudo apt-get install golang                   success b)~$ sudo add-apt-repository ppa:gophers/go ~$ sudo apt-get update ~$ sudo apt-get install golang-stable         fail c) complie from source code        

Install ntopng on Ubuntu 14.04 Server

please check http://www.nmon.net/apt-stable/ 1. echo -e "deb http://www.nmon.net/apt-stable/14.04/ x64/\ndeb http://www.nmon.net/apt-stable/14.04/ all/" > /etc/apt/sources.list.d/ntop.list wget -qO - http://www.nmon.net/apt-stable/ntop.key |

install r on ubuntu

install r-base on ubuntu: sudo apt-get install -y r-base download rstudio: https://download1.rstudio.org/rstudio-1.0.153-amd64.deb install gui tool(rstudio) for r language: sudo dpkg -i rstudio-***-amd64.deb some examples for r language: *** # librar

Install OpenCV-Python in Ubuntu

之前安装python版opencv,需要下载whl文件,进行安装 今天发现一个简单的方法. Install OpenCV-Python in Ubuntu Install package python-opencv with following command in terminal (as root user). $ sudo apt-get install python-opencv Open Python IDLE (or IPython) and type following codes

How to Install PhantomJS on Ubuntu 16.04

Introduction PhantomJS is a scripted, headless browser that can be used for automating web page interaction. PhantomJS is a free, open source and distributed under the BSD license. PhantomJS is based on WebKit and is very similar browsing environment

install postgresql in ubuntu

摘要:install postgresql in ubuntu 使用apt-get install postgresql-9.3无法安装 In Ubuntu official repositories only PostgreSQL 9.1 is available. n order to get PostgreSQL v9.2 in your VPS using apt you should follow the official PostgreSQL procedure for Ubuntu

How To Install Docker On Ubuntu 18.04

Docker is an increasingly popular software package that creates a container for application development. Developing in Docker speeds up applications, as it shares the kernel and other resources, instead of requiring dedicated resources. There are two

Install postfix on Ubuntu 14.04.txt

Ubuntu 14.04上安装和配置Postfix邮件服务详细教程 Postfix: 用来接受和发送邮件的邮件服务器,正确说法应该叫邮件传送代理(Mail Transfer Agent,MTA),是邮件服务最重要的部分:    Dovecot: POP 和 IMAP 服务器,用来管理本地邮件目录以便用户能通过 Mail.app, Thunderbird, Mutt 等邮件客户端(又叫邮件用户代理 Mail User Agent, MUA)登陆和下载邮件:    Postgrey: 邮件灰名单工具