mirror of
https://github.com/xubiaolin/docker-zerotier-planet.git
synced 2025-01-22 12:48:14 -05:00
修复mkworld编译异常的问题
先前直接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 的,考虑到这块后续也不会有啥变化,就是用了这种比较简单直接的方式
This commit is contained in:
parent
c8f9c09b0a
commit
9a16916925
6
init.sh
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user