Build from source

Installation dependencies

Please refer to Install dependenciesSource - 图1 (opens new window).

Compilation

  1. $ git clone https://github.com/emqx/neuron
  2. $ cd neuron
  3. $ mkdir build && cd build
  4. $ cmake .. && make

TIP

There are three optional parameters in CMakeLists:

  • CMAKE_ BUILD_ Type “Debug”, which compiles the debug version by default.
  • DISABLE_WERROR, which treats all warnings as errors.
    Usage example:cmake -DISABLE_WERROR=1 ..
  • DISABLE_ ASAN, select whether to enable libasan memory detection.

Install Dashboard

On the neuron dashboardSource - 图2 (opens new window) download the latest neuron-dashboard.zip from the page, extract it, and place it in the dist directory under the Neuron executable directory.

Operation

  1. $ cd build
  2. $ ./ neuron