docker-composebazeldirected-acyclic-graphscompassiota

How to solve error on docker:layers_calculator to compute the Merkle tree on private tangle?


I want to setup a private tangle on my own virtual machine with Ubuntu 18.04, 4GB RAM and 20GB memory. I have follow this instructions: https://docs.iota.org/docs/compass/0.1/how-to-guides/set-up-a-private-tangle. Every command works fine until reach this one: bazel run //docker:layers_calculator. It shows an error as follows:

Starting local Bazel server and connecting to it...
ERROR: /home/istabraq/compass/third-party/maven_deps.bzl:3:5: Traceback (most recent call last):
    File "/home/istabraq/compass/WORKSPACE", line 42
        maven_jars()
    File "/home/istabraq/compass/third-party/maven_deps.bzl", line 3, in maven_jars
        native.maven_jar(<4 more arguments>)
type 'struct' has no method maven_jar()
ERROR: error loading package '': Encountered error while reading extension file 'protobuf_deps.bzl': no such package '@com_google_protobuf_deps//': error loading package 'external': Could not load //external package
ERROR: error loading package '': Encountered error while reading extension file 'protobuf_deps.bzl': no such package '@com_google_protobuf_deps//': error loading package 'external': Could not load //external package
INFO: Elapsed time: 4.743s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)

How can I solve this problem? what I have missed?


Solution

  • I have solve this issue by using this commands:

    Step 3: Set up your environment If you ran the Bazel installer with the --user flag as above, the Bazel executable is installed in your $HOME/bin directory. It’s a good idea to add this directory to your default paths, as follows:

    export PATH="$PATH:$HOME/bin"
    

    You can also add this command to your ~/.bashrc or ~/.zshrc file to make it permanent.

    reference: https://docs.bazel.build/versions/master/install-ubuntu.html