Re: I cannot install any lib with Zef

2020-07-21 Thread William Michels via perl6-users
Hello Aureliano,

What happens if you try either of the lines below (without the quotes
or version number):

$ zef install Digest::SHA256::Native
$ zef upgrade Digest::SHA256::Native

Additionally, we may need some more information from you--specifically
which operating system you're on. I recently solved a Mac-specific
issue with LibCurl thanks to a timely update from Curt Tilmes. If
you're interested, the LibCurl issue is below, and also I've included
a link to a long discussion/issue below from the zef Github repo on how zef
finds native libraries, see:

https://github.com/CurtTilmes/raku-libcurl/issues/16
https://github.com/ugexe/zef/issues/356

Other than that, you may need to open an issue with the
Digest::SHA256::Native module's author, at the Github repo below:

https://github.com/bduggan/p6-digest-sha256-native

HTH, Bill.



On Mon, Jul 20, 2020 at 11:15 AM Aureliano Guedes
 wrote:
>
> Thanks, I checked it out.
> now it is working
>
> But now I'm getting issues to install  zef install Jupyter::Kernel, the issue 
> itself is on Digest::SHA256::Native:ver<0.03> installation.
>
> $ zef install "Digest::SHA256::Native:ver<0.03>" --force-build --force-test
>>
>> ===> Searching for: Digest::SHA256::Native:ver<0.03>
>> ===> Building: Digest::SHA256::Native:ver<0.03>
>> [Digest::SHA256::Native] /usr/bin/ld: cannot find -lffi
>> [Digest::SHA256::Native] /usr/bin/ld: cannot find -ltommath
>> [Digest::SHA256::Native] /usr/bin/ld: cannot find -latomic_ops
>> [Digest::SHA256::Native] /usr/bin/ld: cannot find -luv
>> [Digest::SHA256::Native] collect2: error: ld returned 1 exit status
>> [Digest::SHA256::Native] make: *** 
>> [/home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so]
>>  Error 1
>> [Digest::SHA256::Native] The spawned command 'make' exited unsuccessfully 
>> (exit code: 2)
>> [Digest::SHA256::Native]   in method build at 
>> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/Build.pm
>>  line 14
>> [Digest::SHA256::Native]   in block  at -e line 1
>> ===> Building [FAIL]: Digest::SHA256::Native:ver<0.03>
>> [Digest::SHA256::Native] Failed to build, but continuing with --force-build
>> ===> Testing: Digest::SHA256::Native:ver<0.03>
>> [Digest::SHA256::Native] Cannot locate native library 
>> '/home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so':
>>  
>> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so:
>>  cannot open shared object file: No such file or directory
>> [Digest::SHA256::Native]   in method setup at 
>> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) 
>> line 290
>> [Digest::SHA256::Native]   in method CALL-ME at 
>> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) 
>> line 577
>> [Digest::SHA256::Native]   in sub sha256-hex at 
>> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/lib/Digest/SHA256/Native.pm6
>>  (Digest::SHA256::Native) line 19
>> [Digest::SHA256::Native]   in sub sha256-hex at 
>> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/lib/Digest/SHA256/Native.pm6
>>  (Digest::SHA256::Native) line 9
>> [Digest::SHA256::Native]   in block  at t/01-basic.t line 6
>> [Digest::SHA256::Native] Cannot locate native library 
>> '/home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so':
>>  
>> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so:
>>  cannot open shared object file: No such file or directory
>> [Digest::SHA256::Native]   in method setup at 
>> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) 
>> line 290
>> [Digest::SHA256::Native]   in method CALL-ME at 
>> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) 
>> line 577
>> [Digest::SHA256::Native]   in sub sha256-hex at 
>> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/lib/Digest/SHA256/Native.pm6
>>  (Digest::SHA256::Native) line 19
>> [Digest::SHA256::Native]   in block  at t/02-blob.t line 7
>> [Digest::SHA256::Native] Cannot locate native library 
>> '/home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so':
>>  
>> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so:
>>  cannot open shared object file: No such file or directory
>> [Digest::SHA256::Native]   in method setup at 
>> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) 
>> line 290
>> [Digest::SHA256::Native]   in method CALL-ME at 
>> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) 
>> 

Re: I cannot install any lib with Zef

2020-07-21 Thread Timo Paulssen
I would assume the ffi, tommath, atomic_ops, and uv linker flags come
straight from moarvm's linker flags, probably because the build script
of Digest::SHA256::Native uses the flags used to compile moarvm itself.
If you've compiled your moarvm yourself, this is a safe bet; these
libraries are guaranteed to exist unless you've uninstalled them in the
mean time. If you get the stuff from a package instead, that's not quite
as sensible …

On 20/07/2020 20:15, Aureliano Guedes wrote:
> Thanks, I checked it out. 
> now it is working
>
> But now I'm getting issues to install  zef install Jupyter::Kernel,
> the issue itself is on Digest::SHA256::Native:ver<0.03> installation.
>
> $ zef install "Digest::SHA256::Native:ver<0.03>" --force-build
> --force-test
>
> ===> Searching for: Digest::SHA256::Native:ver<0.03>
> ===> Building: Digest::SHA256::Native:ver<0.03>
> [Digest::SHA256::Native] /usr/bin/ld: cannot find -lffi
> [Digest::SHA256::Native] /usr/bin/ld: cannot find -ltommath
> [Digest::SHA256::Native] /usr/bin/ld: cannot find -latomic_ops
> [Digest::SHA256::Native] /usr/bin/ld: cannot find -luv
> [Digest::SHA256::Native] collect2: error: ld returned 1 exit status
> [Digest::SHA256::Native] make: ***
> 
> [/home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so]
> Error 1
> [Digest::SHA256::Native] The spawned command 'make' exited
> unsuccessfully (exit code: 2)
> [Digest::SHA256::Native]   in method build at
> 
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/Build.pm
> line 14
> [Digest::SHA256::Native]   in block  at -e line 1
> ===> Building [FAIL]: Digest::SHA256::Native:ver<0.03>
> [Digest::SHA256::Native] Failed to build, but continuing with
> --force-build
> ===> Testing: Digest::SHA256::Native:ver<0.03>
> [Digest::SHA256::Native] Cannot locate native library
> 
> '/home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so':
> 
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so:
> cannot open shared object file: No such file or directory
> [Digest::SHA256::Native]   in method setup at
> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03
> (NativeCall) line 290
> [Digest::SHA256::Native]   in method CALL-ME at
> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03
> (NativeCall) line 577
> [Digest::SHA256::Native]   in sub sha256-hex at
> 
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/lib/Digest/SHA256/Native.pm6
> (Digest::SHA256::Native) line 19
> [Digest::SHA256::Native]   in sub sha256-hex at
> 
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/lib/Digest/SHA256/Native.pm6
> (Digest::SHA256::Native) line 9
> [Digest::SHA256::Native]   in block  at t/01-basic.t line 6
> [Digest::SHA256::Native] Cannot locate native library
> 
> '/home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so':
> 
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so:
> cannot open shared object file: No such file or directory
> [Digest::SHA256::Native]   in method setup at
> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03
> (NativeCall) line 290
> [Digest::SHA256::Native]   in method CALL-ME at
> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03
> (NativeCall) line 577
> [Digest::SHA256::Native]   in sub sha256-hex at
> 
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/lib/Digest/SHA256/Native.pm6
> (Digest::SHA256::Native) line 19
> [Digest::SHA256::Native]   in block  at t/02-blob.t line 7
> [Digest::SHA256::Native] Cannot locate native library
> 
> '/home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so':
> 
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so:
> cannot open shared object file: No such file or directory
> [Digest::SHA256::Native]   in method setup at
> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03
> (NativeCall) line 290
> [Digest::SHA256::Native]   in method CALL-ME at
> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03
> (NativeCall) line 577
> [Digest::SHA256::Native]   in sub sha256-hex at
> 
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/lib/Digest/SHA256/Native.pm6
> (Digest::SHA256::Native) line 19
> 

Re: I cannot install any lib with Zef

2020-07-20 Thread Aureliano Guedes
Thanks, I checked it out.
now it is working

But now I'm getting issues to install  zef install Jupyter::Kernel, the
issue itself is on Digest::SHA256::Native:ver<0.03> installation.

$ zef install "Digest::SHA256::Native:ver<0.03>" --force-build --force-test

> ===> Searching for: Digest::SHA256::Native:ver<0.03>
> ===> Building: Digest::SHA256::Native:ver<0.03>
> [Digest::SHA256::Native] /usr/bin/ld: cannot find -lffi
> [Digest::SHA256::Native] /usr/bin/ld: cannot find -ltommath
> [Digest::SHA256::Native] /usr/bin/ld: cannot find -latomic_ops
> [Digest::SHA256::Native] /usr/bin/ld: cannot find -luv
> [Digest::SHA256::Native] collect2: error: ld returned 1 exit status
> [Digest::SHA256::Native] make: ***
> [/home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so]
> Error 1
> [Digest::SHA256::Native] The spawned command 'make' exited unsuccessfully
> (exit code: 2)
> [Digest::SHA256::Native]   in method build at
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/Build.pm
> line 14
> [Digest::SHA256::Native]   in block  at -e line 1
> ===> Building [FAIL]: Digest::SHA256::Native:ver<0.03>
> [Digest::SHA256::Native] Failed to build, but continuing with --force-build
> ===> Testing: Digest::SHA256::Native:ver<0.03>
> [Digest::SHA256::Native] Cannot locate native library
> '/home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so':
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so:
> cannot open shared object file: No such file or directory
> [Digest::SHA256::Native]   in method setup at
> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03
> (NativeCall) line 290
> [Digest::SHA256::Native]   in method CALL-ME at
> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03
> (NativeCall) line 577
> [Digest::SHA256::Native]   in sub sha256-hex at
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/lib/Digest/SHA256/Native.pm6
> (Digest::SHA256::Native) line 19
> [Digest::SHA256::Native]   in sub sha256-hex at
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/lib/Digest/SHA256/Native.pm6
> (Digest::SHA256::Native) line 9
> [Digest::SHA256::Native]   in block  at t/01-basic.t line 6
> [Digest::SHA256::Native] Cannot locate native library
> '/home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so':
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so:
> cannot open shared object file: No such file or directory
> [Digest::SHA256::Native]   in method setup at
> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03
> (NativeCall) line 290
> [Digest::SHA256::Native]   in method CALL-ME at
> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03
> (NativeCall) line 577
> [Digest::SHA256::Native]   in sub sha256-hex at
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/lib/Digest/SHA256/Native.pm6
> (Digest::SHA256::Native) line 19
> [Digest::SHA256::Native]   in block  at t/02-blob.t line 7
> [Digest::SHA256::Native] Cannot locate native library
> '/home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so':
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so:
> cannot open shared object file: No such file or directory
> [Digest::SHA256::Native]   in method setup at
> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03
> (NativeCall) line 290
> [Digest::SHA256::Native]   in method CALL-ME at
> /usr/lib/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03
> (NativeCall) line 577
> [Digest::SHA256::Native]   in sub sha256-hex at
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/lib/Digest/SHA256/Native.pm6
> (Digest::SHA256::Native) line 19
> [Digest::SHA256::Native]   in sub sha256-hex at
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/lib/Digest/SHA256/Native.pm6
> (Digest::SHA256::Native) line 9
> [Digest::SHA256::Native]   in sub sha256 at
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/lib/Digest/SHA256/Native.pm6
> (Digest::SHA256::Native) line 27
> [Digest::SHA256::Native]   in block  at t/03-sha256.t line 6
> [Digest::SHA256::Native] Cannot locate native library
> '/home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so':
> /home/acpguedes/.zef/store/Digest-SHA256-Native-0.03.tar.gz/Digest-SHA256-Native-0.03/resources/libraries/libsha256.so:
> cannot open shared object file: No such file or 

Re: I cannot install any lib with Zef

2020-07-20 Thread JJ Merelo
El lun., 20 jul. 2020 a las 18:03, Aureliano Guedes (<
guedes.aureli...@gmail.com>) escribió:

> Hi all,
>
> I'm trying to figure out why I cannot install any package with zef.
>
> $ raku --version
> This is Rakudo version 2020.06 built on MoarVM version 2020.06
> implementing Raku 6.d.
>
> zef install Acme::Insult::Lala
> ===SORRY!===
> No candidate found for 'zef' that match your criteria.
> Did you perhaps mean one of these?
>   Distribution | Author(ity) | Version
>| |
>| |
>| |
>| |
>

This error does not seem to correspond to the command line... It's as if
you were looking for zef. That happens when you don't have an updated
version of the tool and the repos and nothing downloaded locally.  My hunch
is that you might have an old version of zef; failing that, the repo index
must be corrupted somehow. In any case, install zef (not using zef, but
reinstalling it from repos or with rakudobrew) and you will fix it.

>

-- 
JJ


I cannot install any lib with Zef

2020-07-20 Thread Aureliano Guedes
Hi all,

I'm trying to figure out why I cannot install any package with zef.

$ raku --version
This is Rakudo version 2020.06 built on MoarVM version 2020.06
implementing Raku 6.d.

zef install Acme::Insult::Lala
===SORRY!===
No candidate found for 'zef' that match your criteria.
Did you perhaps mean one of these?
  Distribution | Author(ity) | Version
   | |
   | |
   | |
   | |

I tried to install another package from https://modules.raku.org/ and I get
nothing.


I'm using Ubuntu 18.04.


Any suggestions?

Thanks in advance
-- 
Aureliano Guedes
skype: aureliano.guedes
contato:  (11) 94292-6110
whatsapp +5511942926110