Qpid Centos7.5下编译与安装
作者:互联网
从Apache官网上下载qpid源码,我下载的是qpid-cpp-1.39.0.tar.gz
地址:http://www.apache.org/dyn/closer.lua/qpid/cpp/1.39.0/qpid-cpp-1.39.0.tar.gz
解压
[root@localhost sumscope]# wget https://downloads.apache.org/qpid/cpp/1.39.0/qpid-cpp-1.39.0.tar.gz
[root@localhost sumscope]# tar -zxvf qpid-cpp-1.39.0.tar.gz
进入到qpid-cpp-1.39.0目录下,创建新的BLD-opt目录,并且进入到新建的目录中
[root@localhost qpid-cpp-1.39.0]# mkdir BLD-opt
[root@localhost qpid-cpp-1.39.0]# cd BLD-opt/
[root@localhost BLD-opt]#
开始编译
[root@localhost BLD-opt]# cmake -DCMAKE_BUILD_TYPE=Release ..
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build type is "Release"
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.5", minimum required is "2.7")
-- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.5")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1")
-- Could NOT find Ruby (missing: RUBY_EXECUTABLE RUBY_INCLUDE_DIR RUBY_LIBRARY)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Found VALGRIND: /usr/bin/valgrind
-- Could NOT find CyrusSASL (missing: CYRUS_SASL_LIBRARY CYRUS_SASL_INCLUDE_DIR)
CMake Error at src/CMakeLists.txt:87 (message):
Can't locate ruby, needed to generate amqp 0-10 framing code.
-- Configuring incomplete, errors occurred!
See also "/opt/sumscope/qpid-cpp-1.39.0/BLD-opt/CMakeFiles/CMakeOutput.log".
出现了错误,是因为有一些依赖没有安装,使用一下的命令把所有的都安装了
[root@localhost BLD-opt]# yum -y install cmake boost-devel libuuid-devel pkgconfig gcc-c++ make ruby help2man doxygen graphviz cyrus-sasl-devel nss-devel nspr-devel xqilla-devel xerces-c-devel ruby ruby-devel swig libdb-cxx-devel libaio-devel db4-devel
依赖也可以通过查INSTALL文件逐个确定是否需要
之后继续编译:
[root@localhost BLD-opt]# cmake -DCMAKE_BUILD_TYPE=Release ..
[root@localhost BLD-opt]# make all -j4
[root@localhost BLD-opt]# make install
安装完成,查看结果
[root@localhost BLD-opt]#qpidd -v
qpidd (qpid-cpp) version 1.39.0
标签:Qpid,qpid,--,devel,编译,opt,root,Centos7.5,localhost 来源: https://blog.csdn.net/fengyunzhenyu/article/details/115488849