Created
December 30, 2020 10:44
-
-
Save shroomist/2b261d3cc8784c0df743787e8ce12a01 to your computer and use it in GitHub Desktop.
rpi-cardano-build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://oleg.fi/cabal-install-3.4.0.0-rc3/cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar.xz | |
wget https://downloads.haskell.org/ghc/8.10.2/ghc-8.10.2-aarch64-deb10-linux.tar.xz | |
tar -xf cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar.xz | |
mkdir -p ~/.local/bin | |
mv cabal ~/.local/bin/ | |
export PATH="$HOME/.local/bin:$PATH" | |
sudo apt-get install libnuma | |
~/.local/bin/cabal update | |
rm cabal-install-3.4.0.0-aarch64-ubuntu-18.04.tar.xz | |
tar -xf ghc-8.10.2-aarch64-deb10-linux.tar.xz | |
cd ghc-8.10.2 | |
./configure | |
sudo make install | |
git clone https://github.com/input-output-hk/cardano-node.git | |
cd cardano-node | |
git fetch --all --recurse-submodules --tags | |
git checkout tags/1.24.2 | |
cabal configure --with-compiler=ghc-8.10.2 | |
echo "package cardano-crypto-praos" >> cabal.project.local | |
echo " flags: -external-libsodium-vrf" >> cabal.project.local | |
sudo apt-get install clang-9 llvm-9 llvm-9-dev llvm-9-tools | |
sudo apt-get install libnuma-dev | |
export PATH=/usr/lib/llvm-9/bin:$PATH | |
export CPLUS_INCLUDE_PATH=$(llvm-config --includedir):$CPLUS_INCLUDE_PATH | |
export LD_LIBRARY_PATH=$(llvm-config --libdir):$LD_LIBRARY_PATH | |
cabal build all | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With the release candidate build of cabal this works great! Full disclosure that I didn't follow this entire process as I got a good chunk of the way on my own but I was getting stuck with errors around llvm not being installed when running the build. Your lines 31 - 33 fixed that for me. Many thanks!
Heads up for anyone trying this... this took about 6 hours to build but it's working great now that it has!