protocol buffers make install安装错误

make install 如果出现如下错误

Making install in .

make[2]: Nothing to be done for `install-exec-am'.

test -z "/usr/local/lib/pkgconfig" || ./install-sh -c -d "/usr/local/lib/pkgconfig"

mkdir: /usr/local/lib/pkgconfig: Permission denied

make[2]: *** [install-pkgconfigDATA] Error 1

make[1]: *** [install-am] Error 2

make: *** [install-recursive] Error 1

1.

curl http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz -o pkg-config-0.28.tar.gz

2.

tar -xf pkg-config-0.28.tar.gz

如果出现下面错误不用管,执行第三步

tar: Unrecognized archive format

tar: Error exit delayed from previous errors.

3.

sudo make install

安装完成,查看版本

protoc --version

你可能感兴趣的:(protocol buffers make install安装错误)