<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>andersblockmar.com &#187; OSX</title>
	<atom:link href="http://andersblockmar.com/blog/tag/osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://andersblockmar.com/blog</link>
	<description></description>
	<lastBuildDate>Sat, 20 Mar 2010 18:25:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Macports can&#8217;t find zlib.dylib &#8211; my solution</title>
		<link>http://andersblockmar.com/blog/macports-cant-find-zlib-dylib-my-solution/</link>
		<comments>http://andersblockmar.com/blog/macports-cant-find-zlib-dylib-my-solution/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 23:52:42 +0000</pubDate>
		<dc:creator>Anders</dc:creator>
				<category><![CDATA[OSX]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[zlib]]></category>

		<guid isPermaLink="false">http://andersblockmar.com/blog/?p=224</guid>
		<description><![CDATA[
As some of you know I recently upgraded my mac to Snow Leopard (10.6). Since I do not believe in &#8220;Upgrade installations&#8221; this meant having to reinstall all my software after formatting the drive and installing OS X. Being a Unix-poweruser one of the first thing I installed was Macports to give me easy access [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-225" title="Untitled" src="http://andersblockmar.com/blog/wp-content/uploads/2009/10/Untitled.gif" alt="Untitled" width="635" height="160" /></p>
<p>As some of you know I recently upgraded my mac to <a href="http://www.apple.com/macosx/" target="_blank">Snow Leopard</a> (10.6). Since I do not believe in &#8220;Upgrade installations&#8221; this meant having to reinstall all my software after formatting the drive and installing OS X. Being a Unix-poweruser one of the first thing I installed was <a href="http://www.macports.org/" target="_blank">Macports</a> to give me easy access to Apache, Mysql, PHP and other software. Using macports I also tried to install <a href="http://www.freetype.org" target="_blank">freetype</a> to go with my newly installed copy of <a href="http://www.winehq.org/" target="_blank">Wine</a>. But then the fun stopped &#8211; it failed!</p>
<pre>Error: Target org.macports.extract returned: lipo: <strong>can't open input file: /opt/local/lib/libz.dylib (No such file or directory)</strong></pre>
<p>For some reason the auto-installed (by dependencies) <a href="http://www.zlib.net/" target="_blank">zlib</a> did not install  zlib.dylib. I tried to reinstall zlib using port but without luck.</p>
<p>But I did find an another solution to the problem. It turns out that zlib compiles just fine under Snow Leopard without ports! My solution &#8211; the short version: Download and install zlib separately and then copy it to /opt/local/lib.</p>
<p>My solution &#8211; the almost too short version:</p>
<pre>cd /usr/local/src
wget <span class="linkification-ext">http://www.zlib.net/zlib-1.2.3.tar.gz</span>
tar xvzf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure --shared
make
sudo make install
cp /usr/local/lib/zlib* /opt/local/lib/</pre>
<p>Done! Replace /usr/local/src with a directory of your liking&#8230;</p>
<p>It might not be the best, or the only, solution to the problem but it worked for me. Since I guess that this post might help others I wrote it in English.</p>
]]></content:encoded>
			<wfw:commentRss>http://andersblockmar.com/blog/macports-cant-find-zlib-dylib-my-solution/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
