mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
18 lines
503 B
Bash
18 lines
503 B
Bash
#!/bin/bash
|
|
|
|
set -exu
|
|
__DIR__=$(
|
|
cd "$(dirname "$0")"
|
|
pwd
|
|
)
|
|
|
|
sed -i "s@deb.debian.org@mirrors.ustc.edu.cn@g" /etc/apt/sources.list && \
|
|
sed -i "s@security.debian.org@mirrors.ustc.edu.cn@g" /etc/apt/sources.list
|
|
|
|
apt update -y
|
|
apt install -y git curl wget ca-certificates
|
|
apt install -y xz-utils autoconf automake libclang-13-dev clang lld libtool cmake bison re2c gettext coreutils lzip zip unzip
|
|
apt install -y pkg-config bzip2 flex
|
|
|
|
|
|
# apt install build-essential linux-headers-$(uname -r) |