TARAXA
|
Specifies whether to build with or without optimization and without or with the symbol table for debugging. Unless you are specifically debugging or running tests, it is recommended to build as release.
sudo apt-get install -y \ libtool \ autoconf \ ccache \ cmake \ clang \ clang-format-18 \ clang-tidy-18 \ llvm-18 \ golang-go \ python3-full \ libzstd-dev \ libsnappy-dev \ libmicrohttpd-dev
sudo add-apt-repository ppa:ethereum/ethereum sudo apt-get update sudo apt install solc
sudo python3 -m pip install conan==2.15.0
First you need to get (Brew)[https://brew.sh/] package manager. After that you need to install dependencies with it. Clang-18 is used for compilation.
brew update brew install coreutils go autoconf automake gflags git libtool llvm@18 make pkg-config cmake conan snappy zstd libmicrohttpd
git clone https://github.com/Taraxa-project/taraxa-node.git cd taraxa-node git submodule update --init --recursive
# Build project ./scripts/build.sh
Sometimes conan cache goes wrong, so you should clean it up. You could face error like:
It could be cleaned up with:
cd build make all_tests or cd build/tests ctest
cd build/bin
Run taraxa node with default testnet config which on initial run will generate default config and wallet file in ~/.taraxa/config.json
and ~/.taraxa/wallet.json
# run taraxa-node ./taraxad
Run taraxa node with specified config and wallet files
# run taraxa-node ./taraxad --config /path/to/config/file --wallet /path/to/wallet/file
Run help message to display all command line options to run and configure node in devnet, testnet or custom network
# help ./taraxad --help