input-output-hk / plutus-pioneer-program

This repository hosts the lectures of the Plutus Pioneers Program. This program is a training course that the IOG Education Team provides to recruit and train software developers in Plutus, the native smart contract language for the Cardano ecosystem.
1.39k stars 981 forks source link

Unable to build EnglishAuction.hs #34

Closed Vivek205 closed 3 years ago

Vivek205 commented 3 years ago

When I run cabal build in the folder code/week01/src/Week01 I'm facing the error below:

image

The tag in my cabal.project file is ea0ca4e9f9821a9dbfc5255fa0f42b6f2b3887c4.

I tried checking out git checkout ea0ca4e9f9821a9dbfc5255fa0f42b6f2b3887c4 but I'm getting error with that as well. image

Vivek205 commented 3 years ago
Warning: Requested index-state 2021-06-10T00:00:00Z is newer than
'hackage.haskell.org'! Falling back to older state (2021-06-09T23:01:39Z).
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] next goal: cardano-crypto-class (user goal)
[__0] rejecting: cardano-crypto-class-2.0.0 (conflict: pkg-config package
libsodium-any, not found in the pkg-config database)
[__0] fail (backjumping, conflict set: cardano-crypto-class)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: cardano-crypto-class
rc9575 commented 3 years ago

try the version fix in plutus-pioneer-program-week01.cabal as outlined here: https://github.com/input-output-hk/plutus-pioneer-program/issues/6#issuecomment-824198901 and then run cabal update. Then try cabal build again

Vivek205 commented 3 years ago

@rc9575 It worked. Thanks for the support.