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
11
votes
2 answers

How to use a wrapper script for a Raku CLI

I am wondering what steps, (such as shebang lines and wrapper scripts) are recommended when creating a CLI application in Raku. I am interested in info both for scripts that will be installed with Zef and those that will be distributed…
codesections
  • 8,900
  • 16
  • 50
10
votes
1 answer

Relative path inside a module

I have this module which needs a specific file to work. You can pass the path of the file you want to use or not. If you don't, then a default file is taken. That default file is located at the resources folder, so I typed the path as:…
Antonio Gamiz Delgado
  • 1,871
  • 1
  • 12
  • 33
10
votes
2 answers

How can I rebuild an edited Raku module that I've downloaded?

I've installed Time::Duration and it failed most of its tests. I want to be able to rebuild the module - with my edits - from the locally stored module. I edited the file that contains the module (that corresponds to…
MorayJ
  • 537
  • 2
  • 8
9
votes
0 answers

How to read the docs with rakudoc?

I just installed rakudoc with zef. But it doesn't seem to find any doc. $ rakudoc --version /home/user/.raku/bin/rakudoc :auth:api<1>:ver<0.2.6> $ rakudoc -b $ rakudoc Map No results for 'Map' My operating system is Fedora 38. Zef and…
9
votes
2 answers

Error install Inline::Perl5 with Zef (Raku)

I'm trying to install Raku on a Debian 11 x64. I never installed it before (perl5 too) It's a server with some Perl5 scripts, and I want to "use" it in Raku with the Inline::Perl5 (also I want to use Perl5 Module if I don't find what I want in Raku…
8
votes
1 answer

Updating a module in the Raku Ecosystem

It's been a while since I last updated one of my modules in the Raku ecosystem. Do I need to update a central registry file/repo or will the update be automatically detected?
user2145475
  • 657
  • 3
  • 11
8
votes
1 answer

Zef fails to install JSON::Fast when running in Travis with Docker

I am using this docker container to build exercism.io exercises with Travis. My .travis.yml is below: language: - minimal services: - docker install: - docker pull jjmerelo/test-perl6 script: docker run -t --entrypoint="/bin/sh" -v…
8
votes
1 answer

Does zef recognize and handle pre-release modules?

I have a module App::Assixt, to which I've recently made a relatively large change. I've of course tested it on my local system, but would like to give it some field testing before calling it a "stable release". Is there a way to "tag" this release…
Tyil
  • 1,797
  • 9
  • 14
7
votes
2 answers

How to parse a Module name canonically

I have a regex that parses a string that should be a fully qualified module name for Raku (see below). Since only the auth, ver, and api versions seem to be used in the Precomp modules, I only test for those. I need to separate out the name of the…
Richard Hainsworth
  • 1,585
  • 7
  • 9
7
votes
2 answers

How can I add an external, third-party dependency to a perl6 project?

Either I've missed it or there's no clear information about that topic. Where should I look for Perl 6 libraries? CPAN.org? Or only http://modules.perl6.org? When I've chosen one, how can I add it to my Perl 6 project? If I find it on GitHub, how…
user266003
6
votes
1 answer

Cannot locate SDL2.dll in Rakudo

Recently I've been trying to learn the Raku language, and I tried to make a simple Snake Game. The code starts with this : use SDL2::Raw; use Cairo; But when I compile using rakudo raku.raku, I get this error : Cannot locate native library…
8nt
  • 61
  • 2
6
votes
1 answer

Error using zef to install Twitter module

I'm using zef to install the Twitter module with zef install Twitter I'm getting the following error: Enabled fetching backends [git path curl wget] don't understand git://github.com/raku-community-modules/Twitter You may need to configure one of…
MorayJ
  • 537
  • 2
  • 8
6
votes
1 answer

How to hack on installed perl6 module source?

I'd like to be able to view and make changes to the source code of installed (via zef) perl6 modules. How can I do that? On my system, the module sources are under ~/.perl6/sources/ and there's also some kind of metadata file about the modules in…
cowbaymoo
  • 1,202
  • 5
  • 14
6
votes
1 answer

Zef can't install depends

when I install Cro::HTTP::Client zef install Cro::HTTP::Client It failed with Could not find Crypt::Random::Extra, does this relate to cache? ===> Searching for: Cro::HTTP::Client ===> Testing: Cro::HTTP:ver<0.8.0> ===> Testing [OK] for…
chenyf
  • 5,048
  • 1
  • 12
  • 35
6
votes
1 answer

How to prevent the perl compiler from changing the name of dynamic link library

I'm making a perl6 package which contains some c source files that will be compiled into a dynamic link library. I found that the name of the library, such as libperl.so, will be changed into something like "A858A3D6EC5363B3D3F59B1.so" after "zef…
lovetomato
  • 903
  • 5
  • 11
1
2