centos6.5 gsoap安装过程+ php添加soap扩展

参考博客:

CentOS编译安装gSOAP

 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

 

转载于:https://www.cnblogs.com/wuling129/p/5032551.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值