• 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

  • 相关阅读:
    margin折叠及hasLayout && Block Formatting Contexts
    视口(viewport)原理详解之第二部分(移动端浏览器)
    Git & SSH
    .NET Core 3.0 System.Text.Json 和 Newtonsoft.Json 行为不一致问题及解决办法
    阿里云函数计算 .NET Core 初体验
    Oracle PLSQL 存储过程无法进入单步调试
    解释器错误:没有那个文件或目录
    不能在此路径中使用此配置节。如果在父级别上锁定了该节,便会出现这种情况。
    Oracle 11G R2 安装图解
    Oracle UTL_HTTP
  • 原文地址:https://www.cnblogs.com/wuling129/p/5032551.html
Copyright © 2020-2023  润新知