Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: FFI::Platypus; trouble finding non-standard, but present, libs

by swl (Parson)
on Oct 30, 2019 at 10:43 UTC ( [id://11108113]=note: print w/replies, xml ) Need Help??


in reply to Re^2: FFI::Platypus; trouble finding non-standard, but present, libs
in thread [Solved] FFI::Platypus; trouble finding non-standard, but present, libs

Works for me under Ubuntu (via Windows Subsystem for Linux).

It might be worth checking if the file name matches the search criteria used by FFI::CheckLib. The system uses these regexps (edit - on Mac, which I assume you're using)):

qr{^lib(.*?)\.so(?:\.([0-9]+(?:\.[0-9]+)*))?$} qr{^lib(.*?)(?:\.([0-9]+(?:\.[0-9]+)*))?\.(?:dylib|bundle)$}

(see https://metacpan.org/release/FFI-CheckLib/source/lib/FFI/CheckLib.pm#L50 and https://metacpan.org/release/FFI-CheckLib/source/lib/FFI/CheckLib.pm#L70).

  • Comment on Re^3: FFI::Platypus; trouble finding non-standard, but present, libs
  • Download Code

Replies are listed 'Best First'.
Re^4: FFI::Platypus; trouble finding non-standard, but present, libs
by Your Mother (Archbishop) on Oct 30, 2019 at 16:37 UTC

    When you say it works, do you mean you have DCMTK installed and that worked? I have no trouble with FFI::CheckLib finding standard stuff like xml2 or jpeg or archive. I will look at the regexes versus the lib files too, thanks for suggesting it.

      Yes, I installed DCMTK using apt-get, the built perl 5.30.0 using perlbrew, installed FFI::CheckLib, and ran your test code.

      But now I see you've solved the issue by updating the regex. It's probably worth reporting to the maintainer. https://github.com/Perl5-FFI/FFI-CheckLib/issues/.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found