rubyinstaller安装
QPID安装过程
1 下载qpid
Qpid 作为一个消息中间件,主要包括两部分,broker 和client。Client API在代码中实现,根据开发语言的不同选择不同的client API,但是broker则需要在服务端安装。
对于broker 有C++和java两种实现方案。下文安装过程主要针对C++实现方案。
C++实现方案有2个包,分别是cpp和tools。
Qpid-cpp下载如下:
wget apache.dataguru/qpid/0.24/qpid-cpp-0.
qpid-tools下载如下:
wget mirrorsnic/apache/qpid/0.24/qpid-tools-0.
分别下载到/home/software目录
然后解压到当前目录
tar –zxvf qpid-cpp-0.
tar –zxvf qpid-tools-0.
解压之后的文件夹为qpidc-0.24 和qpid-tools-0.24
进入qpidc-0.24 可以看到INSTALL 文件,有详细的英文安装过程。
2 准备环境
参阅INSTALL文件,得知qpid安装需要依赖如下包:
The following libraries and header files must be installed to builda source distribution: * boost <> (1.35)(*)
* libuuid </~kzak/util-linux/> (2.19)
* pkgconfig </wiki/> (0.21)
(*) earlier versions of 1.33 also work and there is a patch to get 1.32 working in the svn tree though that is only recommended as a last resort.
Optional XML exchange requires:
* xqilla <xqilla.sourceforge/HomePage> (2.0.0)
* xerces-c </xerces-c/> (2.7.0)
Optional SSL support requires:
* nss </projects/security/pki/nss/>
* nspr </projects/nspr/>
Optional binding support for ruby requires:
* ruby and ruby devel </en/>
* swig </>
Qpid has been built using the GNU C++ compiler:
* gcc </> (3.4.6)
If you want to build directly from the SVN repository you will need all of the above plus:
* Cmake </> (2.6.4)
* GNU make </software/make/> (3.8.0)
* help2man </software/help2man/> (1.36.4)
* doxygen <ftp://ftp.stack.nl/pub/users/dimitri/> (1.5.1)
* graphviz </> (2.12)
* ruby 1.8 <> (1.8.4)
* python 2.x <> (2.4.3)
NOTE: make sure to install the related '-devel' packages also!!!!
NOTE: Python 3.x is know to NOT work - please use 2.7 or earlier.
Ruby should be prior to version 2.
To build the QMF (Qpid Management Framework) bindings for Ruby and Python,
the following must also be installed:
* ruby-devel
* python-devel
* swig <> (1.3.35)
UUID problems:
In some earlier Linux releases (such as Fedora 11), the uuid/uuid.h
file is located in the e2fsprogs-devel package instead of
libuuid-devel. If you are using an older Linux release and run into a
problem during configure in which uuid.h cannot be found, install the
e2fsprogs-devel package.
根据INSTALL 提供的安装方法,通过yum来安装这些依赖包。
yum install cmake boost-devel libuuid-devel pkgconfig gcc-c++ make ruby help2man doxygen graphviz
yum install xqilla-devel xerces-c-devel
yum install ruby ruby-devel swig
yum install libdb-cxx-devel libaio-devel
上述包安装完毕之后,qpid的依赖环境准备完毕。
3 安装qpid
进入qpidc-0.24 目录,建立bld目录,qpid的编译将在此目录下完成,这样做的好处是一旦出现编译失败的错误情况,直接将bld删除即可完整清理。
mkdir bld
cd bld
执行cmake命令
cmake ..
注意此处是两个点,表示上级目录。
完成之后开始make
make all
由于是编译源码,此过程会比较长。完毕之后就install
make install
install完成之后,服务端就算安装成功了。
另外对于另外一个目录qpid-tools-0.24 ,主要是一些常用的工具,由于是python开发,直接install ,由于已安装python环境
执行setup.py install 即可。
Qpid启动
qpid就算安装成功之后,已自动将qpid 在/etc/init.d下添加了qpidd服务。期配置文件在/f
现在我们通过service启动qpid服务:
service qpidd start|stop|restart
通过qpid-config 测试连接
如果出现如下错误:
Failed: AuthenticationFailure: Error in sasl_client_start (-1) SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (Credentials cache file '/tmp/krb5cc_0' not found)
说明qpid默认是需要通过身份认证才能建立连接。修改f
注意第25行auth=yes
修改为auth=no 保存之后restart
然后再通过qpid-config
出现上述响应,则说明连接成功。

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。