aboutsummaryrefslogtreecommitdiff
path: root/ports/darwin_dmg/HOW_TO_INSTALL.txt
blob: fb0ae328f148e1c7f46eae31f741b26f6fa3fd59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
1. Drag the Rakudo folder onto the Applications folder.
2. In a Terminal window, type this command:
    alias p6='/Applications/Rakudo/bin/perl6'
        ( This step only affects this one window; to make available to all
          future sessions, add the line to your ~/.bash_profile file. )

You can now run a Perl 6 program like this:
    p6 filename
or run code directly from the command-line with the -e option:
    p6 -e 'your code here'

Try this:
    p6 -e 'say "Hello, world!";'

You can always skip the alias and use the full path:
    /Applications/Rakudo/bin/perl6 -e 'say "Hello, world!";'
or alternately, add Rakudo Star to your path:
    PATH=$PATH:/Applications/Rakudo/bin
    perl6 -e 'say "Hello, world!";'

See also README in /Applications/Rakudo/docs/rakudo/README .