Ubuntu Linux 安装gSoap

来源:互联网 发布:关键词软件 编辑:程序博客网 时间:2024/05/17 03:13

本机linux环境为Ubuntu12.04 gSoap为gsoap_2.8.19

1、解压安装文件

$ uzip gsoap_2.8.19.zip

2、安装
进入解压后目录,执行

$ ./configure --disable-ssl LIBS=-ldl
$ make

中间遇到的问题:

1)yacc : commond not found

应该是相应链接工具没有,执行以下命令安装

$ apt-get install byacc

2)flex : commond not found
同上,执行

$ apt-get install flex

3)cannot find -ly

$ apt-get install -y bison

4)undefined reference to dlclose'dlopen’ `dlsym’
重复第一步为:

$ ./configure --with-openssl=/usr/local/openssl LIBS=-ldl

3 测试生成代码

$ wsdl2h -c -o  {aim.h} {source.wsdl}
$soapcpp2 {aim.h} -I ./

在当前文件夹下生成了相应代码。

原创粉丝点击