打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
linux-i386(ubuntu)下编译安装gsoap_2.8.17过程记录

linux-i386(ubuntu)下编译安装gsoap_2.8.17过程记录


过程记录 : 

1.下载gsoap_2.8.17.zip 并 解压 : $unzip gsoap_2.8.17.zip
 
 
2.进入解压后的目录gsoap-2.8

 
3.自动配置编译环境:  $./configure –prefix=$(pwd)/_install 
 
配置失败
  • 原因:error: C++ compiler cannot create executables
  • 解决办法:You need to install c++ on your computer. even if you installed gcc that doesn’t automatically install g++. Try to run one of the following commands that fit your Linux distribution best :)
  • yum install gcc-c++ or apt-get install gcc-c++ . if apt-get doesn’t like the command try :apt-get install g++
安装c++编译器 : $sudo apt-get install g++

重新执行配置命令,成功!

4.编译安装 : $sudo make

 
编译出错 : yacc: 未找到命令 , 需要安装yacc
yacc和lex在ubuntu使用flex和bison代替,此处安装bison就是安装yacc
执行命令 : $sudo apt-get install bison

安装完成后继续编译,结果出错:

很明显,需要安装flex : sudo apt-get install flex

继续编译,继续出错 :

原因:缺少openssl,安装openssl : suod apt-get install openssl

网上还说要安装openssl的库文件 : sudo apt-get install libssl-dev

出错 
sudo apt-get install libgtk2.0-dev libglib2.0-dev
编译成功!

5.安装  sudo make install

 
总结 : 
          1.安装编译工具 : $sudo apt-get install g++ 或者 $sudo apt-get install build-essential
          2.可能需要安装GTK+和Glib库 : $sudo apt-get install libgtk2.0-dev libglib2.0-dev
          3.安装flex和bison代替lex和yacc :  $sudo apt-get install flex bison
          4.安装openssl      :   $sudo apt-get install openssl
                                        $sudo apt-get install libssl-dev
          5.不能有中文路径
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
ubnt编译环境搭建
Linux环境报错原因、解决方法记录(逐步总结)
Ubuntu上安装openssh
ubuntu下安装nginx时PCRE库、zlib库、OpenSSL库的安装
生信第二步-ubuntu上安装单细胞3大包
make编译报错,安装对应依赖
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服