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

Virtual machine 无法在Aion FastVM中构建Solidity编译器,virtual-machine,blockchain,solidity,ubuntu-18.04,aion,Virtual Machine,Blockchain,Solidity,Ubuntu 18.04,Aion,我正在使用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 &

我正在使用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
编译已终止。
包含在文件中的./libsolidity/interface/ABI.cpp:21:0:
./libsolidity/interface/ABI.h:25:10:致命错误:json/json.h:没有这样的文件或目录
#包括
^~~~~~~~~~~~~
编译终止。
在./libsolidity/interface/Exceptions.h:27:0中包含的文件中,
from./libsolidity/interface/ErrorReporter.h:25,
from./libsolidity/interface/ErrorReporter.cpp:23:
./libdevcore/Exceptions.h:20:10:致命错误:boost/exception/exception.hpp:没有这样的文件或目录
#包括
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
编译终止。
^CMakefile:9:目标“全部”的配方失败
使:**[全部]中断

我不确定我哪里出了问题。

看起来Aion FastVM是在Ubuntu 16.04而不是18.04上运行的。以下是我为启动和运行它所采取的步骤。我使用上的步骤作为参考

  • 启动Ubuntu 16.04 x86-64环境(本地或AWS/Azure/DigitalOcean/etc)
  • SSH到新环境中,并逐行运行以下
  • cd~
    git克隆https://github.com/aionnetwork/aion_fastvm.git
    sudo apt安装构建基本llvm-4.0-dev
    制作
    cd固化度
    sudo-apt-install-build-essential-libboost-all-dev-libjsoncpp-dev
    制作
    

  • 重新启动虚拟机:
    sudo立即重新启动

  • 在构建Solidity编译器时,我确实收到了一些警告,但它们只是警告。没有终止任何内容。

    先决条件:看起来您仍然缺少Boost库和JSON库。您是否安装了包的-dev版本?你能链接到你正在关注的指南吗嗨,莎拉,欢迎来到Stack Overflow!我有一种感觉,这是因为你在Ubuntu 18.04上运行这个(不确定你是否打算包含这个标签)。我正在运行一个16.04虚拟机,只是为了检查是否收到相同的错误消息。我正在使用Ubuntu 18.04。