memix
1
Receiving the below error on a new 20.4 ubuntu install when executing any cabal commands.
cabal --version
-bash: /home/node/.local/bin/cabal: cannot execute binary file: Exec format error
.bashrc
/home/node/.local/bin:/home/node/.local/bin:/home/node/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
any ideas?
memix
2
which cabal
/home/node/.local/bin/cabal
memix
3
got it with a hat tip to Raph_Cardano. I installed the wrong arch type
$ file /home/node/.local/bin/cabal
Aarch64
$ arch
x86_x64
rm /home/node/.local/bin/cabal
mv cabal ~/.local/bin/
cabal --version
cabal-install version 3.4.0.0
compiled using version 3.4.0.0 of the Cabal library
simple mistake.
1 Like
Hello, I’m having the same problem but don’t quite understand the solution.
I have the same version as you, but how do I install the correct one?
Thanks,
T