Explains how to build the iota source.
Warning
You MUST complete the steps in Create Build Environment before you build the iota source since those steps install required Linux packages as well as set up important environmental variables.
Download and Install iota Source Tree
If you haven’t done so already, then download the iota source tree. Refer to the Source Download instructions in the How-To chapter.
Set Up Environmental Variables
Use the following commands to set up the iota environmental variables.
<TBD>
Test for variables
Test to make sure environment variables are set afterwards.
Example
$ cd mysource/incubator-iota $
Build iota Components
All make options sets up your environment to run a debug version of the iota code on the server where you are building the code. This is refereed to as "iota" in the table below.
Command | What It Builds |
---|---|
make all | |
Tip
make
step. iota downloads many dependencies and sometimes one of the download operations fail. Rerunning the build generally works. If the build continues to fail after a few tries, then rerun the make with the -j 1
option to run the build in non-parallel mode, which makes it easier to locate errors.make all
$ make all $
Verify Build
Local Binary Files
Check that local iota binary files were created in the build.
$ # Check that local binary files were created $
Next Steps
Do one of the following once the build has completed:
- Create Test Environment: Set up the iota development test environment on the server where you did the build.
- Install iota Binaries: Using the packages you created, install the iota Binaries using the steps described in the iota installation documentation.