|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: How to install Compress::Stream::Zstd in Strawberry Perl?by syphilis (Archbishop) |
| on Mar 05, 2025 at 00:15 UTC ( [id://11164146]=note: print w/replies, xml ) | Need Help?? |
|
I'm asking for help installing Compress::Stream::Zstd in Strawberry Perl on a windows 10 box. Here is a process that worked for me on Windows 11 with StrawberryPerl-5.40.1. But it relies on MSYS2 being installed. 1. Download and unpack the Compress-Stream-Zstd source from https://cpan.metacpan.org/authors/id/P/PM/PMQS/Compress-Stream-Zstd-0.206.tar.gz 2. In the MSYS2 shell, cd to the Compress-Stream-Zstd-0.206/ext/zstd folder. 3. In the MSYS2 shell, insert Strawberry Perl compiler at the end of the PATH (as my MSYS2 installation doesn't include a compiler package). For me, that was: 4. In the MSYS2 shell, run "make CC=gcc": 5. When that has finished, open a Windows cmd.exe shell that is set up to run Strawberry Perl, and cd to the Compress-Stream-Zstd-0.206 folder into which the tar.gz file was unpacked and run, in order: There might be other ways to achieve success. (Maybe use Cygwin instead of MSYS2 ?) Perhaps, simply plonking a satisfactory libzstd.a in the ext/zstd/lib folder is all that's needed for step "5." to work. If your MSYS2 installation has a compiler package, then you won't need step "3.". UPDATE: In fact, just plonking a suitable libzstd.a into the ext/zstd/lib folder is apparently all that's needed. With that done, it's simply a matter of executing step "5." Post (or /msg) me an email address, and I'll send the libzstd.a file (1.07 MB) over, and you can try for yourself. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||