cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cai_cmin <cai_c...@bjhit.com>
Subject 回复: 关于CS的源码编译
Date Wed, 26 Jun 2013 10:16:00 GMT
问题解决了吗?




cai_cmin

发件人: wanghaicheng2004
发送时间: 2013-06-17 09:48
收件人: cloudstack讨论组
主题: 关于CS的源码编译


CloudStack源代码的编译
1、平台CentOS6.3 X86_64 Desktop图形化

2、安装编译环境
[root@localhost ~]# yum   groupinstall  开发工具   -y   

3、安装依赖包
[root@localhost centos63]# yum  install  MySQL-python -y 
[root@localhost centos63]# yum  install  java-1.6.0-openjdk-devel  -y    #javac编译工具
[root@localhost centos63]# yum  install  ws-commons-util   -y  
[root@localhost centos63]# yum  install  tomcat6  -y   
[root@localhost centos63]# yum  install     mysql-connector-java


4、JAVA运行环境
[root@localhost ~]# java   -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.11) (rhel-1.61.1.11.11.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

备注:JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/

5、设置java的环境变量
[root@localhost ~]# vi  /etc/bashrc 
添加一行:
export  JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/

[root@localhost ~]# source   /etc/bashrc 

6、下载Maven并安装
http://maven.apache.org/download.html
[root@localhost ~]# tar  -zxf apache-maven-3.1.0-alpha-1-bin.tar.gz 
[root@localhost ~]# cd   /usr/local/bin/
[root@localhost bin]# ln -s    /root/apache-maven-3.1.0-alpha-1/bin/mvn   mvn
[root@localhost bin]# vi   /etc/bashrc 
添加一行:
export  M2_HOME=/root/apache-maven-3.1.0-alpha-1

[root@localhost bin]# source    /etc/bashrc 

5、mvn的验证
[root@localhost bin]# mvn  -v
Apache Maven 3.1.0-alpha-1 (c726cdd3a9ad5c3a419e1171f8c1925e336ead18; 2013-06-01 21:03:28+0800)
Maven home: /root/apache-maven-3.1.0-alpha-1
Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-279.el6.x86_64", arch: "amd64", family: "unix"



6、编译打包
[root@localhost ~]# tar  jxf  apache-cloudstack-4.1.0-src.tar.bz2 
[root@localhost ~]# cd  apache-cloudstack-4.1.0-src/packaging/centos63/
#编译打包
[root@localhost centos63]#  ./package.sh   -p oss

[INFO] Reactor Summary:
[INFO] 
[INFO] Apache CloudStack ................................. SUCCESS [8.612s]
[INFO] Apache CloudStack Utils ........................... SUCCESS [37.264s]
[INFO] Apache CloudStack API ............................. SUCCESS [35.170s]
[INFO] Apache CloudStack Core ............................ SUCCESS [18.443s]
[INFO] Apache CloudStack Agents .......................... SUCCESS [16.355s]
[INFO] Apache CloudStack SystemVM Patches ................ SUCCESS [0.891s]
[INFO] Apache CloudStack Console Proxy ................... SUCCESS [22.495s]
[INFO] Apache CloudStack Framework ....................... SUCCESS [0.091s]
[INFO] Apache CloudStack Framework - IPC ................. SUCCESS [17.138s]
[INFO] Apache CloudStack Framework - REST ................ SUCCESS [7.549s]
[INFO] Apache CloudStack Cloud Engine .................... SUCCESS [0.125s]
[INFO] Apache CloudStack Cloud Engine API ................ SUCCESS [7.954s]
[INFO] Apache CloudStack Framework - Event Notification .. SUCCESS [6.997s]
[INFO] Apache CloudStack Server .......................... SUCCESS [1:22.865s]
[INFO] Apache CloudStack Usage Server .................... SUCCESS [16.922s]
[INFO] Apache XenSource XAPI ............................. SUCCESS [16.130s]
[INFO] Apache CloudStack Plugin POM ...................... SUCCESS [0.889s]
[INFO] Apache CloudStack Plugin - API Rate Limit ......... SUCCESS [14.996s]
[INFO] Apache CloudStack Plugin - API Discovery .......... SUCCESS [12.315s]
[INFO] Apache CloudStack Plugin - ACL Static Role Based .. SUCCESS [4.568s]
[INFO] Apache CloudStack Plugin - User Concentrated Pod Deployment Planner  SUCCESS [4.598s]
[INFO] Apache CloudStack Plugin - User Dispersing Deployment Planner  SUCCESS [5.110s]
[INFO] Apache CloudStack Plugin - Host Allocator Random .. SUCCESS [4.456s]
[INFO] Apache CloudStack Plugin - Hypervisor OracleVM .... SUCCESS [10.914s]
[INFO] Apache CloudStack Cloud Engine Internal Components API  SUCCESS [5.461s]
[INFO] Apache CloudStack Engine Storage Component ........ SUCCESS [10.592s]
[INFO] Apache CloudStack Plugin - Open vSwitch ........... SUCCESS [9.291s]
[INFO] Apache CloudStack Plugin - Hypervisor Xen ......... SUCCESS [14.094s]
[INFO] Apache CloudStack Plugin - Hypervisor KVM ......... SUCCESS [21.676s]
[INFO] Apache CloudStack Plugin - RabbitMQ Event Bus ..... SUCCESS [10.988s]
[INFO] Apache CloudStack Plugin - Hypervisor Simulator ... SUCCESS [11.045s]
[INFO] Apache CloudStack Plugin - Network Elastic Load Balancer  SUCCESS [6.625s]
[INFO] Apache CloudStack Plugin - Network Nicira NVP ..... SUCCESS [22.068s]
[INFO] Apache CloudStack Plugin - BigSwitch Virtual Network Segment  SUCCESS [12.219s]
[INFO] Apache CloudStack Plugin - Storage Allocator Random  SUCCESS [4.389s]
[INFO] Apache CloudStack Plugin - User Authenticator LDAP  SUCCESS [4.664s]
[INFO] Apache CloudStack Plugin - User Authenticator MD5 . SUCCESS [4.300s]
[INFO] Apache CloudStack Plugin - User Authenticator Plain Text  SUCCESS [5.013s]
[INFO] Apache CloudStack Plugin - User Authenticator SHA256 Salted  SUCCESS [8.709s]
[INFO] Apache CloudStack Plugin - Dns Notifier Example ... SUCCESS [4.322s]
[INFO] Apache CloudStack Engine Storage Image Component .. SUCCESS [4.804s]
[INFO] Apache CloudStack Plugin - Storage Image S3 ....... SUCCESS [1.374s]
[INFO] Apache CloudStack Engine Storage Volume Component . SUCCESS [8.075s]
[INFO] Apache CloudStack Plugin - Storage Volume solidfire  SUCCESS [7.605s]
[INFO] Apache CloudStack Cloud Engine Compute Component .. SUCCESS [4.560s]
[INFO] Apache CloudStack Cloud Engine API ................ SUCCESS [4.377s]
[INFO] Apache CloudStack Cloud Engine Orchestration Component  SUCCESS [11.453s]
[INFO] Apache CloudStack Cloud Engine Schema Component ... SUCCESS [1.481s]
[INFO] Apache CloudStack Engine Storage Backup Component . SUCCESS [4.420s]
[INFO] Apache CloudStack Engine Storage Image Motion Component  SUCCESS [4.453s]
[INFO] Apache CloudStack Engine Storage Snapshot Component  SUCCESS [4.684s]
[INFO] Apache CloudStack Client UI ....................... FAILURE [42.276s]
[INFO] Apache CloudStack Test ............................ SKIPPED
[INFO] Apache CloudStack Engine Storage integration test Component  SKIPPED
[INFO] Apache CloudStack Cloud Engine Service ............ SKIPPED
[INFO] Apache CloudStack AWS API Bridge .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10:17.923s
[INFO] Finished at: Mon Jun 17 17:37:24 CST 2013
[INFO] Final Memory: 36M/106M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.5.1:copy
(copy) on project cloud-client-ui: Unable to resolve artifact. Could not transfer artifact
org.jasypt:jasypt:jar:1.8 from/to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org
[ERROR] org.jasypt:jasypt:jar:1.8
[ERROR] 
[ERROR] from the specified remote repositories:
[ERROR] apache.snapshots (http://repository.apache.org/snapshots, releases=false, snapshots=true),
[ERROR] central (http://repo.maven.apache.org/maven2, releases=true, snapshots=false): Unknown
host repo.maven.apache.org
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :cloud-client-ui
error: Bad exit status from /var/tmp/rpm-tmp.Baklmh (%build)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Baklmh (%build)





编译过程对网络的要求很高么,之前一次Apache CloudStack Plugin - Hypervisor
KVM 编译失败,重新执行编译命令出现 Apache CloudStack Client UI 编译失败。之前几次是
Apache CloudStack AWS API Bridge 编译失败。        

故障解决思路是什么呢?有过这方面经验的朋友帮忙说下。另 问下 
 编译时要用到的vmware相关文件从哪里下载呢?



wanghaicheng2004
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message