赞
踩
which protoc
rm 上边的路径
2. 安装
* wget https://github.com/google/protobuf/releases/download/v3.6.1/protobuf-all-3.6.1.tar.gz
* tar zxvf protobuf-all-3.6.1.tar.gz
* cd protobuf-3.6.1
* ./configure
* make
* make install
* protoc -h
* protoc --version
下载插件:https://repo1.maven.org/maven2/com/google/protobuf/protoc-gen-javalite/3.0.0/
mv protoc-gen-javalite.exe protoc-gen-javalite
chmod 777 protoc-gen-javalite
mv protoc-gen-javalite /usr/local/bin //移动到/usr/local/bin
vim ~/.bash_profile
export PROTOBUF_GEN_JAVA_LITE=/usr/local/bin/protoc-gen-javalite
export PATH=$PATH:$PROTOBUF_GEN_JAVA_LITE
保存后
source ~/.bash_profile
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。