Hi, when I try to set the cabal with ghcup 3.4.0.0 it doesn’t appear, I think is a Path error but I don’t know what I have to do, any help is grateful
Check the bashrc file if u have the lines inside
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
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?
man let’s try something
cd /usr/local
ls -l
share the output
ok, and now
cd ${HOME}/.cabal/
ls -l
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
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
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
What paths should I change to fix it?