Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

How to install Net::SSLeay with perlbrew on a Mac?

by karlgoethebier (Abbot)
on Jul 28, 2021 at 13:24 UTC ( [id://11135431]=perlquestion: print w/replies, xml ) Need Help??

karlgoethebier has asked for the wisdom of the Perl Monks concerning the following question:

I have no idea. I read the README.OSX from the package and this.

I’m afraid that i will break my installation. Any hints? Best regard, Karl

Update:

Here is what i really wanted:

package main import "C" import "fmt" func main() {} //export Yaph func Yaph () { fmt.Println("Every day I get in the queue..."); }
go build -o yaph.so -buildmode=c-shared
#!/usr/bin/env perl use strict; use warnings; use FFI::Platypus; use feature qw ( say ); say $0; my $ffi = FFI::Platypus->new( api => 1 ); $ffi->lib('./yaph.so'); $ffi->attach(Yaph => []); Yaph(); __END__

And it works! Great expectations.

«The Crux of the Biscuit is the Apostrophe»

Replies are listed 'Best First'.
Re: How to install Net::SSLeay with perlbrew on a Mac?
by stevieb (Canon) on Jul 28, 2021 at 15:58 UTC

    I'm headed to my other property later today where I've got my Mac, so I'll be glad to test things out, but I'd need to know specifically what you're afraid of breaking so I can ensure I've got as similar environment as possible.

      Hi stevieb, thanks for your kind reply.

      Here is what happens when i fire up cpanm:

      And here is this bloody log:

      In the thread on crackoverflow i linked to someone made some strange suggestions how to change the environment etc. And even brian_d_foy had no idea except RTFM.

      Making changes to my beloved Perl environment just because of guessing i consider as harmful.

      Probably it is so that i miss something essential. Or I have overseen something which is totally obvious. I don't know and have no plan.

      The background is that i wanted to install FFI::Platypus which for some reasons that i don't understand yet requires Net::SSLeay.

      Thanks for any hint and advice.

      Best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

        I think hippo might be right, that Net::SSLeay isn't necessary. Observe:

        steve@cecilia ~/scratch $ perl -v This is perl 5, version 34, subversion 0 (v5.34.0) built for darwin-2l +evel

        cpanm FFI::Platypus output:

        steve@cecilia ~/scratch $ cpanm FFI::Platypus --> Working on FFI::Platypus Fetching http://www.cpan.org/authors/id/P/PL/PLICEASE/FFI-Platypus-1.5 +3.tar.gz ... OK Configuring FFI-Platypus-1.53 ... OK ==> Found dependencies: FFI::CheckLib, Alien::FFI, Test2::V0 ... snipped for brevity ... Successfully installed FFI-Platypus-1.53 16 distributions installed

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-03-28 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found