# Build and run Cardano-SL

**URL:** <https://forum.cardano.org/t/build-and-run-cardano-sl/11881>\
**Category:** Developers\
**Created:** [17 May 2018 16:55 UTC](https://forum.cardano.org/t/build-and-run-cardano-sl/11881 "2018-05-17T16:55:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MARTIN\_SMITH](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/martin_smith/32/2719_2.png) [@MARTIN\_SMITH](https://forum.cardano.org/u/MARTIN_SMITH)\
**Post date:** [17 May 2018 16:55 UTC](https://forum.cardano.org/t/build-and-run-cardano-sl/11881/1 "2018-05-17T16:55:21Z")

</div>

The official document seems to no longer be current - this worked for me.

Brand new Ubuntu 16.04 installation:

git clone [https://github.com/input-output-hk/cardano-sl.git](https://github.com/input-output-hk/cardano-sl.git)  
cd cardano-sl/  
git checkout master  
curl [https://nixos.org/nix/install](https://nixos.org/nix/install) | sh

sudo vi /etc/nix/nix.conf  
and add these lines;  
binary-caches = [https://cache.nixos.org](https://cache.nixos.org) [https://hydra.iohk.io](https://hydra.iohk.io)  
binary-cache-public-keys = [hydra.iohk.io](http://hydra.iohk.io):f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=

nix-build -A cardano-sl-tools --cores 0 --max-jobs 2 --no-build-output --out-link master  
nix-build -A connectScripts.mainnetWallet -o connect-to-mainnet

and run:  
./connect-to-mainnet

---

<div class="post-metadata">

**Author:** ![alanz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alanz/32/4511_2.png) [@alanz](https://forum.cardano.org/u/alanz)\
**Post date:** [17 May 2018 18:42 UTC](https://forum.cardano.org/t/build-and-run-cardano-sl/11881/2 "2018-05-17T18:42:23Z")

</div>

It works for me, once I changed

> [@MARTIN\_SMITH](#):
>
> nix-build -A cardano-sl-tool --cores 0 --max-jobs 2 --no-build-output --out-link master

to  
nix-build -A cardano-sl-tools --cores 0 --max-jobs 2 --no-build-output --out-link master

i.e. an `s` was missing from the target.

---

<div class="post-metadata">

**Author:** ![MARTIN\_SMITH](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/martin_smith/32/2719_2.png) [@MARTIN\_SMITH](https://forum.cardano.org/u/MARTIN_SMITH)\
**Post date:** [17 May 2018 21:00 UTC](https://forum.cardano.org/t/build-and-run-cardano-sl/11881/3 "2018-05-17T21:00:14Z")

</div>

sry, cut’n’paste
