Cabal install, executables missing

Hello @devcap ,

it looks like the cardano staking pool documentation is outdated. The cabal install --bindir ~/.local/bin was replaced by --install-method=copy and --installdir=$WORKDIR (with $WORKDIR=~/.local/bin).
A further issue of the documentation is that a build and a install is not necssary as an installation does configure, build and install…

The cabal-install package provides a command line tool named cabal . It uses the Cabal library and provides a user interface to the Cabal/Hackage build automation and package management system. It can build and install both local and remote packages, including dependencies.
Source from hackage.haskell.org

Replace the following:

cabal configure --with-compiler=ghc-8.10.2
echo “package cardano-crypto-praos” >> cabal.project.local
echo " flags: -external-libsodium-vrf" >> cabal.project.local
cabal build all
cabal install all --bindir ~/.local/bin
cp -p dist-newstyle/build/x86_64-linux/ghc-8.10.2/cardano-node-/x/cardano-node/build/cardano-node/cardano-node ~/.local/bin/
cp -p dist-newstyle/build/x86_64-linux/ghc-8.10.2/cardano-cli-/x/cardano-cli/build/cardano-cli/cardano-cli ~/.local/bin/
cardano-cli --version
Source from docs.cardano.org

with:

cabal update \
&& echo “package cardano-crypto-praos” >> cabal.project.local \
&& echo " flags: -external-libsodium-vrf" >> cabal.project.local \
&& cabal install cardano-node cardano-cli --enable-optimization=2 \
–install-method=copy \
–installdir= ~/.local/bin \
&& cardano-cli --version \
&& cardano-node --version;

and it will install without any issues. :v:

1 Like