Protocol Buffer: Version Change

2019-08-12 08:51发布

问题:

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.