fjptec-xm 发表于 2015-4-18 09:20:15

cloudstack源码安装(依然不成功。。)

  是按照http://www.360doc.com/content/12/0506/12/9318309_209009253.shtml这个文档安装的。
  1、用的系统是ubuntu12.04
  2、更新北交的源
  3、按照http://blog.iyunv.com/hzqnju/article/details/6779556下载配置jdk。我是从官网直接下载的,没有用命令,版本是1.7.0_11.
  4、按照http://blog.iyunv.com/ssdbbg/article/details/7619599配置tomcat。从官网下载的tomcat7.0.34.其中gedit命令出错,** (gedit:2976): WARNING **: 连接已关闭(gedit:2976): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported** (gedit:2976): WARNING **: Could not connect to session bus
  原因是:su只能切换到管理员用户权限,不使用管理员的登陆脚本和搜索路径,su - 不但能切换到管理员权限而且使用管理员登陆脚本和搜索路径。解决方法:使用sudo gedit 或者su -后再gedit。
  5、安装配置mysql。用的sudo apt-get install mysql-server       sudo apt-get install mysql-workbench这两行命令。第一条就出错了,
  正在读取软件包列表... 有错误!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_quantal_multiverse_i18n_Translation-zh
E: 无法解析或打开软件包的列表或是状态文件。
  解决方法:sudo rm-rf /var/lib/apt/lists*       apt-get update
  6、下载了cloudstack的源码,因为4.0的版本说是不稳定,于是用的3.0.2。
  ./waf configure --prefix=/usr/local/cloudstack
  出错,我没有记录下来错误信息,就看个意思吧。。。
  Checking for program javac               : /usr/local/jdk1.6.0_24/bin/javac
Checking for program java                : /usr/local/jdk1.6.0_24/bin/java
Checking for program jar               : /usr/local/jdk1.6.0_24/bin/jar
Checking for program python            : /usr/bin/python
Checking for Python version >= 2.4.0   : ok 2.7.3
  然后说python的mysql 什么部件没有,错误信息里有On Linux: ./waf installrpmdeps or ./waf installdebdeps according to your 。。。。。这句话,于是用了./waf installdebdeps,提示没有的就用apt-get install搞定,然后可以了。
  ./waf build
  ./waf install
  cd setup/bindir
  ./cloud-setup-databases.in cloud -kvm –deplay-as=root:123
  报错
  Cannot find @MSCONF@/db.properties
  直接在文件夹里搜了db.properties,然后把绝对地址写到cloud-setup-databases.in里,替换@MSCONF@/,凡是类似的报错都这么改了。。
页: [1]
查看完整版本: cloudstack源码安装(依然不成功。。)