按照官网的文档一步步走到make这一步,报错如下
make[1]: Entering directory/eucalyptus/gatherlog' rm -rf generated mkdir -p generated Generating client stubs sh /opt/euca-WSDL2C.sh -uri ../wsdl//eucalyptus_gl.wsdl -g -d adb -u -uw -f -o generated | grep -v 'the classpath' Retrieving document at '../wsdl//eucalyptus_gl.wsdl'. Generating server stubs sh /opt/euca-WSDL2C.sh -uri ../wsdl//eucalyptus_gl.wsdl -sd -ss -d adb -u -uw -f -o generated | grep -v 'the classpath' Retrieving document at '../wsdl//eucalyptus_gl.wsdl'. Adding marshalling calls to server stubs ../tools/add_marshalling.pl generated/axis2_skel_*.c ../tools/add_marshalling.pl: line 63: syntax error near unexpected token
(' ../tools/add_marshalling.pl: line 63:FILE: for $file ( @ARGV ) {' make[1]: *** [generated/stubs] Error 2 make[1]: Leaving directory
/eucalyptus/gatherlog' make: *** [build] Error 2
在安装依赖包时,有几个包没有可用的包。就没装,感觉不是依赖包的问题,源码是git clone从官网下的,实在不知如何解决,求各路大神援助。。。。先谢过!
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
把报错的那部分代码粘出来已经贴出来了,就是11,12,13行,这个脚本我看了下没错,make到16行的时候就停止了。这个脚本是源代码中的脚本<spanstyle="font-family:Consolas,'BitstreamVeraSansMono','CourierNew',Courier,monospace;line-height:14.659090995788574px;background-color:#FFFFFF;">../tools/add_marshalling.pl文件的63行前后贴一下<preclass="brush:perl;toolbar:true;auto-links:false;">6162FILE:for$file(@ARGV){63open(IN,"<$file")ornextFILE;64undef$/;65$=<IN>;66$/="\n";67closeIN;68print"scanning$file\n";6970$done=0;71if(s/#include"([^"]+)"/#include"$1"\n#include<server-marshal.h>\n/s){$done++;}72if(s/adb(\w+)t*axis2_skel(\w+)(\w+)(([^)]+)adb(\w+)t*(\w+)[^}]+TODO[^}]+}/adb$1_taxis2_skel_$2_$3($4adb_$5_t$6)\n{return(${3}Marshal($6,env));}/sg){$done++;}73if(s/adb_(\w+)t*axis2_skel(\w+)(\w+)(constaxutil_env_t*env[^}]+TODO[^}]+}/adb$1_t*axis2_skel_$2_$3(constaxutil_env_t*env)\n{return(${3}Marshal(env));}/sg){$done++;}74if(s//*Anyinitializationstuffofaxis2_.goeshere*//adb_InitService();\n/sg){$done++;}7576if($done)77{7879print"modifying$file\n";80system"cp$file$file~";81open(OUT,">$file")ordie"couldnotoverwrite$file";82printOUT;83closeOUT;84}85}
这是那个脚本的代码
./tools/add_marshalling.pl:line63:syntaxerrornearunexpectedtoken('</td></tr></tbody></table>这个是安装报错的地方我是这样修改的<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">add_marshalling.pl</span>脚本<preclass="brush:perl;toolbar:true;auto-links:false;">63useData::Dumper;printDumper(\@ARGV);64FILE:usefor$file(@ARGV){65open(IN,"<$file")ornextFILE;66undef$/;67$_=<IN>;68$/="\n";69closeIN;70print"scanning$file\n";</pre><p>makeclean</p><p>make</p><p>报错信息为</p><p></p><preclass="brush:perl;toolbar:true;auto-links:false;">rm-rfgeneratedmkdir-pgeneratedGeneratingclientstubssh/opt/euca-WSDL2C.sh-uri../wsdl//eucalyptus_gl.wsdl-g-dadb-u-uw-f-ogenerated|grep-v'theclasspath'Retrievingdocumentat'../wsdl//eucalyptus_gl.wsdl'.Generatingserverstubssh/opt/euca-WSDL2C.sh-uri../wsdl//eucalyptus_gl.wsdl-sd-ss-dadb-u-uw-f-ogenerated|grep-v'theclasspath'Retrievingdocumentat'../wsdl//eucalyptus_gl.wsdl'.Addingmarshallingcallstoserverstubs../tools/add_marshalling.plgenerated/axis2_skel_*.c../tools/add_marshalling.pl:line63:syntaxerrornearunexpectedtoken ('../tools/add_marshalling.pl:line63:useData::Dumper;printDumper(\@ARGV);'make[1]:***[generated/stubs]Error2make[1]:Leavingdirectory /eucalyptus-3.4.2/gatherlog'make:**[build]Error2 |