-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
I'm not sure if this is a problem with NativeCall
or OpenSSL
but I get the following error when trying out the examples in the README.
Cannot locate native library 'libssl.so': libssl.so: cannot open shared object file: No such file or directory
But as far as I can see, I do have libssl.so
provided by libssl-dev
on debian. What would cause this then?
(ins)13862360000735 gitlab-api - $ cat openssl-test.p6
#!/usr/bin/env perl6
use OpenSSL;
my $ssl = OpenSSL.new(:version(3), :client);
my $host = 'google.com';
my $s = IO::Socket::INET.new(:host, :port(443));
$ssl.set-socket($s);
$ssl.set-connect-state;
$ssl.connect
(ins)13892390000748 gitlab-api - $ perl6 -e 'use OpenSSL'
(ins)13902400000801 gitlab-api - $ perl6 openssl-test.p6
Cannot locate native library 'libssl.so': libssl.so: cannot open shared object file: No such file or directory
in method setup at /usr/share/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) line 289
in method CALL-ME at /usr/share/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) line 576
in method new at /home/unop/.perl6/sources/B2CD7D22415C565B8F3970B6E14983C0C9854FF9 (OpenSSL) line 36
in block <unit> at openssl-test.p6 line 5
Environment info.
(ins)1388238127000742 gitlab-api - $ perl6 -v
This is Rakudo version 2018.01 built on MoarVM version 2018.01
implementing Perl 6.c.
# zef list --installed | grep -i ssl
===> Found via /usr/share/perl6/site
===> Found via /usr/share/perl6
IO::Socket::Async::SSL:ver<0.6.1>
IO::Socket::SSL:ver<0.0.1>:auth<github:sergot>
OpenSSL:ver<0.1.18>:auth<github:sergot>
(ins)13912411000812 gitlab-api - $ dpkg -l | grep -i libssl
ii libssl-dev:amd64 1.1.0f-3+deb9u2 amd64 Secure Sockets Layer toolkit - development files
ii libssl1.0.0:amd64 1.0.1t-1+deb8u6 amd64 Secure Sockets Layer toolkit - shared libraries
ii libssl1.0.2:amd64 1.0.2n-1 amd64 Secure Sockets Layer toolkit - shared libraries
ii libssl1.1:amd64 1.1.0f-3+deb9u2 amd64 Secure Sockets Layer toolkit - shared libraries
(ins)13922420000825 gitlab-api - $ find /usr/ -iname "libssl.so"
/usr/lib/x86_64-linux-gnu/libssl.so
(ins)13932430000853 gitlab-api - $ find /usr/ -iname "libssl.so" -ls
34621883 0 lrwxrwxrwx 1 root root 13 Mar 29 12:51 /usr/lib/x86_64-linux-gnu/libssl.so -> libssl.so.1.1
(ins)13982480001753 gitlab-api - $ cat /etc/ld.so.conf.d/
fakeroot-x86_64-linux-gnu.conf libc.conf x86_64-linux-gnu.conf
(ins)13982480001753 gitlab-api - $ cat /etc/ld.so.conf.d/x86_64-linux-gnu.conf
# Multiarch support
/usr/local/lib/x86_64-linux-gnu
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu
Metadata
Metadata
Assignees
Labels
No labels