dependency
# yum install boost-devel e2fsprogs-devel pkgconfig gcc-c++ make autoconf automake ruby libtool help2man doxygen graphviz uuid-devel libuuid-devel openssl-devel python-devel rpmlint librdmacm librdmacm-devel
# yum install apr cppunit cppunit-devel perl perl-devel libacl libacl-devel
# yum install openais-devel cman-devel
# yum install corosync-devel cmanlib-devel
# yum install corosynclib-devel clusterlib-devel
# yum install cyrus-sasl-devel nss-devel nspr-devel nss-tools*
# yum install xqilla-devel xerces-c-devel
# yum install ruby ruby-devel swig
change account
# su alloe
$ cd ~
$ mkdir src
$ cd src
download source
$ svn co http://svn.apache.org/repos/asf/qpid/trunk/qpid qpid &
$ cd qpid
build and install qpid-tools
$ qpid-autotools-install --prefix=$HOME/qpid-tools --skip-check
setting environment
your environment file edit (ex. .bash_profile, .bashrc, /etc/profile)
export PATH=~/qpid-tools/bin:$PATH
export PKG_CONFIG_PATH=~/qpid-tools/lib/pkgconfig:/usr/local/pkgconfig
export CXXFLAGS=-I~/qpid-tools/include/boost-1_33_1
build and install qpid source
$ sudo ./bootstrap
$ sudo ./configure --enable-valgrind
$ sudo make && make install
$ sudo make check
run corosync for cluster
$ cp -rf /etc/corosync/corosync.conf.example /etc/corosync/corosync.conf
$ sudo /usr/sbin/corosync
python qpid tools
$ cd ..
$ pwd
/home/alloe/src/qpid
$ cd extra
$ cd qmf
$ sudo ./setup.py --help-commands
Standard commands:
build build everything needed to install
build_py "build" pure Python modules (copy to build directory)
build_ext build C/C++ extensions (compile/link to build directory)
build_clib build C/C++ libraries used by Python extensions
build_scripts "build" scripts (copy and fixup #! line)
clean clean up temporary files from 'build' command
install install everything from build directory
install_lib install all Python modules (extensions and pure Python)
install_headers install C/C++ header files
install_scripts install scripts (Python or otherwise)
install_data install data files
sdist create a source distribution (tarball, zip file, etc.)
register register the distribution with the Python package index
bdist create a built (binary) distribution
bdist_dumb create a "dumb" built distribution
bdist_rpm create an RPM distribution
bdist_wininst create an executable installer for MS Windows
upload upload binary package to PyPI
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
$ sudo ./setup.py build
$ sudo ./setup.py install
result
$ ll /usr/lib/python2.6/site-packages/qmf/
-rw-r--r--. 1 root root 791 2011-11-22 22:25 __init__.py
-rw-r--r--. 1 root root 135 2011-11-23 14:36 __init__.pyc
-rw-r--r--. 1 root root 136778 2011-11-22 22:25 console.py
-rw-r--r--. 1 root root 127600 2011-11-23 14:36 console.pyc
$ cd ..
$ cd ..
$ pwd
/home/alloe/src/qpid
$ cd java
$ sudo yum install
ant-trax
$ ant clean build
$ cd ..
$ cd python
$ sudo ./setup.py build
$ sudo ./setup.py install
$ sudo ./qpid-python-test > test.result.txt
$ vim test.result.txt
..............
qpid.tests.messaging.message.MessageEchoTests.testReplyToQueueSubject ... pass
qpid.tests.messaging.message.MessageEchoTests.testReplyToTopic .......... pass
qpid.tests.messaging.message.MessageEchoTests.testReplyToTopicSubject ... pass
qpid.tests.messaging.message.MessageEchoTests.testStringContent ......... pass
qpid.tests.messaging.message.MessageEchoTests.testTextPlain ............. pass
qpid.tests.messaging.message.MessageEchoTests.testTextPlainEmpty ........ pass
qpid.tests.messaging.message.MessageEchoTests.testUnicodeContent ........ pass
qpid.tests.messaging.message.MessageTests.testContentTypeOverride ....... pass
qpid.tests.messaging.message.MessageTests.testCreateList ................ pass
qpid.tests.messaging.message.MessageTests.testCreateMap ................. pass
qpid.tests.messaging.message.MessageTests.testCreateString .............. pass
qpid.tests.messaging.message.MessageTests.testCreateUnicode ............. pass
Totals: 308 tests, 308 passed, 0 skipped, 0 ignored, 0 failed
$ cd ..
$ cd tools
$ sudo ./setup.py build
$ sudo ./setup.py install
complete