Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'No package protobuf-devel available' error on centos 7

I tried to use yum to install protobuf-devel on CentOS7, but it gives me this error:

No package protobuf-devel available

I didn't change yum resources, just use a proxy of my company, can I fix this problem rather than installing protobuf via source?

like image 944
Demonedge Avatar asked Jan 07 '23 19:01

Demonedge


1 Answers

This worked for me:

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 
like image 83
badgerbadger Avatar answered Jan 27 '23 07:01

badgerbadger