Celeb Glow
news | February 27, 2026

cpan: lzma.h not found

I just installed Perl on Windows 10 and I am trying to run a script, that requires Compress::Raw::Lzma package installed.

When I run

cpanm Compress::Raw::Lzma 

I got following error:

Lzma.xs:18:19: fatal error: lzma.h: No such file or directory
compilation terminated.
dmake.exe: Error code 129, while making 'Lzma.o'

How can I miss lzma.h file when I am actually trying to install LZMA? Before this issue, I installed Compress::Raw::Zlib without problems.

Anyway, when I check the debug directory .../.cpanm/work/randomnumber/Compress-Raw-Lzma-2.085, there is indeed Lzma.c file, trying to include lzma.h file, which is, however, not there!

What am I missing?

5 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy