Debian 13 (trixie) では H2O のパッケージが用意されなくなったので、自分でビルドする必要があります。
sudo apt update
sudo apt install -y \
git build-essential cmake \
zlib1g-dev libssl-dev \
libyaml-dev pkg-config
mkdir -p ~/src
cd ~/src
git clone --recursive https://github.com/h2o/h2o.git
cd h2o
mkdir -p build
cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$HOME/.local"
cmake --build . -j"$(nproc)"
cmake --install .
which h2o
h2o -v
mkdir -p ~/h2o-test
cd ~/h2o-test
cat > h2o.conf <<'EOF'
listen:
host: 127.0.0.1
port: 8080
hosts:
default:
paths:
/:
file.dir: .
EOF
echo "hello h2o" > index.html
h2o -c h2o.conf