协议缓冲区:版本更改 [英] Protocol Buffer: Version Change
问题描述
我不小心安装了 3.0.0 版,我的大部分文件自然会出现大量错误.现在我想把它带回 2.6.1.我已经下载并安装了 2.6.1,但是当我执行 protoc --version
时,它仍然显示 libprotoc 3.0.0
,这是错误的.
I have accidentally installed version 3.0.0 and most of my files naturally gave tons of errors. Now I want to take it back to 2.6.1. I already downloaded 2.6.1 and installed, however when I do protoc --version
it still shows libprotoc 3.0.0
, which is wrong.
有没有办法将版本设置为 2.6.1 或者有没有办法卸载 3.0.0?
Is there a way to set the version to 2.6.1 or is there a way to uninstall 3.0.0?
推荐答案
想通了.应该删除 /local
和 /include
下有关 google 协议缓冲区的所有内容,然后简单地重新安装另一个版本.之后 protoc --version
显示新版本.
Figured it out. One should delete everything regarding google protocol buffers under /local
and /include
, , and then simple reinstall the other version. After that protoc --version
shows the new version.
这篇关于协议缓冲区:版本更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!