Monks-

This place is fantastic, as are the people who contribute! No wonder Perl continues to be my preferred language. I just wanted to describe the final solution that I ended up using, for anyone else who need this help.

Shout outs for:

Ok, here is what worked for me on a Windows 10 box:
  1. Install Strawberry Perl following the label directions

  2. Startup CPAN shell & install Alien::Zstd
    $ perl -MCPAN -e shell cpan> install Alien::Zstd
  3. Once successfully completed, verify the location of the libzstd.a library that was just built
    c:/Strawberry/perl/site/lib/auto/share/dist/Alien-zstd/lib/libzstd.a
  4. Back in CPAN shell, try to install Compress::Stream::Zstd (it should fail)

    cpan> install Compress::Stream::Zstd ... The system cannot find the file specified -or- Cannot find ext/zstd/lib/libzstd.a: No such file or directory -or- Something similar
  5. Figure out where CPAN is building your Compress::Stream::Zstd

    c:/Strawberry/cpan/build/Compress-Stream-Zstd-0.206-0
  6. Copy the Alien::zstd libzstd.a file to where Compress::Stream::Zstd expects it to be:

    $ copy c:/Strawberry/perl/site/lib/auto/share/dist/Alien-zstd/lib/libz +std.a c:/Strawberry/cpan/build/Compress-Stream-Zstd-0.206-0/ext/zstd/ +lib
  7. Go to the CPAN build directory for Compress::Stream::Zstd and finish building by hand:

    $ cd c:/Strawberry/cpan/build/Compress-Stream-Zstd-0.206-0 $ perl ./Build.PL $ ./Build $ ./Build test $ ./Build install
  8. That should complete successfully, and you are now done!

In reply to SOLUTION: How to install Compress::Stream::Zstd in Strawberry Perl? by cmv
in thread How to install Compress::Stream::Zstd in Strawberry Perl? by cmv

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.