Ubuntu下编译qpid2.4

(1)下载qpid

http://www.apache.org/dyn/closer.cgi/qpid/0.24/qpid-cpp-0.24.tar.gz

(2)安装gawk (可以略去,有awk命令)

apt-get install gawk   

(3)安装make,cmake

apt-get install make

apt-get install cmake

(4)安装gcc  ,cc ,cl.exe

apt-get  install  build-essential

(5) 安装boost

apt-get install libboost-all-dev

也可以自己编译

下载:

http://sourceforge.net/projects/boost/files/boost/1.49.0/

前期准备:boost中,用到了别的函数库,所以为了使用boost中相应的功能,需要先安装系统中可能缺失的库 

 

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

上述函数库装好之后,就可以编译boost库了。解压boost_1_49_0.tar.bz2,得到/boost_1_49_0,将当前工作目录切换到此文件夹下。

 

./bootstrap.sh 

./b2

./b2 install

(6)安装libuuid

apt-get install uuid-dev

安装QPID borker server

下载的qpid-cpp解压:

 #cd qpidc-0.24

 # mkdir bld       # This is just a suggested name for the build directory

 # cd bld

 # cmake ..        # ".." is the path to the distribution directory

 # make all

To run the tests:

 # make test

To install (you may need to be root/sudo to do this):

 # make install

To uninstall (you may need to be root/sudo to do this):

 # make uninstall

The daemon and client API may be built separately if so desired:

 # make qpidbroker

 # make qpidclient

The available make targets can be listed using:

 # make help

-------------------安装管理 tools

./setup.py build

./setup.py install

--------------------------------最后发现有这个。。。不过貌似没安装成功

apt-get install qpidd qpid-tools

猜你喜欢

转载自yinxvxv.iteye.com/blog/1965666