rakudobrew | Perl 6 installation manager
kandi X-RAY | rakudobrew Summary
kandi X-RAY | rakudobrew Summary
Rakudobrew helps to build one or more versions of Rakudo and quickly switch between them. It's a perlbrew and plenv look alike and supports both flavours of commands. Rakudobrew can work by modifying $PATH in place (which is a more down to the metal) as well as with shims (which enables advanced features, such as local versions).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rakudobrew
rakudobrew Key Features
rakudobrew Examples and Code Snippets
Community Discussions
Trending Discussions on rakudobrew
QUESTION
zef search includes :$update
as a named argument:
ANSWER
Answered 2019-May-05 at 09:08If I run this MAIN
candidate by itself, it works:
QUESTION
Is it possible to manage multiple versions of Perl 6 using rakudobrew
?
I tried:
...ANSWER
Answered 2018-May-29 at 12:37moar
is a backend. To get a specific Rakduo version, you have to specify it as well:
QUESTION
When I start a new project in Comma, it pops up the version I am going to use. Instead of allowing me to select from every version in my rakudobrew list, there's a single option, which is not the one I have selected on the command line. When I run a script, it does not find the modules that are already installed. So how can I
- Change the version of Perl 6 it's using for the current project? Or else
- How can I install the module it's not finding from Comma IDE?
I can of course get out of comma, change the global Rakudo version, install the module, and then go back to whichever I'm using, but I was wondering how to do that from Comma itself.
...ANSWER
Answered 2019-Aug-03 at 11:19- To change Perl 6 SDK for the project you go to
File -> Project Settings
and select project's SDK. Usually it suggests you to choose from not SDKs available from rakudobrew, but one available in yourPATH
(global, possibly not configured by rakudobrew for this particular shell). So it looks like Perl 6 you have in PATH is not the one that you use from the command line, so the modules are not available. Clicking on
New -> Perl 6 SDK
in Project Settings you can manually specify a path to a Perl 6bin
directory you want to have as an SDK, so for rakudobrew you should specify e.g./home/$user/.rakudobrew/versions/moar-2019.07/install/bin
directory. If it will be the same location you have inwhich perl6
in your command line where you install modules, it should work.Right now Comma does not do things related to package management, though this feature is planned.
QUESTION
I'd like to upgrade to the newest version of Perl6,
...ANSWER
Answered 2019-Aug-13 at 09:11Your connection problem is not really anything to do with any P6 related software, or in fact any software you're using. It is, as you say, "just a simple connection failure". And most such failures are transient and "fix themselves". As JJ notes, in such scenarios you just wait and then things start working again.
So by the time you read this it'll probably be working for you again without you having fixed anything. But I'm writing an answer anyway with these sections:
Consider not using
rakudobrew
Connection problems that "fix themselves"
Connection problems you investigate or fix yourself
Getting around single points of failure
rakudobrew
The main purpose of rakudobrew is to support installation of many versions of Rakudo simultaneously and the main audience for the tool is folk hacking on the Rakudo compiler, not those merely using it.
If you're just a regular user, not someone developing the Rakudo compiler and/or don't need to have multiple versions of Rakudo, with complete source code, installed simultaneously, then consider just downloading and installing Rakudo files directly, eg. via rakudo.org/files, rather than via rakudobrew
.
rakudobrew failed because a git clone ...
command failed because the connection with the github.com server timed out.
A server timing out when doing something that usually works using a connection that usually works is likely a transient problem, aka a "please try later" problem.
Transient problems typically "fix themselves" a few seconds, minutes or hours later.
If there's still a problem when you try again, and you want to spend time trying to find out what's going on officially, then look for a status page for that server.
Here are two status pages I know of for github.com:
And for unofficial scuttlebutt I suggest reading the twitter feed.
For me, right now, github.com is working fine and the status page says all systems are go.
So it should now be working for you too.
If it's not, then you can wait longer, or investigate. It you want to investigate, start by looking at the status pages above.
Connection problems you investigate or fix yourselfIf github claims it's working fine then there's presumably a problem with your local internet "on-ramp" (your system or your internet service provider's) or somewhere further afield between your on-ramp and the server you're failing to connect to. (You can only know approximately where the server is based on which region of the world administers the IP address the server is associated with at any given moment.)
The next place to look will be places like the internet traffic report; this indicates traffic jams and the like across the planet. (Ignore the visual display, which is broken on some browsers, and click on the links in the table to drill down.)
If it's all green between you and the region that administers the IP address of the server you're failing to connect to, then the next place to turn would be your system's administrator and/or ISP.
Failing that, then perhaps you can ask a question at a sister stackexchange site like serverfault.com or superuser.com.
Getting around single points of failurePerhaps you were thinking there might be some system redundancy and/or you're interested in that aspect.
P5's ecosystem and its tools are generally mature and limit spofs. This is unlike the ecosystems and tools of most of the other languages out there; so if you've gotten used to the remarkable reliability/availability of CPAN due to its avoidance of spofs, and by extension perlbrew, well, you've been spoiled by P5.
The P6 ecosystem/tool combinations are evolving in the P5 tradition.
For example, the zef
package manager automatically connects to CPAN alongside github, and is built to be able to connect to other repos. The ecosystem is partway there to take advantage of this zef
capability in that many modules are redundantly hosted on both CPAN and github.
rakudobrew ignores CPAN and assumes use of git repos. It is impressively configurable via its Variables.pm file which includes a %git_repos
variable, which could be re-targeted to an alternative git repo site like gitlab. But no one has, to my knowledge, arranged to redundantly copy and update the relevant rakudo files to another git repo site, so this spof-avoidance ability apparently inherent in rakudobrew's code is, afaik, moot for now.
QUESTION
I've installed the DBIish on my macOS v10.13 (High Sierra):
...ANSWER
Answered 2017-Oct-15 at 17:34You are missing the $ on the host parameter to connect.
QUESTION
I don't understand this behavior:
...ANSWER
Answered 2018-Jan-28 at 17:35The key observation is that sort
doesn't actually return a list:
QUESTION
I'm trying to create some classes in the repl and when I create a second class with the same attributes as the first class I'm told it's already defined.
Is this a simply a problem with the repl not handling namespaces correctly? It works as expected in a file.
Perl6 version: This is Rakudo version 2018.10 built on MoarVM version 2018.10 implementing Perl 6.c.
...ANSWER
Answered 2018-Dec-24 at 12:59I just tried to replicate this slightly differently on my REPL, I get no error...
QUESTION
I would like to convert the following from perl5 to perl6,
...ANSWER
Answered 2018-Nov-18 at 23:48As ikegami says in a comment to your question, you really should use a Buf
, which is basically a “string” of bytes.
QUESTION
I installed Perl6 with rakudobrew
and wanded to browse the installed files to see a list of hex-filenames in ~/.rakudobrew/moar-2018.08/install/share/perl6/site/sources
as well as ~/.rakudobrew/moar-2018.08/install/share/perl6/sources/
.
E.g.
...ANSWER
Answered 2018-Oct-02 at 13:19In Perl 6, the mechanism for loading modules and caching their compilations is pluggable. Rakudo Perl 6 comes with two main mechanisms for this.
One is a file-system based repository, and it's used with things like -Ilib
. This resolves modules simply using paths on disk. Whenever a module loaded, it first has to check that the modules sources have not changed in order to re-compile them if so. This is ideal for development, however such checks take time. Furthermore, this doesn't allow for having multiple versions of the same module available and picking the one matching the specification in the use
statement. Again, ideal for development, when you just want it to use your latest changes, but less so for installation of modules from the ecosystem.
The other is an installation repository. Here, specific versions of modules are installed and precompiled. It is expected that all interactions with such a repository will be done through the API or tools using the API (for example, zef locate Some::Module
). It's assumed that once a specific version of a module has been installed, then it is immutable. Thus, no checks need to be done against source, and it can go straight to loaded the compiled version of the module.
Thus, the installation repository is not intended for direct human consumption. The SHA-1s are primarily an implementation convenience; an alternative scheme could have been used in return for a bit more effort (and may well be used in the future). However, the SHA-1s do also create the appearance of something that wasn't intended for direct manipulation - which is indeed the case: editing a source file in there will have no effect in the immediate, and probably confusing effects next time the compiler is upgraded to a new version.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rakudobrew
On Windows CMD do:
On Windows PowerShell do:
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page