Skip to content

Commit

Permalink
Fix install instruction
Browse files Browse the repository at this point in the history
The old command gives

cabal: installdir is not defined. Set it in your cabal config file or use
--installdir=<path>
  • Loading branch information
cblp committed Feb 4, 2021
1 parent c4efd43 commit 768008f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/getting-started/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Build the node and CLI with `cabal`:

Install the newly built node and CLI commands:

cabal install all --bindir ~/.local/bin
cabal install all --installdir ~/.local/bin

If this doesn't work, you can manually copy the executable files to the `~/.local/bin` directory. Replace the place holder `<TAGGED VERSION>` with your targeted version:

Expand Down

1 comment on commit 768008f

@tigrpoolcom
Copy link

@tigrpoolcom tigrpoolcom commented on 768008f Feb 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @cblp ,

thanks for adding that. In my tests it didn't work with just the installdir command.
Also doing a build and then an install (which is: config, build and install) is misleading and a waste of time.
See also forum.cardano.org.

My proposal is the following much cleaner version:

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 \
--with-compiler=ghc-8.10.2 \
&& cardano-cli --version \
&& cardano-node --version;

You should also be able to add the install command (--with-compiler=ghc-8.10.2).
2021-02-05_14h55_42

Please sign in to comment.