亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

Software Collage: Installing the Boost Libra

系統(tǒng) 2186 0

Software Collage: Installing the Boost Libraries 1.50 on Ubuntu 12.04 precise

June 30, 2012

?

Installing the Boost Libraries 1.50 on Ubuntu 12.04 precise

?

The version 1.50 of the Boost Libraries has been released . Following are the instructions to install a private copy of the Boost Libraries, including ICU support, on Ubuntu 12.04 (precise).

Setup

I have chosen to download the source packages in ~/Software , and to install in ~/usr but you can also use any other directories.

Make the required directories.


mkdir ~/Software

mkdir ~/Software/Boost

mkdir ~/Software/ICU

mkdir ~/usr

Requirements

Check the required packages.


sudo apt-get install build-essential

sudo apt-get install g++

sudo apt-get install python-dev

sudo apt-get install libzip-dev

sudo apt-get install libbz2-dev

Download and install the ICU Libraries

We will install a private version of the ICU Libraries, I have chosen the ~/usr directory for the installation but can be any other.

Download and decompress the ICU Libraries source package.


cd ~/Software/ICU


wget http://download.icu-project.org/files/icu4c/49.1.2/icu4c-49_1_2-src.tgz



tar -xvf icu4c-49_1_2-src.tgz

Configure, build and install the ICU Libraries.


cd icu/source

./runConfigureICU Linux --prefix=${HOME}/usr --enable-static

make

make install

Download the Boost Libraries

Download and decompress the Boost Libraries source package.


cd ~/Software/Boost


wget -O boost_1_50_0.tar.bz2 http://sourceforge.net/projects/boost/files/boost/1.50.0/boost_1_50_0.tar.bz2/download



tar -xvf boost_1_50_0.tar.bz2

Configure the Boost Libraries

Declare the ICU_PATH environment variable.


export ICU_PATH=${HOME}/usr

Configure the Boost Libraries build system.


cd boost_1_50_0

./bootstrap.sh

Edit the generated project-config.jam file.


gedit project-config.jam

Make the required changes to the project-config.jam file. I have highlighted the required changes, note that you have to substitute the directory /home/your-user-name with your real home directory path.


# Boost.Build Configuration

# Automatically generated by bootstrap.sh



import option ;

import feature ;



# Compiler configuration. This definition will be used unless

# you already have defined some toolsets in your user-config.jam

# file.

if ! gcc in [ feature.values <toolset> ]

{

using gcc ;

}



project : default-build <toolset> gcc ;



# Python configuration

using python : 2.7 : /usr ;



path-constant ICU_PATH : /home/your-user-name/usr ;



# List of --with-<library> and --without-<library>

# options. If left empty, all libraries will be built.

# Options specified on the command line completely

# override this variable.

libraries = /home/your-user-name/usr ;



# These settings are equivivalent to corresponding command-line

# options.

option.set prefix : /home/your-user-name/usr ;

option.set exec-prefix : /home/your-user-name/usr ;

option.set libdir : /home/your-user-name/usr/lib ;

option.set includedir : /home/your-user-name/usr/include ;



# Stop on first error

option.set keep-going : false ;



Save the file and exit the editor.

Build and install Boost Libraries

Build the Boost Libraries.


./b2

Alternatively you can build the Boost Libraries enabling the C++11 compiler support.


./b2 toolset=gcc cxxflags=-std=c++0x

The build process takes a while, once it is complete you can install the private version of the Boost Libraries.


./b2 install

Software Collage: Installing the Boost Libraries 1.50 on Ubuntu 12.04 precise


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯(lián)系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 伊人色院成人蜜桃视频 | 在线观看人成午夜影片 | 久久狠色噜噜狠狠狠狠97 | 久青草免费视频手机在线观看 | 成人不卡| 免费黄色毛片视频 | 国产成人啪午夜精品网站男同 | 午夜视频在线网站 | 国产成人在线观看免费网站 | 欧美毛片在线 | 欧美特级一级毛片 | 国内精品视频成人一区二区 | 日韩欧美国产精品第一页不卡 | 久久亚洲一级毛片 | 久久99亚洲精品久久久久网站 | 日韩精品欧美国产精品亚 | 久久久久99精品成人片三人毛片 | 欧洲精品视频在线观看 | 亚洲天天做夜夜做天天欢人人 | 一级一级一级毛片 | 亚洲特级aaaaaa毛片 | 日本一级爰免费视频 | 在线一区国产 | 爱爱视频免费网址 | 国产成人亚洲精品91专区高清 | 在线观看视频99 | 亚洲欧美高清在线 | 99热久久这里只精品国产ww | 久久色伊人 | 色综合久久婷婷天天 | 老子影院伦不卡欧美 | 香蕉成人影院 | 国产高清一区二区三区视频 | 久草国产在线观看 | 日韩精品一区二区三区四区 | 国产高清自拍 | 久久99国产精品久久99小说 | 亚洲国产激情一区二区三区 | 奇米影| 亚洲字幕久久 | 全部免费特黄特色大片中国 |