Building Cardano SL from source


#1

I am trying to build Cardano SL from source based on this doc :slight_smile:https://github.com/input-output-hk/cardano-sl/blob/develop/docs/how-to/build-cardano-sl-and-daedalus-from-source-code.md

all goes fine until I get to this cmd:
[~/cardano-sl]$ ./scripts/build/cardano-sl.sh

I end up getting this error which I have not been able to find a way to resolve:
Configuring lzma-conduit-1.1.3.3…
Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe: Missing dependency on a foreign
library:
* Missing (or bad) header file: lzma.h
* Missing C library: lzma

any clue can help!
Thanks in advance.
Sima


#2

hmm I did not run into that issue. could try manually downloading and installing that ‘C library Izma’, maybe your computer’s environment is different than the guy who made the tutorial. would have to look up Izma.

this guy Raha says he already has Izma and he’s getting your error still. DAEDALUS plugin system wish I could help more


#3

figured it out!
lzma was installed(sudo cabal install lzma) but I had to run this as well: sudo apt-get install liblizma-dev
this did it! yes! :smiley: moving on


#4

may i ask what linux flavor do you use to build it?


#5

a VM on my windows machine with latest ubuntu on it


#6

If that’s the case you may be interested in [Video tutorial] Building Daedalus/Cardano-SL on Ubuntu


#7

I have created an alpine-based docker image for cardano-sl node. You can start a cardano-sl node with only one command! Please have a try here: https://github.com/sharkspeed/cardano-sl-alpine :grin:


#8

@SebastienGllmt seems like this file is private and I dont have permission to access this file.
I get this:
image


#9

coool, ill give a try soon. thanks :slight_smile:


#10

Do you known how to run the cardano-sl node in dev mode with a wallet and some ADA on it (to test transaction and other things via API)?