无法在 Aion FastVM 中构建 Solidity 编译器

Unable to build Solidity Compiler in Aion FastVM

我正在使用 FastVM 指南中的步骤来构建它。我一直停留在必须构建 Solidity 编译器的部分。我已经安装了先决条件,但是当我 运行 make 我得到以下信息:

compilation terminated.
In file included from ./libsolidity/interface/ABI.cpp:21:0:
./libsolidity/interface/ABI.h:25:10: fatal error: json/json.h: No such file or directory
 #include <json/json.h>
          ^~~~~~~~~~~~~
compilation terminated.
In file included from ./libsolidity/interface/Exceptions.h:27:0,
                 from ./libsolidity/interface/ErrorReporter.h:25,
                 from ./libsolidity/interface/ErrorReporter.cpp:23:
./libdevcore/Exceptions.h:20:10: fatal error: boost/exception/exception.hpp: No such file or directory
 #include <boost/exception/exception.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
^CMakefile:9: recipe for target 'all' failed
make: *** [all] Interrupt

我不确定哪里出错了。

看起来 Aion FastVM 是为 运行 在 Ubuntu 16.04 而不是 18.04 上构建的。以下是我启动和 运行ning 所采取的步骤。我参考了Aion's Github上的步骤。

  1. 启动 Ubuntu 16.04 x86-64 环境(本地或 AWS/Azure/DigitalOcean 等)。
  2. SSH 进入您的新环境并运行以下逐行

cd ~ git clone https://github.com/aionnetwork/aion_fastvm.git sudo apt install build-essential llvm-4.0-dev make cd solidity sudo apt install build-essential libboost-all-dev libjsoncpp-dev make

  1. 重启虚拟机:sudo reboot now.

我在构建 Solidity 编译器时确实收到了一些警告,但它们只是警告。什么都没有终止。