input-output-hk / cardano-sl

Cryptographic currency implementing Ouroboros PoS protocol
Apache License 2.0
3.77k stars 630 forks source link

build cardano-sl accur error #4234

Open liangjisheng opened 5 years ago

liangjisheng commented 5 years ago

when i nix-build -A cardano-node --out-link master error: attribute 'cardano-node' in selection path 'cardano-node' not found how i resolve this error?

astudnev commented 5 years ago

The same issue,

/cardano-sl-3.0.3$ nix-build -A cardano-sl-node-static --out-link master error: attribute 'cardano-sl-node-static' in selection path 'cardano-sl-node-static' not found

nix-build -A cardano-sl-node --out-link master error: attribute 'cardano-sl-node' in selection path 'cardano-sl-node' not found

charry1729 commented 4 years ago

same issue ! can any one hellp !

guribe94 commented 4 years ago

Same issue on Ubuntu 18.04 when trying to build using stack only. stack.yaml does seem to exist in my top level dir

erikd commented 4 years ago

Nowhere near enough information here. What git tag/branch/hash are you on? What command are you running?

i3bitcoin commented 4 years ago

@guribe94 @charry1729

Try building with stack 1.9.3.

Remove stack if you already installed it

Removing ~/.stack and /usr/local/bin/stack should be sufficient. You may want to delete .stack-work folders in any Haskell projects that you have built.

sudo apt-get update sudo apt-get install libssl-dev liblzma-dev libtinfo-dev libsystemd-dev librocksdb-dev

wget -O stack.sh https://get.haskellstack.org/ nano stack.sh

Replace STACK_VERSION="2.1.3" to STACK_VERSION="1.9.3" and then install stack

./stack.sh

git clone https://github.com/input-output-hk/cardano-sl.git cd cardano-sl git checkout 3.2.0 ./scripts/build/cardano-sl.sh node

cardano-node will be installed to ./.stack-work/install/x86_64-linux/lts-12.26/8.4.4/bin/