Cabal 3.0.0.0

Hi, I am following the “the stakepool school”. After ‘Download, unpack, install and update Cabal’, it keeps showing me Cabal version 2.4.01 and not Cabal version 3. In the end I decided to follow the next steps, but after downloading the cardano node, the command ‘cabal build all’ gives an error.

Thanks in advance for all the help.

Did you installed cabal first?

As the Cardano node is using cabal , so let’s install it as well. We will use the recommended version 3.2.0.0 and install to our local bin folder ( .local/bin )

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/

You should now have cabal installed in your ~/.local/bin/ folder, now we just have to make sure, that the system also can find the cabal bin(executive) file, so let’s make sure, that the system knows where to look. Let’s add this information in our user profile file (.bashrc), reload it (using source command), and check if we see our ~/.local/bin/ folder in the list.

Source:

https://cardano-node-installation.stakepool247.eu/cardano-node-prerequisites

Thank you Alex, this is exactly what I did, but cabal --version keeps giving me version 2.4.

Are u sure you did everything right?

Try this:

The forum software here converted the quotes into text-quotes! So be carefull with the commands !!!

sudo apt-get -y curl install python3 build-essential pkg-config libffi-dev libgmp-dev libssl-dev libtinfo-dev systemd libsystemd-dev libsodium-dev zlib1g-dev yarn make g++ jq libncursesw5 libtool autoconf git tmux htop nload
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"

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/

echo “export PATH=~/.local/bin:$PATH” >> ~/.bashrc
source ~/.bashrc
echo $PATH

cabal update
cabal --version

Thank you, I will install a second instance and pay extra attention to the syntac

Hi Alex, I tried it again and saw that cabal3 is installed. However with ls -all, I don’t see it. Also not in the local/bin. Maybe it did not move? Below what I got. Thanks again for your help.

zebie@Zebie2:~$ wget https://downloads.haskell.org/~cabal/cabal-install-3.2.0.0/cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz
–2020-12-13 19:49:33-- https://downloads.haskell.org/~cabal/cabal-install-3.2.0.0/cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz
Resolving downloads.haskell.org (downloads.haskell.org)… 151.101.37.175, 2a04:4e42:9::431
Connecting to downloads.haskell.org (downloads.haskell.org)|151.101.37.175|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 4363200 (4,2M) [application/octet-stream]
Saving to: ‘cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz’

cabal-install-3.2.0 100%[===================>] 4,16M 5,03MB/s in 0,8s

2020-12-13 19:49:34 (5,03 MB/s) - ‘cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz’ saved [4363200/4363200]

zebie@Zebie2:~ tar -xf cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz zebie@Zebie2:~ rm cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz cabal.sig
zebie@Zebie2:~ mkdir -p ~/.local/bin zebie@Zebie2:~ mv cabal ~/.local/bin/
zebie@Zebie2:~$ ls -all
total 92
drwxr-xr-x 15 zebie zebie 4096 dec 13 19:49 .
drwxr-xr-x 3 root root 4096 dec 13 13:12 …
-rw------- 1 zebie zebie 83 dec 13 19:37 .bash_history
-rw-r–r-- 1 zebie zebie 220 dec 13 13:12 .bash_logout
-rw-r–r-- 1 zebie zebie 3771 dec 13 13:12 .bashrc
drwxr-xr-x 11 zebie zebie 4096 dec 13 13:30 .cache
drwx------ 11 zebie zebie 4096 dec 13 19:44 .config
drwxr-xr-x 2 zebie zebie 4096 dec 13 13:24 Desktop
drwxr-xr-x 2 zebie zebie 4096 dec 13 13:24 Documents
drwxr-xr-x 2 zebie zebie 4096 dec 13 13:24 Downloads
drwx------ 3 zebie zebie 4096 dec 13 19:43 .gnupg
drwxr-xr-x 4 zebie zebie 4096 dec 13 19:49 .local
drwxr-xr-x 2 zebie zebie 4096 dec 13 13:24 Music
drwxr-xr-x 2 zebie zebie 4096 dec 13 13:24 Pictures
-rw-r–r-- 1 zebie zebie 807 dec 13 13:12 .profile
drwxr-xr-x 2 zebie zebie 4096 dec 13 13:24 Public
drwx------ 2 zebie zebie 4096 dec 13 13:26 .ssh
-rw-r–r-- 1 zebie zebie 0 dec 13 13:43 .sudo_as_admin_successful
drwxr-xr-x 2 zebie zebie 4096 dec 13 13:24 Templates
-rw-r----- 1 zebie zebie 5 dec 13 19:42 .vboxclient-clipboard.pid
-rw-r----- 1 zebie zebie 6 dec 13 19:42 .vboxclient-display-svga-x11.pid
-rw-r----- 1 zebie zebie 5 dec 13 19:42 .vboxclient-draganddrop.pid
-rw-r----- 1 zebie zebie 5 dec 13 19:42 .vboxclient-seamless.pid
drwxr-xr-x 2 zebie zebie 4096 dec 13 13:24 Videos

And this is the PATH
zebie@Zebie2:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

Also these lines where configured?

echo “export PATH=~/.local/bin:$PATH” >> ~/.bashrc
source ~/.bashrc
echo $PATH

cabal update
cabal --version

If the version is ok then should be fine…

Unfortunately, this is what I get:

zebie@Zebie2:~$ cabal update

Command ‘cabal’ not found, but can be installed with:

sudo apt install cabal-install

cd ~/.local/bin

Is cabal here?

zebie@Zebie2:~ cd ~/.local/bin zebie@Zebie2:~/.local/bin ls -all
total 32104
drwxrwxr-x 2 zebie zebie 4096 dec 13 19:49 .
drwxr-xr-x 4 zebie zebie 4096 dec 13 19:49 …
-rwxr-xr-x 1 zebie zebie 32865168 apr 2 2020 cabal

Ok… type cabal --version
Is ok the version?

ebie@Zebie2:~$ cabal --version

Command ‘cabal’ not found, but can be installed with:

sudo apt install cabal-install

same if I do it from local/bin

Did you configured?

echo “export PATH=~/.local/bin:$PATH” >> ~/.bashrc
source ~/.bashrc
echo $PATH

But it seems to be installed, yes?

Saving to: ‘cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz’

cabal-install-3.2.0 100%[===================>] 4,16M 5,03MB/s in 0,8s

2020-12-13 19:49:34 (5,03 MB/s) - ‘cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz’ saved [4363200/4363200]

yes, I did that

Than continue and build the node

Try
cd ~$

and type again the commands for cabal update and version

yes! version 3.2.0.0 Thanks again Alex. Super appreciate it (I had to wait for 3 hours before they allowed me to reply. Assuming this is my first day on the forum. Member since August 20, but okay.)

1 Like