Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4233959
  • 博文数量: 776
  • 博客积分: 13014
  • 博客等级: 上将
  • 技术积分: 10391
  • 用 户 组: 普通用户
  • 注册时间: 2010-02-22 17:00
文章分类

全部博文(776)

文章存档

2015年(55)

2014年(43)

2013年(147)

2012年(20)

2011年(82)

2010年(429)

分类: LINUX

2013-07-11 16:06:40

下面在ubuntu10.04中安装过程:

(1)下载最新gsoap 2.8.11();

(2)在ubuntu10.04中configure。出现如下问题:

configure: error: C++ compiler cannot create executables

原因是漏安装了g++。重新安装后问题解决。(http://5491911.blog.51cto.com/5481911/932205

(3)make. 遇到的问题:

root@ubuntu:/home/zsq/gsoap_2.8.11/gsoap-2.8# make
cd . && /bin/bash /home/zsq/gsoap_2.8.11/gsoap-2.8/missing –run aclocal-1.10
/home/zsq/gsoap_2.8.11/gsoap-2.8/missing: line 46: aclocal-1.10: command not found
WARNING: `aclocal-1.10′ is needed, and you do not seem to have it handy on your
system. You might have modified some files without having the
proper tools for further handling them. Check the `README’ file,
it often tells you about the needed prerequirements for installing
this package. You may also peek at any GNU archive site, in case
some other package would contain this missing `aclocal-1.10′ program.
make: *** [aclocal.m4] Error 1

安装如下安装包,解决问题(

Install the automake1.10 package (for 10.04 Lucid.)

遇到新的问题:../../ylwrap: line 111: yacc: command not found

解决办法:apt-get install byacc.

问题:missing: line 46: flex: command not found

解决:apt-get install flex (需要重新运行./configure)

问题:

gcc -DWITH_YACC -DWITH_FLEX -DSOAPCPP_IMPORT_PATH=”\”/usr/local/share/gsoap/import\”" -DLINUX -g -O2 -o soapcpp2 soapcpp2-soapcpp2_yacc.o soapcpp2-soapcpp2_lex.o soapcpp2-symbol2.o soapcpp2-error2.o soapcpp2-init2.o soapcpp2-soapcpp2.o -ly -lfl
/usr/bin/ld: cannot find -ly

解决:apt-get install bison


问题:

/usr/bin/ld: cannot find -lssl

解决:apt-get install libssl-dev

至此,make通过。

(4)make install

结束

阅读(8473) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~