在我们开始之前,让我们下载最新的Parrot副本并将其安装在我们的机器上.
Parrot下载链接可在 Parrot CVS Snapshot .下载最新版本的Parrot并按照以下步骤进行安装:
解压缩并解压缩下载的文件.
确保您的计算机上已安装Perl 5.
现在执行以下操作:
% cd parrot % perl Configure.pl Parrot Configure Copyright (C) 2001 Yet Another Society Since you're running this script, you obviously have Perl 5 -- I'll be pulling some defaults from its configuration. ...
然后会被问到一系列问题关于你的本地配置;你几乎总能按每一个回报/输入.
最后,你会被告知输入 - make test_prog,和Parrot将成功建立测试解释器.
现在你应该运行一些测试;所以输入'make test'你会看到如下的读数:
perl t/harness t/op/basic.....ok,1/2 skipped:label constants unimplemented in assembler t/op/string....ok, 1/4 skipped: I'm unable to write it! All tests successful, 2 subtests skipped. Files=2, Tests=6,......
当你读到这篇文章时,可能会有更多的测试,一些跳过的可能不会跳过,但要确保它们都不会失败!
一旦安装了parrot可执行文件,你可以查看