Last active
July 23, 2018 21:16
-
-
Save buzztiaan/7b653044384a8aa37c3f8d5a5f2d70a8 to your computer and use it in GitHub Desktop.
How to build neos on a fresh debian or alike
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# how to build the new neos v3 wallet on debian 8/9 based distros | |
# buZz 23 july 2018 , i live on irc #neoscoin | |
# send your thanks to NXQGBzgQBi7pcjhYcBg5aA3ue1z2MfX4bB ;) | |
# tested on ; | |
# - debian jessie (8.x) | |
# - ubuntu 16.04 | |
# - debian stretch (9.x) (needs libssl1.0-dev) | |
# - ubuntu 18.04 (needs libssl1.0-dev) | |
# first we install some dependancies, you need sudo access for this | |
sudo apt update | |
# you may want to do a sudo apt upgrade here aswell for good measure | |
sudo apt install build-essential libtool autotools-dev \ | |
automake pkg-config libssl-dev libevent-dev bsdmainutils \ | |
libboost-system-dev libboost-filesystem-dev libboost-chrono-dev \ | |
libboost-program-options-dev libboost-test-dev libboost-thread-dev \ | |
libminiupnpc-dev libzmq3-dev libgmp-dev git screen ca-certificates | |
# if running stretch or some other distro (ubuntu 18.04) where libssl-dev isnt openssl 1.0 , run this : | |
# apt install libssl1.0-dev | |
# if you also want to compile the Qt5 gui you need the following | |
sudo apt install qt5-default libprotobuf-dev qttools5-dev-tools protobuf-compiler | |
# now we grab & build libDB 4.8 | |
mkdir ~/DB48; cd ~/DB48 | |
wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz' | |
tar -xzf db-4.8.30.NC.tar.gz | |
cd db-4.8.30.NC/build_unix/ | |
# EDIT THIS NEXT LINE TO YOUR USERNAME :) | |
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=/home/buzz/DB48/ | |
make install | |
cd ~ | |
# time to grab , configure and compile neos! | |
git clone https://github.com/neoscoin/neos-core | |
cd neos-core | |
./autogen.sh | |
# a) edit your username into the next line on two places , b) disabling tests isnt recommended | |
LDFLAGS="-L/home/buzz/DB48/lib/" CPPFLAGS="-I/home/buzz/DB48/include/" ./configure --disable-tests | |
# replace 2 with amount of compile threads you want , assume 1-2GB ram per thread is needed | |
# ( to get bragging figures, run 'time make -j2' to measure the time it takes to build on your system ) | |
make -j2 | |
cp src/neosd ~/ | |
cp src/neos-cli ~/ | |
# if you built gui aswell : | |
cp src/qt/neos-qt ~/ | |
cd ~ | |
# we have neos compiled and 'installed' now! | |
# the daemon is here ; | |
~/neosd | |
# it will complain about lacking ~/.neos/neos.conf , make one and add the rpc lines it wants | |
~/neosd | |
# example rpc call | |
~/neos-cli getinfo | |
# best rpc call ever | |
~/neos-cli help | |
# follow the logfile, stop with ctrl-c | |
tail -f ~/.neos/debug.log | |
# the QT doesnt require neos.conf to exist | |
~/neos-qt | |
# and of course you could move these files somewhere else | |
mkdir ~/neoscoin | |
mv neosd ~/neoscoin | |
mv neos-cli ~/neoscoin | |
mv neos-qt ~/neoscoin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment