This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 检查是否已安装 build-essential | |
if dpkg-query -W build-essential >/dev/null 2>&1; then | |
echo "build-essential 已安装,跳过安装步骤。" | |
else | |
echo "安装 build-essential..." | |
sudo apt update | |
sudo apt install -y build-essential | |
fi |