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
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:
Missing (or bad) header file: lzma.h
Missing (or bad) C library: lzma
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the
library file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
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.`
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.`