9 lines
278 B
Bash
9 lines
278 B
Bash
|
#!/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
|