【问题标题】:Unable to build Solidity Compiler in Aion FastVM无法在 Aion FastVM 中构建 Solidity 编译器
【发布时间】:2018-09-26 15:59:23
【问题描述】:

我正在使用 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

我不确定我哪里出错了。

【问题讨论】:

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

标签: virtual-machine blockchain solidity ubuntu-18.04 aion


【解决方案1】:

看起来 Aion FastVM 是为在 Ubuntu 16.04 而不是 18.04 上运行而构建的。这是我为启动和运行它所采取的步骤。我参考了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 编译器时确实收到了一些警告,但它们只是警告。没有任何内容被终止。

【讨论】:

    猜你喜欢
    • 2022-11-12
    • 2021-09-10
    • 2019-04-01
    • 2021-07-25
    • 1970-01-01
    • 2019-02-24
    • 2017-12-03
    • 1970-01-01
    • 2021-07-11
    相关资源
    最近更新 更多