参考博客:
Linux C实现webservice调用 安装gsoap流程 里面提到make时可能碰到的问题 还没有用到
1、从官网下载最新的版本:http://sourceforge.net/projects/gsoap2/files/ ,目前版本是2.8.23。
2、编译安装:
(1)配置安装路径:#./configure --prefix=/usr/local/gSOAP
(2)#make
#make install
3、安装中碰到的问题及解决方法:
(1)WARNING: 'aclocal-1.14' is missing on your system
该错误详情:
test@test:/usr/local/src/Mesa_build$ sudo make
CDPATH="${ZSH_VERSION+.}:" && cd /install/Mesa-10.3.5 && /bin/bash /install/Mesa-10.3.5/bin/missing aclocal-1.14 -I m4
/install/Mesa-10.3.5/bin/missing: line 81: aclocal-1.14: command not found
WARNING: 'aclocal-1.14' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
make: *** [/install/Mesa-10.3.5/aclocal.m4] Error 127
解决方法如下:
用Synaptic Package Manager搜索安装这些库(显然有些是重复的,当时不清楚用哪个索性全添加了):
autotools-dev automake autoconf2.13 m4 perl libperl5.14
执行如下命令:
test@test:/usr/local/src/Mesa-10.3.5$sudo autoreconf -ivf 就是这一句解决了问题
其他问题:
make环境问题:
(1)ylwrap: line 176: yacc: command not found。yacc是一个生成语法分析器的工具。
#yum install yacc
(2)missing: line 81: flex: command not found。
#yum install flex (需重新配置安装路径)
(3)/usr/bin/ld: cannot find -ly。
#yum install yum install bison-devel
(4)../../gsoap/stdsoap2.h:690:19:error:zlib.h:No such file or directory
#yum install zlib-devel
(5)error: openssl/bio.h: No such file or directory
#yum install openssl-devel
4、php添加soap扩展
(1)搜索相关安装项信息
$ yum search php | grep -i soap
[root@yxdlnx webuser]# yum search php | grep -i soap
php-soap.x86_64 : A module for PHP applications that use the SOAP protocol
php54w-soap.x86_64 : A module for PHP applications that use the SOAP protocol
php55w-soap.x86_64 : A module for PHP applications that use the SOAP protocol
php56w-soap.x86_64 : A module for PHP applications that use the SOAP protocol
php70w-soap.x86_64 : A module for PHP applications that use the SOAP protocol
根据php版本选择安装即可
我的是:yum install php55w-soap.x86_64
重启php