Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: How to install Compress::Stream::Zstd in Strawberry Perl?

by Anonymous Monk
on Mar 04, 2025 at 20:45 UTC ( [id://11164143]=note: print w/replies, xml ) Need Help??


in reply to How to install Compress::Stream::Zstd in Strawberry Perl?

FWIW, the last time I tried (2022 it was, c/p-ing now from a script), I gave up, and, to decompress:

my $in = ...; my $out; my @cmd = qw/zstd.exe -d -/; IPC::Run3::run3 \@cmd, \$in, \$out, \undef, { binmode_stdin => ':raw', + binmode_stdout => ':raw' };

HTH ;)

Replies are listed 'Best First'.
Re^2: How to install Compress::Stream::Zstd in Strawberry Perl?
by cmv (Chaplain) on Mar 04, 2025 at 23:01 UTC
    Yes, this will be my backup plan.

    However, I was able to get the module successfully installed and working on my development machine (Mac-Mini). Hmmm...

    A search for the missing windows 10 library reveals the following on the Mac (with checksums):

    54918 702 ~/.cpan/build/Compress-Zstd-0.20-0/ext/zstd/lib/libzstd.a 14207 788 ~/.cpan/build/Compress-Stream-Zstd-0.206-0/ext/zstd/lib/obj/ +conf_bd2d977386eb0c0c4c6c1128107e0a49/static/libzstd.a 14207 788 ~/.cpan/build/Compress-Stream-Zstd-0.206-0/ext/zstd/lib/libz +std.a 47868 821 /opt/homebrew/Cellar/zstd/1.5.2/lib/libzstd.a
    Clearly I first used homebrew to download the zstd command, but I don't know if CPAN was smart enough to find libzstd.a there and use that one. Since the checksums are different I'm guessing that CPAN built its own libzstd.a.

    So then why didn't windows build its own libzstd.a as well??

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11164143]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2025-05-23 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.