<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>Tim&apos;s journal</title>
  <link>https://tim.dreamwidth.org/</link>
  <description>Tim&apos;s journal - Dreamwidth Studios</description>
  <lastBuildDate>Tue, 18 Jan 2011 23:35:32 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>tim</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/6843885/234887</url>
    <title>Tim&apos;s journal</title>
    <link>https://tim.dreamwidth.org/</link>
    <width>72</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>https://tim.dreamwidth.org/1715938.html</guid>
  <pubDate>Tue, 18 Jan 2011 23:35:32 GMT</pubDate>
  <title>How To Install The Haskell Platform on a PowerPC Mac</title>
  <link>https://tim.dreamwidth.org/1715938.html</link>
  <description>Well, this is a bit of a break from the usual kinds of rants here, but I couldn&apos;t find anything online from anyone who has done this. Maybe no one else has a PowerPC Mac anymore.&lt;br /&gt;&lt;br /&gt;Should you need to install the current version of &lt;a href=&quot;http://hackage.haskell.org/platform/mac.html&quot;&gt;the Haskell Platform&lt;/a&gt; (version 2.0.0) on a PowerPC Mac running Mac OS 10.5.8 (no guarantees that it&apos;ll work on other versions) that has no pre-installed version of GHC, here&apos;s what you need to do:&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Install XCode 3.1 if you don&apos;t have it. To do this, you need an account at &lt;a href=&quot;http://developer.apple.com&quot;&gt;http://developer.apple.com&lt;/a&gt; which is free, but asks a lot of annoying questions. Give wrong answers if possible. The actual link to download XCode 3.1 for PPC is somewhere on the site (at least as of 1/15/2011), but requires a lot of digging -- or you could just google. &lt;br /&gt;&lt;li&gt;Download the binary bundle for GHC 6.10.4 at &lt;a href=&quot;http://haskell.org/ghc/download_ghc_6_10_4#macosxppc&quot;&gt;http://haskell.org/ghc/download_ghc_6_10_4#macosxppc&lt;/a&gt; -- there is also a binary bundle for GHC 7.0.1, but the Haskell Platform 2.0.0 won&apos;t build with GHC 7.0.1, only with GHC 6.12.3. (I tried.) There are no PPC binary bundles for anything greater than 6.10.4 and less than 7.0.1 AFAICT.&lt;br /&gt;&lt;li&gt;Install the binary bundle. The included instructions are fine.&lt;br /&gt;&lt;li&gt;The Haskell Platform requires GHC 6.12.3 to build. So now you&apos;ll build 6.12.3 from source using the copy of GHC 6.10.4 that you just installed. Download the source tarball at &lt;a href=&quot;http://haskell.org/ghc/download_ghc_6_12_3#sources&quot;&gt;http://haskell.org/ghc/download_ghc_6_12_3#sources&lt;/a&gt; and follow the instructions.&lt;br /&gt;&lt;li&gt;The build may fail with a linker error. But that&apos;s okay! It&apos;s the stage2 build that fails, and you only need the stage1 build to bootstrap GHC. Set up your PATH so that $FOO/inplace/bin/ comes first -- where &lt;tt&gt;$FOO&lt;/tt&gt; is the top-level directory for your GHC 6.12.3 build.&lt;br /&gt;&lt;li&gt;Download the Haskell Platform source tarball from &lt;a href=&quot;http://hackage.haskell.org/platform/mac.html&quot;&gt;http://hackage.haskell.org/platform/mac.html&lt;/a&gt; -- but instead of just doing &lt;tt&gt;./configure&lt;/tt&gt;, do &lt;tt&gt;./configure --with-ghc=$FOO/inplace/bin/ghc-stage1 --with-ghc-pkg=$FOO/inplace/bin/ghc-pkg&lt;/tt&gt;. After that, you should be able to do &lt;tt&gt;make; make install&lt;/tt&gt; like it says.&lt;br /&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;(I&apos;m writing some of these commands from memory. YMMV.)&lt;br /&gt;&lt;br /&gt;It&apos;s just that easy!&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=tim&amp;ditemid=1715938&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://tim.dreamwidth.org/1715938.html</comments>
  <category>ghc</category>
  <category>open sores</category>
  <category>macs</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
</channel>
</rss>
