ubuntu_eucalyptus_qpid

http://open.eucalyptus.com/wiki/EucalyptusInstallationDebian_v2.0
ubuntu-10.10-desktop-i386.iso
aptitude install eucalyptus-common eucalyptus-cloud eucalyptus-walrus eucalyptus-sc eucalyptus-cc
安装之后:
root@test-linux:~# find / -name eucalyptus
/usr/lib/eucalyptus
/usr/share/eucalyptus
/etc/eucalyptus
/etc/init.d/eucalyptus
/var/lib/image-store-proxy/eucalyptus
/var/lib/eucalyptus
/var/lib/update-rc.d/eucalyptus
/var/run/eucalyptus
/var/log/eucalyptus

sudo vi /etc/libvirt/qemu.conf
# set the field user to be: user = "eucalyptus"
user='root'
Line 1. #unix_sock_group = "libvirt"  =>  unix_sock_group = "libvirt"
Line 2. #unix_sock_ro_perms = "0777"  =>  unix_sock_ro_perms = "0777"
Line 3. #unix_sock_rw_perms = "0770"  =>  unix_sock_rw_perms = "0770"
Line 4. #auth_unix_ro = "none"        =>  auth_unix_ro = "none"
Line 5. #auth_unix_rw = "none"        =>  auth_unix_rw = "none"

另一台机器aptitude install eucalyptus-nc
顺便装一下apt-get install virt-manager
libvirtd应该是装了nc才有
/etc/init.d/libvirt-bin stop
/etc/init.d/libvirt-bin start
chown root:libvirt /var/run/libvirt/libvirt-sock
chown root:libvirt /var/run/libvirt/libvirt-sock-ro

但是我的迅驰1.73的cpu不支持kvm,倒霉,换了个dell的双核amd装ubuntu成功
目前宏基1.73装clc,cc,walrus,sc等
dell的amd双核装nc
试试这个:
http://www.litrin.net/2010/08/11/%E5%88%A9%E7%94%A8ubuntu%E6%90%AD%E5%BB%BA%E7%A7%81%E6%9C%89%E4%BA%91/
ec2客户端:
http://server.it168.com/a2008/0729/198/000000198913.shtml


-------------------------------------
eucalyptus-1.6.2-src-deps
里面axis2c-src-1.6.0.tar.gz

---------------------------------
eucalyptus-1.6.2-src-deps/eucalyptus-src-deps/axis2c-src-1.6.0/axis2c-src-1.6.0/docs/docs/installationguide.html
axis2c的安装
$ AXIS2C_HOME='/your_desired_path_to_axis2c_installation'
$ export AXIS2C_HOME
$ ./configure --prefix=${AXIS2C_HOME}

./configure --enable-auththila=yes --enable-libxml2=yes --prefix=${AXIS2C_HOME}

./configure --enable-auththila=yes --enable-libxml2=yes --with-qpid=${QPID_HOME} --prefix=${AXIS2C_HOME}(这个还不行,axis2_amqp_util.lo错误)
$ make
$ make install
(加这个报错$ ./configure --with-qpid=/path/to/qpid/home [other configuration options])
可能是amqp没装
apache的qpid在
http://qpid.apache.org/download.cgi

To build the samples:
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${AXIS2C_HOME}/lib/
$ cd samples
$ ./configure --prefix=${AXIS2C_HOME} --with-axis2=${AXIS2C_HOME}/include/axis2-1.6.0
$ make
$ make install
----------------------------
qpid:java
https://cwiki.apache.org/qpid/getting-started.html
https://cwiki.apache.org/qpid/getting-started-guide.html
下载broker:qpid-java-0.8.tar.gz解压到/root/Desktop/qpid
下载qpid-0.8.tar.gz包括所有的例子,解压到/root/Desktop/qpid/test
vim ~/.bashrc
export QPID_HOME=/root/Desktop/qpid/qpid-0.8
export QPID_WORK=$QPID_HOME/working
export PATH=$PATH:$QPID_HOME/bin
export CLASSPATH=.$CLASSPATH:`find "$QPID_HOME" -name '*.jar' |tr '\n' ":"`

在QPID_WORK 下生成日志
$QPID_HOME/bin/qpid-server 启动
linux下有的ant找不到classpath问题,解决办法如下
参考qpid-0.8\java\client\example\src\main\java\runSample.sh
修改CLASSPATH如上
修改/root/Desktop/qpid/test/qpid-0.8/java/module.xml的231行
把includeantruntime="off"改成"on"
<javac source="${java.source}" target="${java.target}" 
           destdir="${module.classes}" debug="on" includeantruntime="on"
           deprecation="${javac.deprecation}">
      <compilerarg line="${javac.compiler.args}"/>
      <src refid="module.src.path"/>
      <classpath refid="module.class.path"/>
    </javac>

然后ant就成功了
进入qpid-0.8\java\client\example\src\main\java
注释掉runSample.sh的62行
#QPID_PARAM......关羽log4j的东东
运行./runSample.sh org.apache.qpid.example.Hello
如果qpid-server启动,就能看到效果

windows下:
如果在windows上,启动qpid-server.bat后
eclipse把F:\qpid\qpid-0.8\qpid-0.8\java\client\example\src\main\java下的java考到src
lib引入F:\qpid\qpid-java-0.8\qpid-0.8\lib所有的jar
运行org\apache\qpid\example\Hello.java可以测试
---------------------------------------
qpid c:
解压qpid-cpp-0.8.tar.gz
qpidc-0.8
./configure 报错,查看NOTICE
可能需要安装boost
www.boost.org
boost是神马?看这个
http://www.cnblogs.com/huangguan2002/archive/2008/07/18/1246405.html
参考
http://blog.csdn.net/bluesu27/archive/2009/08/27/4489326.aspx
这个说的也不全对,还得装sasl2-bin
apt-cache search boost
apt-get install libboost1.42-all-dev
libtool libboost-regex-dev libboost-dev libboost-dbg uuid-dev sasl2-bin
doxygen好像不用装
反正缺什么就装神马吧
./configure --prefix=/root/Desktop/qpid/qpid-c/
make
编译了无数的.o
make install


测试:
启动~/Desktop/qpid/qpid-c/sbin/qpidd
cd  /root/Desktop/qpid/qpid-c/share/examples/direct/
vim MakeFile
修改
LDFLAGS=-I/root/Desktop/qpid/qpid-c/include -L/root/Desktop/qpid/qpid-c/lib -lqpidclient

编译能过
但是运行找不到so
vim /etc/ld.so.conf.d/qpidhao.conf
/root/Desktop/qpid/qpid-c/lib

ldconfig
后能运行
./declare_queues
./direct_producer
./listener


你可能感兴趣的:(linux,unix,ubuntu)