标签:Qpid qpid -- devel 编译 opt root Centos7.5 localhost
从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
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。