Cli 1.18.1 error Could not find module: Shelley.Spec.Ledger.Bench.Gen

hi,

i just tried to go to 1.18.1 on a test box and got the following crash:

cabal: Error: Could not find module: Shelley.Spec.Ledger.Bench.Gen with any
suffix: [“gc”,“chs”,“hsc”,“x”,“y”,“ly”,“cpphs”,“hs”,“lhs”,“hsig”,“lhsig”]. If
the module is autogenerated it should be added to ‘autogen-modules’.

any ideas??
thanks!

1 Like

This is a known bug I hit earlier today when trying to upgrade using cabal install …

use the following:

cabal clean
cabal update
cabal build all

cp -p dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-node-1.18.1/x/cardano-node/build/cardano-node/cardano-node ~/.local/bin/

cp -p dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-cli-1.18.1/x/cardano-cli/build/cardano-cli/cardano-cli ~/.local/bin/

here is a link to the github issue for reference: [BUG] - cabal install fails for 1.19.0 · Issue #1675 · input-output-hk/cardano-node · GitHub

3 Likes

thanks ADAfrog!

I’ll give it a shot…

2 Likes

:facepunch: :frog:

2 Likes

worked great!

1 Like