-
Install tools needed:
pkg_add curl automake libtool git -
Install nodejs:
pkg_add node -
Install postgresql:
pkg_add postgresql-server -
Create user "lisk":
adduser lisk -
Configure postgresql:
su _postgresql
initdb -D /var/postgresql/data -U lisk
rcctl enable postgresql
rcctl start postgresql
createdb lisk_test -O lisk -
Clone Lisk sources:
git clone https://github.com/LiskHQ/lisk.git
cd lisk
git checkout (version) -b (version)
npm installif there is an error: "cb() never called", again:
npm install -
Install modules:
npm install node-gyp-build
npm install sodium-native@1 -
Edit file: node_modules/sc-uws/src/Hub.cpp
comment lines: 128, 130, 131, 132 -
Rebuild module:
npm rebuild -
Start node:
node app.js --network testnet
Done!