<p>Ok.. got it figured out. It was path related. Make sure to add /home/xxx/.ghcup/bin to your path.. it needs to be prepended on the path to make sure you are picking up the correct version PATH=/home/xxx/.ghcup/bin:$PATH</p>

CC BY-SA 4.0
2021-09-05T18:13:18.900Z
2021-09-05T18:13:18.900Z
Dino Anastos
<p>I followed the Linux tutorial at</p>
<p><a href="https://developers.cardano.org/docs/get-started/installing-cardano-node" rel="nofollow noreferrer">https://developers.cardano.org/docs/get-started/installing-cardano-node</a></p>
<p>and I am getting the following error when I run <code>cabal build all</code></p>
<pre><code>Unrecognized stanza on line 139
/home/xxx/.cabal/config: Unrecognized field installdir on line 116
Warning: Unknown/unsupported 'ghc' version detected (Cabal 2.4.0.1 supports
'ghc' version &lt; 8.7): /home/xxx/.ghcup/bin/ghc-8.10.4 is version 8.10.4
cabal: No cabal file found.
Please create a package description file &lt;pkgname&gt;.cabal
xxx@MSI:~/cardano-src/cardano-node$ echo &quot;package cardano-crypto-praos&quot; &gt;&gt;  cabal.project.local
echo &quot; xxx@MSI:~/cardano-src/cardano-node$ echo &quot;  flags: -external-libsodium-vrf&quot; &gt;&gt;  cabal.project.local
danastos@MSI:~/cardano-src/cardano-node$ cabal build all
Warning: The build command is a part of the legacy v1 style of cabal usage.

Please switch to using either the new project style and the new-build command
or the legacy v1-build alias as new-style projects will become the default in
the next version of cabal-install. Please file a bug if you cannot replicate a
working v1- use case with the new-style commands.

For more information, see: https://wiki.haskell.org/Cabal/NewBuild

Warning: /home/xxx/.cabal/config: Unrecognized stanza on line 139
/home/xxx/.cabal/config: Unrecognized field installdir on line 116
cabal: No cabal file found.
Please create a package description file &lt;pkgname&gt;.cabal
xxx@MSI:~/cardano-src/cardano-node$
</code></pre>
<p>What am I supposed to do here?</p>

CC BY-SA 4.0
2021-09-02T16:04:51.787Z
With distribution of GNU+Linux are you using? Which version of `cabal` are you using? Did you use `ghcup` to install the latest version of `ghc`? Did you `cd` in the `cardano-src` folder (the `No cabal file found` tells me you're not in the correct folder). 

In your question, it would be very helpful if you could describe every step you took until it breaks and show the terminal outputs for each step.
kolam
CC BY-SA 4.0
2021-09-02T16:16:00.183Z
I am in the cardano-node folder and I have

cabal-install version 2.4.0.0

I have The Glorious Glasgow Haskell Compilation System, version 8.6.5 for GHC
Dino Anastos
CC BY-SA 4.0
2021-09-02T16:19:24.023Z
I followed this exactly:

I am operating under WSL Windows 10

https://developers.cardano.org/docs/get-started/installing-cardano-node
Dino Anastos
CC BY-SA 4.0
2021-09-02T16:52:02.050Z
The tutorial says to install a more recent version of GHC with `ghcup install ghc 8.10.4` and `ghcup set ghc 8.10.4`. Did you do that?
kolam
CC BY-SA 4.0
2021-09-02T18:35:10.537Z
I have version 8.6.5 set

I enter set ghc 8.10.4 but it still shows 8.6.5 ( ghc --version )

It also says GHC ver 8.10.4 already installed;
Dino Anastos
CC BY-SA 4.0
2021-09-02T18:40:59.697Z
https://imgur.com/a/RQf88bN
Dino Anastos
CC BY-SA 4.0
2021-09-02T18:41:12.623Z
thats a screen shot of the version
Dino Anastos
CC BY-SA 4.0
2021-09-02T18:45:04.470Z
The docs say that the command to switch GHC version is `ghcup set ghc 8.10.4`. You forgot the `ghcup`.
kolam
CC BY-SA 4.0
2021-09-02T22:40:38.853Z
Same error

https://imgur.com/a/sqwowMo
Dino Anastos
CC BY-SA 4.0
2021-09-02T22:42:23.650Z
the GHC version also still remain 8.6.5... that didnt change
Dino Anastos
CC BY-SA 4.0
2021-09-02T23:38:34.913Z
https://imgur.com/a/ZAlT0Tb
Dino Anastos
CC BY-SA 4.0
2021-09-02T23:39:06.130Z
I unisntalled it and reinstalled it and still get the same 8.6.5 version... it wont go to 8.10.4
Dino Anastos
CC BY-SA 4.0
2021-09-02T23:50:55.897Z
Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/129223/discussion-between-kolam-and-dino-anastos).
kolam
<cardano-node>
How do i resolve this cabal error for cardano-node install?
# How do i resolve this cabal error for cardano-node install?

(Asked by: username_0 on 2021-09-02)

I followed the Linux tutorial at
https://developers.cardano.org/docs/get-started/installing-cardano-node
and I am getting the following error when I run cabal build all
Unrecognized stanza on line 139
/home/xxx/.cabal/config: Unrecognized field installdir on line 116
Warning: Unknown/unsupported 'ghc' version detected (Cabal 2.4.0.1 supports
'ghc' version < 8.7): /home/xxx/.ghcup/bin/ghc-8.10.4 is version 8.10.4
cabal: No cabal file found.
Please create a package description file .cabal
xxx@MSI:~/cardano-src/cardano-node$ echo "package cardano-crypto-praos" >>  cabal.project.local
echo " xxx@MSI:~/cardano-src/cardano-node$ echo "  flags: -external-libsodium-vrf" >>  cabal.project.local
danastos@MSI:~/cardano-src/cardano-node$ cabal build all
Warning: The build command is a part of the legacy v1 style of cabal usage.

Please switch to using either the new project style and the new-build command
or the legacy v1-build alias as new-style projects will become the default in
the next version of cabal-install. Please file a bug if you cannot replicate a
working v1- use case with the new-style commands.

For more information, see: https://wiki.haskell.org/Cabal/NewBuild

Warning: /home/xxx/.cabal/config: Unrecognized stanza on line 139
/home/xxx/.cabal/config: Unrecognized field installdir on line 116
cabal: No cabal file found.
Please create a package description file .cabal
xxx@MSI:~/cardano-src/cardano-node$

What am I supposed to do here?

**Tags:** cardano-node
> **Comments:**
> **username_1**: With distribution of GNU+Linux are you using? Which version of `cabal` are you using? Did you use `ghcup` to install the latest version of `ghc`? Did you `cd` in the `cardano-src` folder (the `No cabal file found` tells me you're not in the correct folder).   In your question, it would be very helpful if you could describe every step you took until it breaks and show the terminal outputs for each step.  
> **username_0**: I am in the cardano-node folder and I have  cabal-install version 2.4.0.0  I have The Glorious Glasgow Haskell Compilation System, version 8.6.5 for GHC  
> **username_0**: I followed this exactly:  I am operating under WSL Windows 10  https://developers.cardano.org/docs/get-started/installing-cardano-node  
> **username_1**: The tutorial says to install a more recent version of GHC with `ghcup install ghc 8.10.4` and `ghcup set ghc 8.10.4`. Did you do that?  
> **username_0**: I have version 8.6.5 set  I enter set ghc 8.10.4 but it still shows 8.6.5 ( ghc --version )  It also says GHC ver 8.10.4 already installed;  
> **username_0**: https://imgur.com/a/RQf88bN  
> **username_0**: thats a screen shot of the version  
> **username_1**: The docs say that the command to switch GHC version is `ghcup set ghc 8.10.4`. You forgot the `ghcup`.  
> **username_0**: Same error  https://imgur.com/a/sqwowMo  
> **username_0**: the GHC version also still remain 8.6.5... that didnt change  
> **username_0**: https://imgur.com/a/ZAlT0Tb  
> **username_0**: I unisntalled it and reinstalled it and still get the same 8.6.5 version... it wont go to 8.10.4  
> **username_1**: Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/129223/discussion-between-kolam-and-dino-anastos).  

---

## 1 answers

### Answer by username_0 on 2021-09-05. Score: 0

Ok.. got it figured out. It was path related. Make sure to add /home/xxx/.ghcup/bin to your path.. it needs to be prepended on the path to make sure you are picking up the correct version PATH=/home/xxx/.ghcup/bin:$PATH


---

