rtsa-proto-msg/install_protoc_linux.sh

9 lines
278 B
Bash
Raw Normal View History

#!/bin/sh
# Copy the protoc-27.4-linux-x86_64 file to the home directory
cp -f ./protoc/protoc-27.4-linux-x86_64/bin/protoc /usr/local/bin/
cp -r -f ./protoc/protoc-27.4-linux-x86_64/include/* /usr/local/include/
chmod +x /usr/local/bin/protoc
# 验证安装
protoc --version