9 lines
278 B
Bash
Executable File
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 |