一、安裝protobuf2.5
1、下載安裝包
wget https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.gz
2、解壓安裝包
tar -zxvf protobuf-2.5.0.tar.gz cd protobuf-2.5.0
3、編譯並安裝
./configure make make check sudo make install sudo ldconfig
二、麒麟安裝protobuf
1、安裝依賴庫
sudo apt-get install autoconf automake libtool curl make g++ unzip sudo apt-get install zlib1g-dev sudo apt-get install libssl-dev
2、下載protobuf壓縮包
wget https://github.com/google/protobuf/releases/download/v3.0.0/protobuf-cpp-3.0.0.tar.gz
3、解壓並編譯
tar -zxvf protobuf-cpp-3.0.0.tar.gz cd protobuf-3.0.0 ./configure --prefix=/usr make make check sudo make install
三、安裝protobuf指定版本
1、查看所有可用版本
protobuf下載地址:https://github.com/protocolbuffers/protobuf/releases
2、下載指定版本
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.11.4/protobuf-all-3.11.4.tar.gz
3、編譯並安裝
tar zxvf protobuf-all-3.11.4.tar.gz cd protobuf-3.11.4 ./configure make -j8 sudo make install
四、安裝protobuf後找不到proto
1、檢查環境變數
nano ~/.bashrc
2、在最後一行添加以下內容
export PATH=$PATH:/usr/local/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
3、更新環境變數
source ~/.bashrc
五、安裝protobuf過程
1、安裝依賴庫
sudo apt-get install autoconf automake libtool curl make g++ unzip sudo apt-get install zlib1g-dev sudo apt-get install libssl-dev
2、下載protobuf
wget https://github.com/google/protobuf/releases/download/v3.11.4/protobuf-all-3.11.4.tar.gz
3、解壓並編譯
tar zxvf protobuf-all-3.11.4.tar.gz cd protobuf-3.11.4 ./configure make -j8 sudo make check sudo make install
六、安裝proteus出現安裝包錯誤
1、下載安裝包
https://www.labcenter.com/downloads/
2、安裝前準備
sudo apt-get update sudo apt-get install wine
3、安裝前準備2
export WINEARCH=win32 export WINEPREFIX=~/.wine32 rm -rf $WINEPREFIX winecfg
4、安裝
wine /path/to/setup.exe
七、安裝proteus
1、下載安裝包
https://www.labcenter.com/downloads/
2、安裝前準備
sudo apt-get update sudo apt-get install wine
3、安裝前準備2
export WINEARCH=win32 export WINEPREFIX=~/.wine32 rm -rf $WINEPREFIX winecfg
4、安裝
wine /path/to/setup.exe
八、安裝proteus8.9常見問題
1、安裝完後提示無法打開
解決辦法:
export WINEARCH=win32 export WINEPREFIX=~/.wine32 rm -rf $WINEPREFIX winecfg
2、打開proteus後閃退
解決辦法:
winetricks gdiplus
九、安裝proteus7.8常見問題解決辦法
1、安裝完後無法打開
解決辦法:
export WINEARCH=win32 export WINEPREFIX=~/.wine32 rm -rf $WINEPREFIX winecfg
2、打開proteus後出錯
解決辦法:
winetricks vb6run
3、出現「AR License Manager is not responding」錯誤
解決辦法:
winetricks mdac28
十、安裝proteus7.8所選目錄錯誤選取
1、將proteus下載到/home目錄下
2、安裝前準備
export WINEARCH=win32 export WINEPREFIX=~/.wine32 rm -rf $WINEPREFIX winecfg
3、安裝
wine /path/to/setup.exe
以上是關於安裝protobuf的多種方式以及proteus常見問題的解決辦法。希望可以幫助到大家。
原創文章,作者:VVZDQ,如若轉載,請註明出處:https://www.506064.com/zh-tw/n/318210.html