develooper Front page | perl.perl6.users | Postings from July 2020

Raku-LibCurl:ver<1.0> install error on older MacOS?

Thread Next
From:
William Michels via perl6-users
Date:
July 11, 2020 02:01
Subject:
Raku-LibCurl:ver<1.0> install error on older MacOS?
Message ID:
CAA99HCyKnwRduK2x0v82XPzzNui=SDAxyQXw6sXfE5DZbimT=Q@mail.gmail.com
Hello,

I just updated to Rakudo-2020.06, and while updating many of my
modules to their latest versions I saw an error installing/updating
(Raku) LibCurl. Below, the first few lines of the error seen with
LibCurl::Easy (and EasyHandle):

===> Testing: LibCurl:ver<1.0>:auth<github:CurtTilmes>:api<1>
[LibCurl] # Failed test 'LibCurl::EasyHandle module can be use-d ok'
[LibCurl] # at t/01-load.t line 6
[LibCurl] # Cannot load native library 'libcurl.so.4'
[LibCurl] # Failed test 'LibCurl::Easy module can be use-d ok'
[LibCurl] # at t/01-load.t line 8
[LibCurl] # ===SORRY!=== Error while compiling
/Users/myuseraccount/.zef/store/raku-libcurl.git/random_40-character-alphanumeric/lib/LibCurl/Easy.rakumod
(LibCurl::Easy)
[LibCurl] # Cannot load native library 'libcurl.so.4'
[LibCurl] # at /Users/myuseraccount/.zef/store/raku-libcurl.git/random_40-character-alphanumeric/lib/LibCurl/Easy.rakumod
(LibCurl::Easy):2

So one caveat is that this install is on an OS which many would
consider to be "MacOS.10.ancient" [I'm posting here and not on Github
because we seem to have a number of Mac users on this mailing-list].
But the fact of the matter is Raku LibCurl:ver<0.9> worked just fine
with Rakudo-2020.02.1. Furthermore, now that I've downgraded back to
Raku LibCurl:ver<0.9>, LibCurl::Easy works once again on the latest
Rakudo-2020.06. So I really feel the problem is with LibCurl:ver<1.0>
on Macs, and not my particular install.

Questions for Mac-heads: Do newer versions of MacOS still install
LibCurl as part of the OS? Where does that reside? I know I have
libcurl in the following directories, however 'libcurl.so.4' is
conspicuously absent:

/opt/local/lib/libcurl.4.dylib
/opt/local/lib/libcurl.a
/opt/local/lib/libcurl.dylib

Are Mac-users able to use (Raku) LibCurl:ver<1.0> on their (newer)
systems? FYI, I've installed curl independently of MacOS via either
MacBrew or MacPorts, and in fact MacBrew reports upon attempting to
update: "Warning: curl 7.71.1 is already installed and up-to-date".

Any help appreciated, Thx, Bill.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About