user1068: I cloned marlowe-cli from https://github.com/input-output-hk/marlowe-cardano/tree/cli-blog-april2022/marlowe-cli into WSL at /home/{user}
and attempted to install with the command:
cabal install exe:marlowe-cli
The install failed with the following message:
Failed to build lzma-0.0.0.3. The failure occurred during the configure step.
Build log (
/home/johnshearing/.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 exe:marlowe-cli from
marlowe-cli-0.0.4.0). See the build log above for details.
Can someone please tell me what to do?
Thanks

user4413: what OS are you on?
on debian-based distros try installing
sudo apt install liblzma-dev

lzma.h is included in liblzma-dev, so this should solve the missing dependency.
as per
this package search

1068: <p>I cloned marlowe-cli from <a href="https://github.com/input-output-hk/marlowe-cardano/tree/cli-blog-april2022/marlowe-cli" rel="nofollow noreferrer">https://github.com/input-output-hk/marlowe-cardano/tree/cli-blog-april2022/marlowe-cli</a> into WSL at /home/{user}
and attempted to install with the command:<br />
<code>cabal install exe:marlowe-cli</code><br />
The install failed with the following message:
Failed to build lzma-0.0.0.3. The failure occurred during the configure step.
Build log (
/home/johnshearing/.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:</p>
<ul>
<li>Missing (or bad) header file: lzma.h</li>
<li>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 &quot;-dev&quot; 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.</li>
</ul>
<p>cabal: Failed to build lzma-0.0.0.3 (which is required by exe:marlowe-cli from
marlowe-cli-0.0.4.0). See the build log above for details.</p>
<p>Can someone please tell me what to do?
Thanks</p>
 4413: <p>what OS are you on?
on debian-based distros try installing</p>
<pre><code>sudo apt install liblzma-dev
</code></pre>
<p>lzma.h is included in liblzma-dev, so this should solve the missing dependency.</p>
<p>as per</p>
<p><a href="https://packages.ubuntu.com/search?searchon=contents&amp;keywords=lzma.h&amp;mode=exactfilename&amp;suite=jammy&amp;arch=any" rel="nofollow noreferrer">this package search</a></p>
