1.。在执行这个命令时:./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.4.3
Detecting distribution : CentOS
Checking for program gcc or cc : /usr/bin/gcc
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
Checking for library pthread : yes
Checking for library dl : yes
Determining management server user name : cloud (Linux default)
Detecting Tomcat : /usr/local/cloudstack/share/tomcat6 (assumed presence of Tomcat there)
Detecting JAVADIR : /usr/local/cloudstack/share/java (using default ${DATADIR}/java directory)
Building classpaths : Done
Checking for Java class java.io.FileOutputStream : ok
Checking for Java class javax.servlet.http.Cookie : not found
/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/wscript: error: Traceback (most recent call last):
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/.waf-1.5.18-4a51cccaa76ce32c621ef0df562c9ae7/wafadmin/Utils.py", line 474, in recurse
exec(compile(txt,file_path,'exec'),dc)
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/wscript_configure", line 285, in ?
if not getattr(Options.options, 'NODEPCHECK', ''): check_dependencies(hard_deps)
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/wscript_configure", line 283, in check_dependencies
require_dependency(cls,pkgs)
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/wscript_configure", line 278, in require_dependency
conf.fatal("Cannot find the Java class %s (available in the distro packages: %s)"%(
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/.waf-1.5.18-4a51cccaa76ce32c621ef0df562c9ae7/wafadmin/Configure.py", line 91, in fatal
raise ConfigurationError(msg)
ConfigurationError: error: Cannot find the Java class javax.servlet.http.Cookie (available in the distro packages: tomcat6-servlet-2.5-api, libservlet2.5-java, (if on Windows,did you set TOMCAT_HOME to point to your Tomcat setup?))
注意红色部分
解决:
wget ftp://ftp.pbone.net/mirror/
rpm 安装即可
2.
Checking for Java class org.apache.naming.resources.Constants : not found
/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/wscript: error: Traceback (most recent call last):
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/.waf-1.5.18-4a51cccaa76ce32c621ef0df562c9ae7/wafadmin/Utils.py", line 474, in recurse
exec(compile(txt,file_path,'exec'),dc)
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/wscript_configure", line 285, in ?
if not getattr(Options.options, 'NODEPCHECK', ''): check_dependencies(hard_deps)
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/wscript_configure", line 283, in check_dependencies
require_dependency(cls,pkgs)
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/wscript_configure", line 278, in require_dependency
conf.fatal("Cannot find the Java class %s (available in the distro packages: %s)"%(
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/.waf-1.5.18-4a51cccaa76ce32c621ef0df562c9ae7/wafadmin/Configure.py", line 91, in fatal
raise ConfigurationError(msg)
ConfigurationError: error: Cannot find the Java class org.apache.naming.resources.Constants (available in the distro packages: tomcat6-lib, libtomcat6-java, (if on Windows,did you set TOMCAT_HOME to point to your Tomcat setup?))
安装包:
下面是我列出来的包:
ecj-3.3.1.1-3.jpp5.noarch.rpm tomcat6-jsp-2.1-api-6.0.24-2.jpp5.noarch.rpm
jakarta-commons-daemon-1.0.1-7.jpp5.noarch.rpm tomcat6-lib-6.0.24-2.jpp5.noarch.rpm
jakarta-commons-dbcp-tomcat5-1.2.2-2.jpp5.noarch.rpm tomcat6-servlet-2.5-api-6.0.24-2.jpp5.noarch.rpm
jakarta-commons-pool-tomcat5-1.3-11.jpp5.noarch.rpm ws-commons-java5-1.0.1-2.jpp5.noarch.rpm
python-paramiko-1.7.2-1.el5.rf.noarch.rpm ws-commons-util-1.0.2-2.jpp5.noarch.rpm
tomcat6-6.0.24-2.jpp5.noarch.rpm xml-commons-1.3.04-5.jpp5.noarch.rpm
tomcat6-el-1.0-api-6.0.24-2.jpp5.noarch.rpm xml-commons-jaxp-1.3-apis-1.3.04-5.jpp5.noarch.rpm
关于上面的包,自行搜索,我就不上传了!
阅读(1917) | 评论(0) | 转发(1) |