Qpid Centos7.5下编译与安装
2021/4/8 7:12:25
本文主要是介绍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 Centos7.5下编译与安装的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-23增量更新怎么做?-icode9专业技术文章分享
- 2024-11-23压缩包加密方案有哪些?-icode9专业技术文章分享
- 2024-11-23用shell怎么写一个开机时自动同步远程仓库的代码?-icode9专业技术文章分享
- 2024-11-23webman可以同步自己的仓库吗?-icode9专业技术文章分享
- 2024-11-23在 Webman 中怎么判断是否有某命令进程正在运行?-icode9专业技术文章分享
- 2024-11-23如何重置new Swiper?-icode9专业技术文章分享
- 2024-11-23oss直传有什么好处?-icode9专业技术文章分享
- 2024-11-23如何将oss直传封装成一个组件在其他页面调用时都可以使用?-icode9专业技术文章分享
- 2024-11-23怎么使用laravel 11在代码里获取路由列表?-icode9专业技术文章分享
- 2024-11-22怎么实现ansible playbook 备份代码中命名包含时间戳功能?-icode9专业技术文章分享