TheRiver | blog

You have reached the world's edge, none but devils play past here

0%

gsoap的安装过程

前言

最近在搞onvif,gsoap是绕不过的坎,安装的过程大大超出了预期,可以说是相当的艰难了,大概记录下过程.

漫长的安装过程

1.下载gsoap: 开源下载链接

2.下载,解压缩.

$ cd gsoap-2.8

$ ./configure –with-openssl=/usr/local/ssl

$ make

$ make install

3.解决错误.

然后大概会报错:aclocal-1.16: 未找到命令 ,网上找到的解决办法:autoreconf -ivf .为此要安装autoconf和automake,参考: 在CentOS中安装autoconf和automake.安装autoconf和automake的时候又报错了,真是头大.参考我的操作步骤吧(精简了下),也记不起来了

 06:03:31 autoreconf -ivf
 06:05:51 wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
 06:06:10 yum -y install wget
 06:06:18 wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
 06:09:47 ls
 06:09:54 tar -xzvf autoconf-2.69.tar.gz 
 06:09:58 cd autoconf-2.69
 06:10:04 ./configure 
 06:10:10 make
 06:10:21 make | grep err
 06:11:18 cd ..
 06:11:22 wget http://www.cpan.org/modules/by-module/Data/Data-Dumper-2.173.tar.gz
 06:12:01 tar -xzvf Data-Dumper-2.173.tar.gz 
 06:12:04 cd Data-Dumper-2.173
 06:12:15 perl Makefile.PL 
 06:13:01 cd ..
 06:13:03 wget http://files.directadmin.com/services/9.0/ExtUtils-MakeMaker-6.31.tar.gz
 06:13:30 tar -xzvf ExtUtils-MakeMaker-6.31.tar.gz 
 06:13:35 cd ExtUtils-MakeMaker-6.31
 06:13:50 perl Makefile.PL 
 06:14:08 yum install perl-ExtUtils-MakeMaker
 06:14:15 perl Makefile.PL 
 06:15:01 cd autoconf-2.69
 06:15:20 ./configure 
 06:15:25 make
 06:16:15 cd Data-Dumper-2.173
 06:16:18 make
 06:16:23 make install    
 06:16:34 cd ExtUtils-MakeMaker-6.31
 06:16:37 make
 06:16:41 make install
 06:16:42 cd ..
 06:16:48 cd autoconf-2.69
 06:16:49 ls
 06:16:50 make
 06:16:57 make install
 06:17:02 cd ..
 06:17:09 cd gsoap-2.8/
 06:17:10 ls
 06:17:12 make
 06:17:18 ./configure
 06:17:44 make
 06:17:50 autoconf --version
 06:18:06 wget http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz
 06:23:25 tar -xzvf automake-1.14.tar.gz 
 06:23:28 cd automake-1.14
 06:23:55 ./bootstrap.sh 
 06:26:29 yum install perl-Thread-Queue
 06:26:35 ./bootstrap.sh 
 06:26:42 ./configure 
 06:26:51 make
 06:26:57 make install
 06:27:04 automake --version
 06:27:07 cd ..
 06:27:07 ls
 06:27:11 cd gsoap-2.8/
 06:27:12 ls
 06:27:16 ./configure
 06:27:30 ls
 06:27:31 make
 06:27:54 autoreconf -ivf<br>

aclocal-1.16这个问题大概是解决了.接着执行: ./configure –with-openssl=/usr/local/ssl 又报错.大概是ssl有问题.于是:

yum install openssl
yum install openssl-devel
cd /
find . -name openssl 找到openssl的头文件的地址,我的是 ./usr/include/openssl
然后: ./configure --with-openssl=/usr/include/openssl

又报错找不到yacc,继续:

yum install byacc
yum install flex

安装完,make的时候又报奇怪的错误.重新configure后就好了:

./configure --with-openssl=/usr/include/openssl
make
make install
which wsdl2h soapcpp2
wsdl2h -h

大功告成.整个安装过程着实捉急.凭印象和history信息进行了整理.有点混乱,可能记录也不全面.就这样吧.

----------- ending -----------