Setting up Cadano node from source

My linux is pretty rusty… bash cant find cabal? need help cant get cabal to run?
Should I be doing this as root? Maybe thats bad idea lol

root@santonode:~# ls -la
total 40
drwx------ 5 root root 4096 May 23 00:08 .
drwxr-xr-x 22 root root 4096 May 22 21:49 …
-rw------- 1 root root 2657 May 23 00:08 .bash_history
-rw-r–r-- 1 root root 3130 May 23 00:07 .bashrc
drwx------ 2 root root 4096 May 22 16:10 .cache
drwxr-xr-x 4 root root 4096 May 22 21:49 .local
-rw-r–r-- 1 root root 148 Aug 6 2018 .profile
-rw-r–r-- 1 root root 20 May 21 21:22 .screenrc
drwx------ 2 root root 4096 May 22 16:18 .ssh
-rw------- 1 root root 675 May 23 00:08 .viminfo
root@santonode:~# source .bashrc
root@santonode:~# cabal update

-bash: cabal: command not found

root@santonode:~/.local/bin# ls -la
total 12
drwxr-xr-x 3 root root 4096 May 23 00:11 .
drwxr-xr-x 4 root root 4096 May 22 21:49 …
drwxr-xr-x 6 root root 4096 Sep 9 2001 cabal
root@santonode:~/.local/bin#

Hi!

What is inside .bashrc file? PATH env variable particular

image

image

got the new env variable to persist on login… but still does not find cabal command

try to use full path like /home/user/.local/bin:$PATH to get the full path use pwd command in home directory
and check what is in PATH env variable by echo $PATH

image

still getting -bash cabal: command not found

Ahh ok - so you moved the cabal folder under ~/.local/bin and not the executable…
follow the installation instructions from here:
https://docs.cardano.org/projects/cardano-node/en/latest/getting-started/install.html

ok

  1. I got the cabal binary and was able to update and validate the version
  2. downloaded and configured and installed GHC compiler (Haskell has his own compiler? lol)
    progress… :slight_smile:
1 Like

What version of cadano-node? 1.27.0 ? git tag also lists 1.3 thru 1.9?

1.27.0 is the latest

Got a warning during cabal configure - falling back to older state
hoping this is normal

image

you need to install libsodium package - follow the installation guide.

btw, you dont have to build the node from source - the binaries is also available for Linux:

Now there is a good idea! lol

image
should have done it this way hahaha
ok know I need to learn how to operate this beast!
Thanks for your help :slight_smile:

1 Like

for me it took a complete day to just compile the node with a 4 CPU machine…