centos 7 上的“没有可用的包 protobuf-devel”错误

Dem*_*dge 4 yum protocol-buffers

我尝试使用 yum 在 CentOS7 上安装 protobuf-devel,但它给了我这个错误:

No package protobuf-devel available
Run Code Online (Sandbox Code Playgroud)

我没改yum资源,就用我公司的代理,能不能解决这个问题,而不是通过源码安装protobuf?

bad*_*ger 6

这对我有用:

wget http://cbs.centos.org/kojifiles/packages/protobuf/2.5.0/10.el7.centos/x86_64/protobuf-2.5.0-10.el7.centos.x86_64.rpm
wget http://cbs.centos.org/kojifiles/packages/protobuf/2.5.0/10.el7.centos/x86_64/protobuf-devel-2.5.0-10.el7.centos.x86_64.rpm
wget http://cbs.centos.org/kojifiles/packages/protobuf/2.5.0/10.el7.centos/x86_64/protobuf-compiler-2.5.0-10.el7.centos.x86_64.rpm
sudo yum -y install protobuf-2.5.0-10.el7.centos.x86_64.rpm \
protobuf-compiler-2.5.0-10.el7.centos.x86_64.rpm \
protobuf-devel-2.5.0-10.el7.centos.x86_64.rpm 
Run Code Online (Sandbox Code Playgroud)