<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">

<channel>
<title><![CDATA[Perl 6: Download Pugs]]></title>
<link>http://www.perlfoundation.org/perl6/index.cgi?download_pugs</link>
<description></description>
<pubDate>Sat, 17 Apr 2010 02:46:58 -0000</pubDate>
<webMaster>synedra@gmail.com</webMaster>
<generator>Socialtext Workspace v2.14.7.2</generator>

<item>
<title><![CDATA[Download Pugs]]></title>
<link>http://www.perlfoundation.org/perl6/index.cgi?download_pugs</link>
<description><![CDATA[<div class="wiki">
<h2 id="building_pugs_from_source">Building Pugs from Source</h2>
<p>
The current recommended way to build Pugs is via cabal-install with the<br />
Haskell Platform. The steps are:</p>
<h3 id="1_download_and_install_the_haskell_platform">1. Download and install the Haskell Platform</h3>
<ul>
<li><a target="_blank" title="(external link)" href="http://hackage.haskell.org/platform/">http://hackage.haskell.org/platform/</a></li>
</ul>
<p>
Alternately, one can also install only the GHC compiler, and manually set up<br />
the following packages (in this order):</p>
<ul>
<li><a target="_blank" title="(external link)" href="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/Cabal">http://hackage.haskell.org/cgi-bin/hackage-scripts/package/Cabal</a></li>
<li><a target="_blank" title="(external link)" href="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HTTP">http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HTTP</a></li>
<li><a target="_blank" title="(external link)" href="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib">http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib</a></li>
<li><a target="_blank" title="(external link)" href="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/cabal-install">http://hackage.haskell.org/cgi-bin/hackage-scripts/package/cabal-install</a></li>
</ul>
<p>
The instructions contained in the README file of Cabal contain more detailed<br />
setup instructions, which should work for all the packages above.</p>
<p>
(But then again, please consider simply installing the Haskell Platform. :-))</p>
<h3 id="2_type_the_following_commands">2. Type the following commands:</h3>
<blockquote>
cabal update<br />
cabal install Pugs</blockquote>
<br /><p>
...and it's done!</p>
<p>
To build an optimized Pugs for benchmarking or smoke testing, replace the<br />
second command with:</p>
<blockquote>
cabal install -O2 Pugs</blockquote>
<br /><p>
(Unix-like systems might need <tt>sudo</tt> or <tt>cabal install -p</tt> to satisfy<br />
permission requirements.)</p>
<h3 id="3_upgrade_pugs_installation">3. Upgrade Pugs installation</h3>
<p>
To upgrade to the latest released version on Hackage, the same two lines of commands would work:</p>
<blockquote>
cabal update<br />
cabal install Pugs</blockquote>
<br /><h3 id="4_build_from_github_source">4. Build from GitHub source</h3>
<p>
To upgrade the current Pugs installation to the version in the <a target="_blank" title="(external link)" href="http://github.com/audreyt/Pugs.hs/">repository<!-- wiki-renamed-hyperlink "repository"<http://github.com/audreyt/Pugs.hs/> --></a>, simply build the repository copy like this:</p>
<blockquote>
cd Pugs<br />
cabal install</blockquote>
<br /><h2 id="binary_builds_of_pugs">Binary Builds of Pugs</h2>
<p>
Binary builds are the easiest get started with, but may not be as up to date as building from source.</p>
<ul>
<li><a target="_blank" title="(external link)" href="http://jnthn.net/perl6/">Win32 binary builds of Pugs and Parrot<!-- wiki-renamed-hyperlink "Win32 binary builds of Pugs and Parrot"<http://jnthn.net/perl6/> --></a>.</li>

<ul>
<li>(Pxperl.com appears to have stopped routinely updating their Win32 builds.)</li>
</ul></ul>
<h2 id="run_pugs_in_your_web_browser">Run Pugs in your Web Browser</h2>
<p>
A web terminal for Pugs is available at <a target="_blank" title="(external link)" href="http://run.pugscode.org">run.pugscode.org<!-- wiki-renamed-hyperlink "run.pugscode.org"<http://run.pugscode.org> --></a>. You can choose between the latest release or latest development snapshot.</p>
<h2 id="accessing_pugs_remotely">Accessing Pugs Remotely</h2>
<p>
Another option is to use a pugs a remote machine. If you just want to try out a line or two, you can use the &quot;evalbot&quot; on &quot;the #perl6 IRC channel&quot;&lt;Mail Lists, IRC, Archives&gt;. The syntax is just:</p>
<pre>
?eval say &quot;hello!&quot;
</pre>
<br /><p>
If you plan to contribute to Perl 6, you can see about getting a free account on Feather, the <br />
<a target="_blank" title="(external link)" href="http://feather.perl6.nl">Perl Community Development Server<!-- wiki-renamed-hyperlink "Perl Community Development Server"<http://feather.perl6.nl> --></a>. There, a fresh version of Pugs is built<br />
every 10 minutes!</p>
<h2 id="related_links">Related Links</h2>
<ul>
<li><a target="_blank" title="(external link)" href="http://packages.debian.org/unstable/interpreters/pugs">Debian Pugs pakage<!-- wiki-renamed-hyperlink "Debian Pugs pakage"<http://packages.debian.org/unstable/interpreters/pugs> --></a> by rafl</li>
</ul>
</div>
]]></description>
<author>audreyt@hidden</author>
<guid isPermaLink="true">http://www.perlfoundation.org/perl6/index.cgi?download_pugs</guid>
<pubDate>Sat, 17 Apr 2010 02:46:58 -0000</pubDate>
</item>

</channel>
</rss>