Protocol Buffer: Version Change

馋奶兔 提交于 2019-12-13 19:26:05

问题


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.

Is there a way to set the version to 2.6.1 or is there a way to uninstall 3.0.0?


回答1:


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.



来源:https://stackoverflow.com/questions/30866772/protocol-buffer-version-change

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!