# Installing a Cardano node

**URL:** <https://forum.cardano.org/t/installing-a-cardano-node/38474>\
**Category:** Setup a Stake Pool\
**Tags:** stake-pool-school\
**Created:** [14 August 2020 13:08 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474 "2020-08-14T13:08:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![HilbertSair](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/hilbertsair/32/21160_2.png) [@HilbertSair](https://forum.cardano.org/u/HilbertSair)\
**Post date:** [14 August 2020 13:08 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/1 "2020-08-14T13:08:07Z")

</div>

Hi,  
I’m trying to build and install a node according to the tutorial.  
After the command `cabal build all` I’m supose to copy the executables files to the .local/bin directory with the command `cp -p dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-node-1.18.0/x/cardano-node/build/cardano-node/cardano-node ~/.local/bin/` which throws an error.  
The problem is that there is no `build` directory in `dist-newstyle`.  
I tried several git tags but I’m a bit lost. does anyone knows which executable files need to be copied to ~/.local.bin and where can I find them ?

---

<div class="post-metadata">

**Author:** ![ADAfrog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adafrog/32/16303_2.png) [@ADAfrog](https://forum.cardano.org/u/ADAfrog)\
**Post date:** [14 August 2020 13:22 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/2 "2020-08-14T13:22:35Z")

</div>

Hello,

Can you please post the output of:

**cardano-node --version**

Thank you!

---

<div class="post-metadata">

**Author:** ![HilbertSair](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/hilbertsair/32/21160_2.png) [@HilbertSair](https://forum.cardano.org/u/HilbertSair)\
**Post date:** [14 August 2020 13:30 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/3 "2020-08-14T13:30:08Z")

</div>

`cardano : command not found`  
The node is not yet installed

---

<div class="post-metadata">

**Author:** ![ADAfrog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adafrog/32/16303_2.png) [@ADAfrog](https://forum.cardano.org/u/ADAfrog)\
**Post date:** [14 August 2020 13:31 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/4 "2020-08-14T13:31:37Z")

</div>

well there you go

look at the output of **cabal build all** , as it appears something failed along the way

from there I will be able to help more

---

<div class="post-metadata">

**Author:** ![HilbertSair](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/hilbertsair/32/21160_2.png) [@HilbertSair](https://forum.cardano.org/u/HilbertSair)\
**Post date:** [14 August 2020 13:41 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/5 "2020-08-14T13:41:44Z")

</div>

Looks like a dependency version problem :  
Warning: Requested index-state2020-04-01T00:00:00Z is newer than ‘[hackage.haskel.org](http://hackage.haskel.org)’! Falling back to the older state (2020-03-31T22:47:49Z)  
Resolving dependencies…  
cabal: Could not resolve dependencies:```

---

<div class="post-metadata">

**Author:** ![ADAfrog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adafrog/32/16303_2.png) [@ADAfrog](https://forum.cardano.org/u/ADAfrog)\
**Post date:** [14 August 2020 13:42 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/6 "2020-08-14T13:42:56Z")

</div>

try running the following:

**cabal clean**  
**cabal update**  
**cabal build all**

build to tag 1.18.0

---

<div class="post-metadata">

**Author:** ![HilbertSair](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/hilbertsair/32/21160_2.png) [@HilbertSair](https://forum.cardano.org/u/HilbertSair)\
**Post date:** [14 August 2020 13:46 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/7 "2020-08-14T13:46:18Z")

</div>

`cabal: unrecognised command clean`  
I have cabal version 3.2.0.0  
This is getting all kinds of messed 🙂

---

<div class="post-metadata">

**Author:** ![ADAfrog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adafrog/32/16303_2.png) [@ADAfrog](https://forum.cardano.org/u/ADAfrog)\
**Post date:** [14 August 2020 13:49 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/8 "2020-08-14T13:49:02Z")

</div>

try running **cabal update** first and see if that works

---

<div class="post-metadata">

**Author:** ![ADAfrog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adafrog/32/16303_2.png) [@ADAfrog](https://forum.cardano.org/u/ADAfrog)\
**Post date:** [14 August 2020 13:50 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/9 "2020-08-14T13:50:50Z")

</div>

and try to see if you can get a clue from the output as to the dependencies that failed from running cabal build all

---

<div class="post-metadata">

**Author:** ![HilbertSair](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/hilbertsair/32/21160_2.png) [@HilbertSair](https://forum.cardano.org/u/HilbertSair)\
**Post date:** [14 August 2020 14:14 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/11 "2020-08-14T14:14:28Z")

</div>

Cabal cleaned, updated and rebuilt but the same problem persists. The path to the executable files is not valid since there are only 2 folders in `cardano-node/dist-newstyle` : `cache` and `scr`

---

<div class="post-metadata">

**Author:** ![ADAfrog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adafrog/32/16303_2.png) [@ADAfrog](https://forum.cardano.org/u/ADAfrog)\
**Post date:** [14 August 2020 14:18 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/12 "2020-08-14T14:18:09Z")

</div>

I would need to see the output of the errors that occurred with cabal build all to further assist

---

<div class="post-metadata">

**Author:** ![HilbertSair](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/hilbertsair/32/21160_2.png) [@HilbertSair](https://forum.cardano.org/u/HilbertSair)\
**Post date:** [14 August 2020 14:22 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/13 "2020-08-14T14:22:04Z")

</div>

![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/c/3/c3c1caea2402c76d2c82823ada340f2b11cfaa4f.png)

---

<div class="post-metadata">

**Author:** ![ADAfrog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adafrog/32/16303_2.png) [@ADAfrog](https://forum.cardano.org/u/ADAfrog)\
**Post date:** [14 August 2020 14:36 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/14 "2020-08-14T14:36:15Z")

</div>

You seem to have an issue with current version of Win32-network package (particularly the version of base within the package).

I’m not sure the process for upgrading the package on a Windows virtual machine, but that’s your issue

Most operators are running on a dedicated linux distribution so that’s where the majority of support will be available

---

<div class="post-metadata">

**Author:** ![HilbertSair](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/hilbertsair/32/21160_2.png) [@HilbertSair](https://forum.cardano.org/u/HilbertSair)\
**Post date:** [14 August 2020 15:03 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/15 "2020-08-14T15:03:06Z")

</div>

Thank you, but the cazy part is that I have a Linux VM. I installed the newest version of Ubuntu on a virtual machine on my old Ubuntu system. No windows involved :).  
Why would cabal try to build a Win32-network pakage on Linux?

---

<div class="post-metadata">

**Author:** ![ADAfrog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adafrog/32/16303_2.png) [@ADAfrog](https://forum.cardano.org/u/ADAfrog)\
**Post date:** [14 August 2020 15:28 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/16 "2020-08-14T15:28:11Z")

</div>

Yeah that is odd - thanks for that info

Ok it looks like it might be the ghc compiler version you are running:

Check this thread:

> [@Win32-network preventing cabal build of caradano-node](https://forum.cardano.org/t/win32-network-preventing-cabal-build-of-caradano-node/36936):
>
> Any idea what could cause this win32-network problem on a debian 10 KVM ? Warning: Requested index-state2020-07-15T00:00:00Z is newer than 'hackage.haskell.org'! Falling back to older state (2020-07-14T22:50:55Z). Resolving dependencies... cabal: Could not resolve dependencies: [\_\_0] trying: Win32-network-0.1.0.0 (user goal) [\_\_1] next goal: base (dependency of Win32-network) [\_\_1] rejecting: base-4.14.0.0/installed-4.14.0.0 (conflict: Win32-network =\> base\>=4.5 && \<4.13) [\_\_1] skipping: base-4…

---

<div class="post-metadata">

**Author:** ![HilbertSair](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/hilbertsair/32/21160_2.png) [@HilbertSair](https://forum.cardano.org/u/HilbertSair)\
**Post date:** [14 August 2020 18:41 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/17 "2020-08-14T18:41:06Z")

</div>

Thank you for the valuable reference. Problem fixed. Cardano-node installed and updated to version 1.18.0  
The problem was indeed the ghc version. My previous installation was the more recent version `ghc-8.10.2` which for some strange reason tries to build a win32-network dependency on debian 10 and fails. I was able to fix the problem by running the comand in the above reference than download and install the older ghc-8.6.5 on `debian9`

---

<div class="post-metadata">

**Author:** ![darezen](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@darezen](https://forum.cardano.org/u/darezen)\
**Post date:** [15 August 2020 16:04 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/18 "2020-08-15T16:04:19Z")

</div>

hi, I’m getting that same error, but am using ghc-8.6.5. During the process, I have have hit the Enter key too soon (and carried on with pasting commands). I ended up with a Cardano-node directory inside the ghc-8.6.5 directory.  
Is there a simple method of starting over?  
I’ve set up a VM on Azure, running Ubuntu Linux 18.04.  
New-ish with linux; been running Windows and Windows servers for work. Just starting in Linux. Thanks for any advice.

---

<div class="post-metadata">

**Author:** ![HilbertSair](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/hilbertsair/32/21160_2.png) [@HilbertSair](https://forum.cardano.org/u/HilbertSair)\
**Post date:** [15 August 2020 19:03 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/19 "2020-08-15T19:03:10Z")

</div>

I’m not an expert either, I’m quite new to devellopement and IT. I can’t think of an easyer way than deleting the ghc folder and starting over. I also noticed that the `ghc-9.6.5` has to be the one for debian 9.  
However before you do that you could try to move the cardano-node directory outside the ghc.

---

<div class="post-metadata">

**Author:** ![S1v-1g5-3h5v](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@S1v-1g5-3h5v](https://forum.cardano.org/u/S1v-1g5-3h5v)\
**Post date:** [17 August 2020 23:16 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/20 "2020-08-17T23:16:51Z")

</div>

I have the same problem. Actually, this will be the second time that I am passing through the process and the last time I didn’t have any problems. Seems that the the build, packagedb and the tmp folders from cardano-node/dist-newstyle/ are missing. Attached screenshot.

 ![Screenshot 2020-08-18 at 00.11.18](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/6/f/6f2fffc75391abb2d4dfee0678bc0a25dfcaf236.png)

---

<div class="post-metadata">

**Author:** ![HilbertSair](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/hilbertsair/32/21160_2.png) [@HilbertSair](https://forum.cardano.org/u/HilbertSair)\
**Post date:** [21 August 2020 09:50 UTC](https://forum.cardano.org/t/installing-a-cardano-node/38474/21 "2020-08-21T09:50:27Z")

</div>

If the ghc-9.6.5 instalation worked without errors, you then need to copy the executables files to the `.local/bin directory` . The path of these file indicated in the couse is not accurate. The absolute path to these fiels is indicated in the last part of the output from the ghc instalation. You can also do a search to find the path to thsese file on your systhem. Once you have the paths for the node and cli executable files you can copy them to `.local/bin directory` .

[Next page](https://forum.cardano.org/t/installing-a-cardano-node/38474.md?page=2)
