From 9a169169255a0ada8f66ec7eb3fe6f022ae9b127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A9=E7=BF=94=E5=AE=87?= Date: Thu, 23 Jun 2022 07:44:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmkworld=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 先前直接Build时,会出现:`../../osdep/OSUtils.hpp:46:10: fatal error: nlohmann/json.hpp: No such file or directory` 的问题,造成最后并没有编译出正确的planet的问题; 此外,直接使用 wget 往 `/usr/include` 下塞东西确实不够优雅,但是不知道为啥 `apt install nlohmann-json-dev` 是 missing 的,考虑到这块后续也不会有啥变化,就是用了这种比较简单直接的方式 --- init.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.sh b/init.sh index d9f1d49..edc0d32 100755 --- a/init.sh +++ b/init.sh @@ -19,7 +19,11 @@ dpkg-reconfigure --frontend noninteractive tzdata rm -rf /var/lib/apt/lists/* apt update -apt install git python3 npm make curl -y +apt install git python3 npm make curl wget -y + +mkdir /usr/include/nlohmann/ +cd /usr/include/nlohmann/ && wget https://github.com/nlohmann/json/releases/download/v3.10.5/json.hpp + npm config set registry http://registry.npm.taobao.org && npm install -g node-gyp curl -s https://install.zerotier.com | bash cd /opt && git clone -v http://gh-proxy.markxu.vip/https://github.com/key-networks/ztncui.git