Yes, of course, sorry about that. I have modified the below for the current (1.19.0) version of the node, I did this on the fly on mobile, so please check the relevant lines have been modified correctly.
Please also note that I pasted straight from text editor to here, so the commented out sections might look a bit funny and the links will probably auto-populate. Do not click the links if this makes you uncomfortable.
Hope it helps,
A
For use in Ubuntu/Debian builds
See https://cardano-foundation.gitbook.io/stake-pool-course/stake-pool-guide/getting-started/install-node
for differences with other setups (eg AWS)
##################################################################
##################################################################
Install necessary dependencies
NOTE to self: run these 4 lines SEPARATELY
sudo apt-get update -y
sudo apt-get install build-essential pkg-config libffi-dev libgmp-dev -y
sudo apt-get install libssl-dev libtinfo-dev libsystemd-dev zlib1g-dev -y
sudo apt-get install make g++ tmux git jq wget libncursesw5 libtool autoconf -y
install cabal
wget https://downloads.haskell.org/~cabal/cabal-install-3.2.0.0/cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz
tar -xf cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz
rm cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz cabal.sig
mkdir -p ~/.local/bin
mv cabal ~/.local/bin/
verify PATH: .local/bin is NOT in path => modify .bashrc
echo $PATH
nano .bashrc
insert at bottom of file, save (^O) and exit (^X)
export PATH="~/.local/bin:$PATH"
either reboot or source .bashrc (for changes to take effect)
source .bashrc
update and verify cabal version
cabal update
cabal --version
returns cabal-install version 3.2.0.0
so far so good
download and install GHC
wget https://downloads.haskell.org/~ghc/8.6.5/ghc-8.6.5-x86_64-deb9-linux.tar.xz
tar -xf ghc-8.6.5-x86_64-deb9-linux.tar.xz
rm ghc-8.6.5-x86_64-deb9-linux.tar.xz
cd ghc-8.6.5
./configure
sudo make install
cd ..
returns done at the end of sudo make install
so far so good
install libsodium and export to PATH
git clone https://github.com/input-output-hk/libsodium
cd libsodium
git checkout 66f017f1
./autogen.sh
./configure
make
sudo make install
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
no news is good news, so far so good
go back home and source cardano-node
cd
git clone https://github.com/input-output-hk/cardano-node.git
ls cardano-node #checked, all good
get tags and select which version to build
cd cardano-node
git fetch --all --tags
git tag
git checkout tags/1.19.0
enters detached HEAD state, all good
build the node
cabal build all
export executables to path and go home
cp -p dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-node-1.19.0/x/cardano-node/build/cardano-node/cardano-node ~/.local/bin/
cp -p dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-cli-1.19.0/x/cardano-cli/build/cardano-cli/cardano-cli ~/.local/bin/
cd
check correctness of versions
cardano-cli --version
cardano-node --version
#####################################################################
for further information check:
https://cardano-foundation.gitbook.io/stake-pool-course/
#####################################################################