Questions tagged [zef]

zef is the module management application that Raku uses.

zef, included in the Rakudo Star releases of Raku, is the module management application that takes care of downloading, resolving dependencies and testing Raku modules.

zef install One::Module

will search for the module, download it as well as all needed dependencies, test and install it if testing succeeds.

It includes many other commands for module management.

28 questions
6
votes
1 answer

How to install only test dependencies with Zef

zef has a --deps-only flag for the install subcommand to install only the dependencies of a modules. zef install --deps-only . This installs all the modules referenced in the depends object in META6.json. Is there a similar flag to install all the…
Tyil
  • 1,797
  • 9
  • 14
6
votes
1 answer

Forcing installation order using zef

Lately, installing LWP::Simple requires the prior installation of IO::Socket::SSL, as is shown in this Travis log. However, there does not seem to be a way of forcing zef to install them in that particular order. The only way I can think of is to…
jjmerelo
  • 22,578
  • 8
  • 40
  • 86
5
votes
1 answer

"No single root directory found, all dists must extract to a single directory" error when trying to upload module to zef via App::Mi6

Getting a weird error I've never seen before while trying to upload a new module to zef using the App::Mi6 mi6 release command: ==> Step 9. UploadToZef Are you sure you want to upload Directory-0.0.1.tar.gz to Zef ecosystem? (y/N) y Executing…
StevieD
  • 6,925
  • 2
  • 25
  • 45
5
votes
1 answer

Any way to easily ensure zef is pulling latest versions of raku modules?

I recently filed an issue here about zef downloading a stale version of a module, NativeHelpers::Callback which was failing when I tried to install it with zef install NativeHelpers::Callback. I had to clone the module to my local machine from…
StevieD
  • 6,925
  • 2
  • 25
  • 45
5
votes
1 answer

Raku: Installation of Termbox on Windows

Installation of the Raku module «Termbox» module fails on windows: Powershell> zef install Termbox Failed to find dependencies: python:from. I have installed Python (v3) on the pc, but that does not help. Is it possible to fix this, so that…
Arne Sommer
  • 570
  • 2
  • 8
5
votes
2 answers

Raku: Installation of Gnome::Gtk3 on Windows

I am trying to install the Raku module «Gnome::Gtk3» module on a Windows pc, without success. Powershell> zef install Gnome::Gtk3 This fails with a lot of "Cannot locate native library"-messages. I have installed Raku with choco, along with git.…
Arne Sommer
  • 570
  • 2
  • 8
5
votes
0 answers

How to get the version of a module

I'm trying to implement the --version option of my module, but I do not know how to access META6.json file. Any idea how to this? I could copy to resources dir but that's LTA.
Antonio Gamiz Delgado
  • 1,871
  • 1
  • 12
  • 33
5
votes
2 answers

How to edit the source code in module after installed it using zef?

For example, I've installed the Cro module, when I run my simple code: my %headers = {Authorization => OAuth realm="", oauth_consumer_key="xxxxxxxxxxxxxxxx", oauth_nonce="29515362", oauth_signature="KojMlteEAHlYjMcLc6LFiOwRnJ8%3D",…
chenyf
  • 5,048
  • 1
  • 12
  • 35
4
votes
1 answer

"zef test ." returning a different result than running some tests with raku -Ilib

I really can't figure this out. Clearly, zef performs some kind of arrangement and precompilation of modules, but in this case it's really critical, since it simply seems to be using a different version of the code. For instance, running one of the…
jjmerelo
  • 22,578
  • 8
  • 40
  • 86
4
votes
1 answer

'zef --verbose install Inline::Perl5' , install fails. I get ' t/p5_object_destructor.t (Wstat: 512 Tests: 20 Failed: 2)'

Using Linux Mint 19.1(Ubuntu based distro). All other Inline::Perl5 tests pass but install fails because t/p5_object_destructor.t fails. zef install works on another module so problem is specific to this module test. This is a new Raku installation,…
keegjk1
  • 41
  • 1
4
votes
2 answers

How to calculate a module's dist hash

I have Raku installed in ~/.rakudo-star/rakudo-star-2018.04, using LoneStar. When zef installs a module, it gets installed into a subdirectory of the Rakudo directory. In here is a directory named perl6/site/resources, which seem to hold all the…
Tyil
  • 1,797
  • 9
  • 14
3
votes
2 answers

Cannot install Readline with Rakudo Perl 6 zef

I'm trying to install Readline. (The system is Linux Mint Mate 18.3, the same is true for Lubuntu 17.10). $ zef install Readline The installation process begins but later is aborted with the following messages: ===> Searching for: Readline ===>…
Eugene Barsky
  • 5,780
  • 3
  • 17
  • 40
2
votes
0 answers

zef has failed to install Inline::Perl5 on Cygwin

I was trying to install zef install Inline::Perl5 but it gives errors. How can I fix it ?
user2925716
  • 949
  • 1
  • 6
  • 13
1
2