<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Getting Cabal to run on Mac OS X Leopard</title>
	<atom:link href="http://jan.varwig.org/archive/getting-cabal-to-run-on-mac-os-x-leopard/feed" rel="self" type="application/rss+xml" />
	<link>http://jan.varwig.org/archive/getting-cabal-to-run-on-mac-os-x-leopard</link>
	<description>Somewhere between Hello World and HAL9000</description>
	<lastBuildDate>Mon, 15 Mar 2010 23:41:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Duncan Mortimer</title>
		<link>http://jan.varwig.org/archive/getting-cabal-to-run-on-mac-os-x-leopard/comment-page-1#comment-910</link>
		<dc:creator>Duncan Mortimer</dc:creator>
		<pubDate>Thu, 30 Apr 2009 00:51:29 +0000</pubDate>
		<guid isPermaLink="false">http://jan.varwig.org/?p=87#comment-910</guid>
		<description>&lt;p&gt;Hi,  thanks for these instructions.&lt;/p&gt;

&lt;p&gt;Everything seems to work fine, but when I run    cabal update    I get the following error:&lt;/p&gt;

&lt;p&gt;wlan-n124-20:Desktop dmorti$ cabal update
Config file /Users/dmorti/.cabal/config not found.
Writing default configuration to /Users/dmorti/.cabal/config
Downloading the latest package list from hackage.haskell.org
cabal: user error (Codec.Compression.Zlib: premature end of compressed stream)&lt;/p&gt;

&lt;p&gt;Any idea what&#039;s going on here?  I found some mention of this problem occurring for windows users, but nothing about OSX...??&lt;/p&gt;

&lt;p&gt;cheers!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,  thanks for these instructions.</p>
<p>Everything seems to work fine, but when I run    cabal update    I get the following error:</p>
<p>wlan-n124-20:Desktop dmorti$ cabal update<br />
Config file /Users/dmorti/.cabal/config not found.<br />
Writing default configuration to /Users/dmorti/.cabal/config<br />
Downloading the latest package list from hackage.haskell.org<br />
cabal: user error (Codec.Compression.Zlib: premature end of compressed stream)</p>
<p>Any idea what&#8217;s going on here?  I found some mention of this problem occurring for windows users, but nothing about OSX&#8230;??</p>
<p>cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Wright</title>
		<link>http://jan.varwig.org/archive/getting-cabal-to-run-on-mac-os-x-leopard/comment-page-1#comment-830</link>
		<dc:creator>Eric Wright</dc:creator>
		<pubDate>Sun, 05 Apr 2009 00:38:35 +0000</pubDate>
		<guid isPermaLink="false">http://jan.varwig.org/?p=87#comment-830</guid>
		<description>&lt;p&gt;Okay, now I tried running the cabal-install ./bootstrap.sh, and that installed everything as expected.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Okay, now I tried running the cabal-install ./bootstrap.sh, and that installed everything as expected.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Wright</title>
		<link>http://jan.varwig.org/archive/getting-cabal-to-run-on-mac-os-x-leopard/comment-page-1#comment-829</link>
		<dc:creator>Eric Wright</dc:creator>
		<pubDate>Sun, 05 Apr 2009 00:31:13 +0000</pubDate>
		<guid isPermaLink="false">http://jan.varwig.org/?p=87#comment-829</guid>
		<description>&lt;p&gt;There&#039;s probably a more proper way to do this, but here&#039;s what worked.  I created a bash script with this in it:&lt;/p&gt;

&lt;p&gt;!/bin/sh&lt;/p&gt;

&lt;p&gt;export LIBRARY_PATH=/sw/lib:$LIBRARY_PATH
./Setup build&lt;/p&gt;

&lt;p&gt;And then I ran&lt;/p&gt;

&lt;p&gt;$ sudo ./script.sh&lt;/p&gt;

&lt;p&gt;That compiled zlib without complaining!  Unfortunately cabal-install is still giving me the error:&lt;/p&gt;

&lt;p&gt;$ ./Setup configure
Configuring cabal-install-0.6.2...
Setup: At least the following dependencies are missing:
zlib &gt;=0.4 &amp;&amp; &lt;0.6&lt;/p&gt;

&lt;p&gt;And as far as I can tell, I just compiled zlib!  Ugh.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>There&#8217;s probably a more proper way to do this, but here&#8217;s what worked.  I created a bash script with this in it:</p>
<p>!/bin/sh</p>
<p>export LIBRARY_PATH=/sw/lib:$LIBRARY_PATH<br />
./Setup build</p>
<p>And then I ran</p>
<p>$ sudo ./script.sh</p>
<p>That compiled zlib without complaining!  Unfortunately cabal-install is still giving me the error:</p>
<p>$ ./Setup configure<br />
Configuring cabal-install-0.6.2&#8230;<br />
Setup: At least the following dependencies are missing:<br />
zlib &gt;=0.4 &amp;&amp; &lt;0.6</p>
<p>And as far as I can tell, I just compiled zlib!  Ugh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Wright</title>
		<link>http://jan.varwig.org/archive/getting-cabal-to-run-on-mac-os-x-leopard/comment-page-1#comment-827</link>
		<dc:creator>Eric Wright</dc:creator>
		<pubDate>Sat, 04 Apr 2009 20:35:35 +0000</pubDate>
		<guid isPermaLink="false">http://jan.varwig.org/?p=87#comment-827</guid>
		<description>&lt;p&gt;Yeah, me neither.  Thanks for the suggestions.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yeah, me neither.  Thanks for the suggestions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://jan.varwig.org/archive/getting-cabal-to-run-on-mac-os-x-leopard/comment-page-1#comment-826</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Sat, 04 Apr 2009 20:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://jan.varwig.org/?p=87#comment-826</guid>
		<description>&lt;p&gt;Try adding a -L/sw/lib option somewhere. That should tell the compiler to search that directory for libs too. But I&#039;m really not an expert on neither gcc nor Haskell, far from it.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Try adding a -L/sw/lib option somewhere. That should tell the compiler to search that directory for libs too. But I&#8217;m really not an expert on neither gcc nor Haskell, far from it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Wright</title>
		<link>http://jan.varwig.org/archive/getting-cabal-to-run-on-mac-os-x-leopard/comment-page-1#comment-825</link>
		<dc:creator>Eric Wright</dc:creator>
		<pubDate>Sat, 04 Apr 2009 20:23:39 +0000</pubDate>
		<guid isPermaLink="false">http://jan.varwig.org/?p=87#comment-825</guid>
		<description>&lt;p&gt;I installed gmp through fink...&lt;/p&gt;

&lt;p&gt;$ fink list -i gmp
 i   gmp              4.2.4-1000   GNU multiple precision arithmetic library
 i   gmp-shlibs       4.2.4-1000   Shared library for gmp package
 i   libgmpxx-shlibs  4.2.4-1000   Shared C++ library for gmp package&lt;/p&gt;

&lt;p&gt;$ ls /sw/lib/libgmp*
/sw/lib/libgmp.3.4.4.dylib   /sw/lib/libgmpxx.4.0.4.dylib
/sw/lib/libgmp.3.dylib       /sw/lib/libgmpxx.4.dylib
/sw/lib/libgmp.a             /sw/lib/libgmpxx.a
/sw/lib/libgmp.dylib         /sw/lib/libgmpxx.dylib
/sw/lib/libgmp.la            /sw/lib/libgmpxx.la&lt;/p&gt;

&lt;p&gt;But I&#039;m getting the same error.  Could it be that gcc is called from /usr/bin? Do I need to tell the compiler how to use -lgmp somehow?&lt;/p&gt;

&lt;p&gt;(thanks for the feedback)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I installed gmp through fink&#8230;</p>
<p>$ fink list -i gmp<br />
 i   gmp              4.2.4-1000   GNU multiple precision arithmetic library<br />
 i   gmp-shlibs       4.2.4-1000   Shared library for gmp package<br />
 i   libgmpxx-shlibs  4.2.4-1000   Shared C++ library for gmp package</p>
<p>$ ls /sw/lib/libgmp*<br />
/sw/lib/libgmp.3.4.4.dylib   /sw/lib/libgmpxx.4.0.4.dylib<br />
/sw/lib/libgmp.3.dylib       /sw/lib/libgmpxx.4.dylib<br />
/sw/lib/libgmp.a             /sw/lib/libgmpxx.a<br />
/sw/lib/libgmp.dylib         /sw/lib/libgmpxx.dylib<br />
/sw/lib/libgmp.la            /sw/lib/libgmpxx.la</p>
<p>But I&#8217;m getting the same error.  Could it be that gcc is called from /usr/bin? Do I need to tell the compiler how to use -lgmp somehow?</p>
<p>(thanks for the feedback)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://jan.varwig.org/archive/getting-cabal-to-run-on-mac-os-x-leopard/comment-page-1#comment-824</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Sat, 04 Apr 2009 18:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://jan.varwig.org/?p=87#comment-824</guid>
		<description>&lt;p&gt;Your system is missing the library &lt;code&gt;gmp&lt;/code&gt; (&lt;code&gt;libgmp.a&lt;/code&gt;, the &lt;em&gt;GNU multiprecision library&lt;/em&gt;). Install it via your system&#039;s package manager or manually (use Google).&lt;/p&gt;

&lt;p&gt;Then the build should succeed.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Your system is missing the library <code>gmp</code> (<code>libgmp.a</code>, the <em>GNU multiprecision library</em>). Install it via your system&#8217;s package manager or manually (use Google).</p>
<p>Then the build should succeed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Wright</title>
		<link>http://jan.varwig.org/archive/getting-cabal-to-run-on-mac-os-x-leopard/comment-page-1#comment-823</link>
		<dc:creator>Eric Wright</dc:creator>
		<pubDate>Sat, 04 Apr 2009 18:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://jan.varwig.org/?p=87#comment-823</guid>
		<description>&lt;p&gt;When trying to install zlib, I get this error:&lt;/p&gt;

&lt;p&gt;$ sudo ./Setup build
Preprocessing library zlib-0.5.0.0...
ld: library not found for -lgmp
collect2: ld returned 1 exit status
linking dist/build/Codec/Compression/Zlib/Stream_hsc_make.o failed
command was: /usr/bin/gcc -lz -L/sw/lib/ghc-6.8.3/lib/bytestring-0.9.0.1.1 -L/sw/lib/ghc-6.8.3/lib/array-0.1.0.0 -L/sw/lib/ghc-6.8.3/lib/base-3.0.2.0 -L/sw/lib/ghc-6.8.3 -lm -lgmp -ldl dist/build/Codec/Compression/Zlib/Stream_hsc_make.o -o dist/build/Codec/Compression/Zlib/Stream_hsc_make&lt;/p&gt;

&lt;p&gt;Do you know what &quot; -lgmp&quot; means, or what I should look for?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>When trying to install zlib, I get this error:</p>
<p>$ sudo ./Setup build<br />
Preprocessing library zlib-0.5.0.0&#8230;<br />
ld: library not found for -lgmp<br />
collect2: ld returned 1 exit status<br />
linking dist/build/Codec/Compression/Zlib/Stream_hsc_make.o failed<br />
command was: /usr/bin/gcc -lz -L/sw/lib/ghc-6.8.3/lib/bytestring-0.9.0.1.1 -L/sw/lib/ghc-6.8.3/lib/array-0.1.0.0 -L/sw/lib/ghc-6.8.3/lib/base-3.0.2.0 -L/sw/lib/ghc-6.8.3 -lm -lgmp -ldl dist/build/Codec/Compression/Zlib/Stream_hsc_make.o -o dist/build/Codec/Compression/Zlib/Stream_hsc_make</p>
<p>Do you know what &#8221; -lgmp&#8221; means, or what I should look for?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zac Brown &#187; Blog Archive &#187; Installing Yi on Mac OS X</title>
		<link>http://jan.varwig.org/archive/getting-cabal-to-run-on-mac-os-x-leopard/comment-page-1#comment-821</link>
		<dc:creator>Zac Brown &#187; Blog Archive &#187; Installing Yi on Mac OS X</dc:creator>
		<pubDate>Fri, 03 Apr 2009 21:53:39 +0000</pubDate>
		<guid isPermaLink="false">http://jan.varwig.org/?p=87#comment-821</guid>
		<description>&lt;p&gt;[...] little gotcha I ran into after following Jan Varwig&#8217;s tutorial on installing Cabal &amp; friends on Mac OS X and then subsequently trying to install [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] little gotcha I ran into after following Jan Varwig&#8217;s tutorial on installing Cabal &amp; friends on Mac OS X and then subsequently trying to install [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hal</title>
		<link>http://jan.varwig.org/archive/getting-cabal-to-run-on-mac-os-x-leopard/comment-page-1#comment-729</link>
		<dc:creator>hal</dc:creator>
		<pubDate>Tue, 03 Mar 2009 17:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://jan.varwig.org/?p=87#comment-729</guid>
		<description>&lt;p&gt;yeah, thanks a bunch, helped me alot&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>yeah, thanks a bunch, helped me alot</p>
]]></content:encoded>
	</item>
</channel>
</rss>
