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 987 forks source link

Week01: cabal build - Failed to build lzma-0.0.0.3 on Amazon Linux 2 #82

Closed scottexemine closed 2 years ago

scottexemine commented 2 years ago

I am trying to run this on an EC2 instance running Amazon Linux 2. When I ran the cabal build for week 01. I received this error:

`Installing cryptonite-0.27 (lib) Completed cryptonite-0.27 (lib) Installing haskell-src-exts-1.23.1 (lib) Completed haskell-src-exts-1.23.1 (lib)

Failed to build lzma-0.0.0.3. The failure occurred during the configure step. Build log ( /home/ec2-user/.cabal/logs/ghc-8.10.7/lzma-0.0.0.3-b8e5e5271afb9de54972ab2bbbbfe6e55609cefdde55c24b9e9d56d7e4cf3ba8.log ): Configuring library for lzma-0.0.0.3.. cabal-3.6.2.0: Missing dependency on a foreign library:

cabal: Failed to build lzma-0.0.0.3 (which is required by plutus-pioneer-program-week01-0.1.0.0). See the build log above for details.`

scottexemine commented 2 years ago

I solved this by running the following command sudo yum install xz-devel

scottexemine commented 2 years ago

this is now working