安装依赖库及PrimetonMQ CPP

依赖项 版本
CPPUnit >= 1.10.2*
OpenSSL >= 0.9.8m*
APR >= 1.3*
libtool >= 1.5.24
automake >= 1.10
autoconf >= 2.61

注:如果机器以安装则忽略

1、autoconf

autoconf下载地址:

http://mirrors.nju.edu.cn/gnu/autoconf/

tar解压后,进入目录,编译三部曲,configure、make、make install(install需要root权限):

./configure --prefix=/usr/local/autoconf/
make && make install

2、automake

automake下载地址:

http://mirrors.nju.edu.cn/gnu/automake/

tar解压后,进入目录,编译三部曲,configure、make、make install(install需要root权限):

./configure --prefix=/usr/local/automake/
make && make install

3、libtool

libtool下载地址:

http://ftpmirror.gnu.org/libtool

tar解压后,进入目录,编译三部曲,configure、make、make install(install需要root权限):

./configure --prefix=/usr/local/libtool/
make && make install

4、cppunit

cppunit下载页面: https://sourceforge.net/projects/cppunit/files/cppunit/

tar解压后,进入目录,编译三部曲,configure、make、make install(install需要root权限):

./configure --prefix=/usr/local/cppunit/
make && make install

5、apr

apr介绍页面: http://apr.apache.org/download.cgi apr下载地址(与以下的apr-util和apr-iconv下载页面一致,下载时注意区分名称): http://mirrors.hust.edu.cn/apache/apr/ 同上,解压进入目录,三部曲:

./configure --prefix=/usr/local/apr/
make && make install

6、apr-util

apr-util下载地址: http://mirrors.hust.edu.cn/apache/apr/ 解压进入目录编译:

./configure --prefix=/usr/local/aprutil --with-apr=/usr/local/apr/
make && make install

7、apr-iconv

apr-iconv下载地址: http://mirrors.hust.edu.cn/apache//apr/ 解压编译:

./configure --prefix=/usr/local/apr-iconv/ --with-apr=/usr/local/apr/
make && make install

8、openssl

openssl下载地址: https://www.openssl.org/source/

解压编译:

./config --prefix=/usr/local/openssl/
make && make install

9、PrimetonMQ-CPP

PrimetonMQ-CPP介质包pmq-cpp-library-7.0.0-LA-src.tar.gz

解压编译:

./configure --prefix=/usr/local/PMQ-CPP --with-apr=/usr/local/apr/ 
--with-apr-util=/usr/local/aprutil --with-cppunit=/usr/local/cppunit 
--with-openssl=/usr/local/openssl
make && make install

results matching ""

    No results matching ""