简体   繁体   English

两种不同版本的安装库

[英]Two different version of install lib

I'm checking with installed protobuf lib version on my system and I'm surprised with, following /usr/bin/protoc --version return V2.4.1 and following protoc --version return V3.0.0 . 我正在检查系统上已安装的protobuf lib版本,并对/ usr / bin / protoc --version返回V2.4.1protoc --version返回V3.0.0感到惊讶。

Why this is so, am I missing any user account related installation concept. 为什么会这样,我是否缺少任何与用户帐户相关的安装概念。

It looks like you have two versions of protocol buffers installed. 看来您已经安装了两个版本的协议缓冲区。

If you write $ which protoc you will see where the protoc environment variable points to. 如果编写$ which protoc您将看到协议环境变量指向的位置。 Probably /usr/local/bin/protoc 可能是/usr/local/bin/protoc

You can change that to /usr/bin/protoc , but how depends on how it is set initially and what system you are on. 您可以将其更改为/usr/bin/protoc ,但是如何更改取决于最初的设置方式以及所使用的系统。 Google or this article will help you with that. Google或本文将为您提供帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM