100%

installing Core and Aurora

Building & Installing HcNet Core and Aurora

Runtime dependencies

HC Net-core does not have many dependencies.

If core was configured (see below) to work with Postgresql, a local Postgresql server will need to be deployed to the same host.

To install Postgresql, follow instructions from the Postgresql download page .

Build Dependencies

  • c++ toolchain and headers that supports c++17
  • clang >= 10.0
  • g++ >= 8.0
  • pkg-config
  • bison and flex
  • libpq-dev unless you ./configure --disable-postgres in the build step below.
  • 64-bit system
  • clang-format-10 (for make format to work)
  • perl
  • libunwind-dev

Ubuntu 18.04 has clang-10 available, that you can install with

# install clang-10 toolchain

sudo apt-get install clang-10
After installing packages, head to the building with clang and libc++ .

Adding the test toolchain (optional)

# NOTE: newer version of the compilers are not
# provided by stock distributions
# and are provided by the /test toolchain
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update

Installing packages

# common packages
sudo apt-get install git build-essential pkg-config autoconf automake libtool bison flex libpq-dev libunwind-dev parallel
# if using clang
sudo apt-get install clang-10
# clang with libstdc++
sudo apt-get install gcc-8
# if using g++ or building with libstdc++
# sudo apt-get install gcc-8 g++-8 cpp-8

In order to make changes, you'll need to install the proper version of clang-format.

sudo apt-get install clang-format-10

Follow this steps for installation:

Step : 1
Clone the Hcnet core from Hashcash github
Command :
git clone https://github.com/HashCash-Consultants/hcnet-core.git --branch v19.3.0
Step : 2
Go to hcnet-core directory
Command : cd hcnet-core/
Step : 3
Export these files to build
Command :
export CC=clang-10
export CXX=clang++-10
export CFLAGS="-O3 -g1 -fno-omit-frame-pointer"
export CXXFLAGS="$CFLAGS -stdlib=libc++"
Step : 4
sudo apt-get install autoconf automake pkg-config libgtk-3-dev
sudo apt-get install autoconf autogen
sudo apt-get install libgdk-pixbuf2.0-common
sudo apt-get install libtool
Run this command to start autogen
Command : ./autogen.sh
Next Run this command to start configure
Command : ./configure
Next Run this command
Command : make -j6
Now, Your build is ready for the next step Go Setup…
Install go
Step : 1
Download and upload the latest version of go lang tar file for ubuntu linux
Step : 2
Command : sudo tar -xvf go1.19.linux-amd64.tar.gz
Step : 3
Go to Root folder
Open vi .profile file
This file is available in ROOT HOME directory
Command : vi .profile
Step : 4
Add following lines in vi .profile
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
export GOPATH=$HOME/go
export PATH=${GOPATH}/bin:${PATH}
Open vi .bashrc file
This file is available in ROOT HOME directory
vi .bashrc
Add following lines in vi .bashrc:
eval "$(direnv hook bash)"
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
Step : 5
To refresh the files execute following commands:
Command : source ~/.profile
Command : source ~/.bashrc

Now, You are ready for the next step: Aurora Setup… To install Aurora, you have a few choices. You can...

  • install prebuilt binaries from our repositories via your package manager if running a Debian-based system,
  • download a prebuilt release of Aurora for your target architecture and operation system,
  • or
  • build Aurora and Hcnet Core yourself from scratch.

Install Aurora latest version

Step : 1
Create a directory under src folder - path : /go/src
Command : mkdir github.com/hcnet
Step : 2
go to github.com/hcnet directory
Command : cd /go/src/github.com/hcnet
Step : 3
Clone the HashCash-Consultants/go repository from hashcash github
Command : git clone https://github.com/HashCash-Consultants/go.git --branch v2.20.0
Step : 4
Then go to github.com/hcnet/go directory
Command : cd /go/src/github.com/hcnet/go
Step : 5
Install the aurora service
Command : go install -v ./services/aurora
Step : 6
check aurora build in < << /span> Your_dir >>>/go/bin folder and you can check aurora version

Once Aurora infrastructur installed, you are ready to configure it. Note that Aurora fulfills three important, distinct roles:

  • serving requests like a regular web-based API,
  • ingesting ledgers from the HC Net network to keep its world-view up to date, and
  • transaction submission for interacting with the HC Net network.

How to connect the HC Net network through the Captive core?

First of all you can use the Hc Net core and aurora latest version both build done then you go through the Captive core.toml file.

+
Chat Now
Welcome to HashCash Support