rtsa-proto-msg/install_protoc_linux.sh
2024-08-29 14:49:32 +08:00

9 lines
278 B
Bash
Executable File

#!/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