Ghcup cabal version error

cabal error 2

keep giving me error

u are using cntools?

I think not, is necessary?

nope, just wanted to know what to provide you because there are more guides when u start building a node

try

STEP 2 - Make sure to have at least ghc 8.10.4 and cabal 3.4.0.0

ghcup upgrade
ghcup install ghc 8.10.4
ghcup set ghc 8.10.4
ghc --version
ghcup install cabal 3.4.0.0
ghcup set cabal 3.4.0.0
cabal --version
cabal update

I made all of that, I have ghc 8.10.4 and I installed cabal 3.4.0.0 and set cabal 3.4.0.0 but when I check the version still appears 3.2.0.0 version

check this topic and also I will sugest to clean (keep only the right ones) the exports line from bashrc file (nano $HOME/.bashrc)

I have been trying everything, but version 3.2.0.0 continues to appear, I have changed the paths as indicated but the same thing continues to appear, I am not understanding very well where the path should go, I have the cabal 3.6.1.0 folder that I downloaded manually from The cabal page, on the other hand, there is what ghcup has downloaded, version 3.4.0.0, from what I see there are two paths, the library and the config, I suppose that both will represent the versions of cabal and the library, but to which directory or file should the path go? Is this the cabal path to select the versions, or is it ghcup?

cabal error 3

man let’s try something
cd /usr/local
ls -l

share the output

error cabal 4

ok, and now

cd ${HOME}/.cabal/
ls -l

error cabal 5

so, u have the old bin file on usr/local and it perhaps this is the reasson

try to cd /usr/local
mv bin bin_old

now check again cabal version

error cabal 6

When I cabal --version without sudo su still give me 3.2.0.0

try this command

. "${HOME}/.bashrc"

now check again cabal version

it’s not clear for me which guide did u followed to install the node…

type cd $CNODE_HOME

ls -l

error cabal 7

then go back to cd /usr/local and rename the bin_old back to bin
mv bin_old bin and I believe your issue is related with the export paths

error cabal 8

What paths should I change to fix it?

Try

cd ~/.local/bin/

ls -l

error cabal 9