How to get Perl 6 now
Installation on Linux, OSX
On Linux and Mac the easiest way to get Perl 6 is with rakudobrew. You’ll need the typical software development tools like
make. On OSX Apple’s Command Line Tools app provides most of these and is easy to install. On Linux they’re available via the package manager. Once you have the prerequisite tools installed, you can install rakudobrew via the terminal:
$ git clone https://github.com/tadzik/rakudobrew ~/.rakudobrew $ export PATH=~/.rakudobrew/bin:$PATH $ rakudobrew build moar $ rakudobrew build panda
This will install
panda the Perl 6 package manager.
Installation on Windows
On Windows it’s a different story. I was unable to get rakudobrew to work on Windows, which is a shame as it’s such a convenient tool. If you’re feeling adventurous, you can build your own Perl 6 with Visual Studio. Sinan Unur has blogged about building panda with the same toolset.
Alternatively you can use the latest Rakudo Star distribution which comes with a convenient
.msi installer. Unfortunately the most recent Rakudo Star distribution is from September, so you won’t benefit from the last 3 months of updates to Perl 6 (a new version should be available soon). If you’ve installed Rakudo Star, you’ll need to add the Perl 6 binaries to your path. You can do that using
> SETX PATH "%PATH%;C:\rakudo\bin"
Now start a new
cmd.exe terminal, and you’ll be use Perl 6. Rakudo Star ships with Panda too, so you’ll be able to start installing Perl 6 modules right away.
Useful Perl 6 resources
So you’ve got Perl 6 installed, now what? To keep up to date with Perl 6 developments, I read the Perl 6 Weekly blog. The Perl Weekly newsletter also includes Perl 6 articles, so be sure to subscribe if you haven’t already. The official website Perl6.org is a good reference for all things Perl 6 related. Wendy has posted a useful list of Perl 6 features.
Here at PerlTricks.com, we’ve got several Perl 6 articles that may be of interest:
- How to create a Grammar
- Parsing Perl 5 Pod with Perl 6
- Get started with Perl 6 One Liners
- How to run Perl 6 tests with prove
- Activate Perl 6 syntax highlighting in Vim
Update - Visual Studio article now includes instructions for VS2015. Added link to nu42.com. 2016-01-04