Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perl6 installed modules

Tags:

raku

Is there any command in the Perl6 Rakudo distribution which lists all the installed modules on the system?

I tried the following command:

 p6doc NativeCall

and get the following error :

===SORRY!===
Cannot invoke this object (REPR: Uninstantiable)

but when I write a p6 file which contains :

use  NativeCall;

it compiles with no problem.

How can I browse for such a Perl 6 module (like perldoc for Perl 5) and how can I list all the installed Perl 6 modules?

like image 596
smith Avatar asked Jan 26 '16 16:01

smith


1 Answers

The module manager is zef, not p6doc

p6doc ... is meant for managing (searching/displaying) documentation not for managing modules.

zef should already be installed on your system. If not, install it from its github repo.

The error message you got from p6doc suggests something is borked in your installation. I think it's most likely something not worth chasing for another month so I suggest you ignore it for a month, make sure you're running an up-to-date Perl 6 distribution (eg the latest Rakudo Star), and then, if it's still around, consider speaking up about it on #perl6 and mentioning this closed bug report.

Hth.

like image 173
raiph Avatar answered Nov 28 '22 19:11

raiph