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.不能有中文路徑


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM