<?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>Newsyland Blog &#187; Python</title>
	<atom:link href="http://blog.newsyland.com/category/programming/python/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.newsyland.com</link>
	<description>tail -f /dev/brain &#62;&#62; blog.newsyland.com</description>
	<lastBuildDate>Thu, 02 Sep 2010 22:17:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Installing odcctools on Leopard</title>
		<link>http://blog.newsyland.com/programming/python/installing-odcctools-on-leopard</link>
		<comments>http://blog.newsyland.com/programming/python/installing-odcctools-on-leopard#comments</comments>
		<pubDate>Wed, 19 Dec 2007 10:04:40 +0000</pubDate>
		<dc:creator>Kirk Ireson</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.newsyland.com/original/installing-odcctools-on-leopard</guid>
		<description><![CDATA[Instructions for installing odcctools in Mac OS X 10.5 Leopard (on Intel Macbook Pro Core 2 Duo) via macports: I was attempting to get matplotlib, the python plotting library, installed via macports and the first problem is that the library is dependent on odcctools (20061117_0), which fails to build in the x86_64 environment. But, we [...]]]></description>
			<content:encoded><![CDATA[<p>Instructions for installing odcctools in Mac OS X 10.5 Leopard (on Intel Macbook Pro Core 2 Duo) via macports:</p>
<p>I was attempting to get matplotlib, the python plotting library, installed via macports and the first problem is that the library is dependent on odcctools (20061117_0), which fails to build in the x86_64 environment.</p>
<p>But, we <strong>can</strong> get it to build...:</p>
<p>1) (clean the slate)</p>
<p class="code"> $sudo port -v selfupdate;sudo portindex<br />
$sudo port clean --all odcctools</p>
<p>2) (this part will fail)</p>
<p class="code"> $sudo port install odcctools</p>
<p>Output:</p>
<p class="code"> ---&gt;  Fetching odcctools<br />
---&gt;  Verifying checksum(s) for odcctools<br />
---&gt;  Extracting odcctools<br />
---&gt;  Configuring odcctools<br />
---&gt;  Building odcctools with target default<br />
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_odcctools/work/odcctools/odcctools" &amp;&amp; make default " returned error 2<br />
Command output: cd libstuff &amp;&amp; make<br />
/usr/bin/gcc-4.0 -Wall -Wno-long-double -Wno-import  -DHAVE_CONFIG_H   -I/opt/local/include -I../include -I../include   -O2 -fno-builtin-round -fno-builtin-trunc -no-cpp-precomp -mdynamic-no-pic  -c -o allocate.o allocate.c<br />
In file included from ../include/libkern/OSByteOrder.h:70,<br />
from ../include/mach/ndr.h:94,<br />
from ../include/mach/clock_priv.h:7,<br />
from ../include/mach/mach_interface.h:37,<br />
from ../include/mach/mach.h:62,<br />
from allocate.c:26:<br />
../include/libkern/machine/OSByteOrder.h:45: error: redefinition of '_OSSwapInt16'<br />
/usr/include/libkern/i386/_OSByteOrder.h:49: error: previous definition of '_OSSwapInt16' was here<br />
../include/libkern/machine/OSByteOrder.h:54: error: redefinition of '_OSSwapInt32'<br />
/usr/include/libkern/i386/_OSByteOrder.h:58: error: previous definition of '_OSSwapInt32' was here<br />
../include/libkern/machine/OSByteOrder.h:63: error: redefinition of '_OSSwapInt64'<br />
/usr/include/libkern/i386/_OSByteOrder.h:69: error: previous definition of '_OSSwapInt64' was here<br />
make[1]: *** [allocate.o] Error 1<br />
make: *** [libstuff] Error 2<br />
Error: Status 1 encountered during processing.</p>
<p>3)<br />
(hint from <a href="http://code.google.com/p/iphone-dev/issues/detail?id=106#c1">http://code.google.com/p/iphone-dev/issues/detail?id=106#c1</a> )<br />
From this path,<br />
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_odcctools/work/odcctools/odcctools<br />
in each subdirectory, look for a "Makefile". IF the file has a "MYINCLUDES" line, add this after the equals ( = ) sign:<br />
"-isysroot /Developer/SDKs/MacOSX10.4u.sdk" (w/o quotes). If the Makefile doesn't contain a line which starts with MYINCLUDES, then ignore it.</p>
<p>e.g. This is how the line will look after putting in:<br />
...<br />
MYINCLUDES      = -isysroot /Developer/SDKs/MacOSX10.4u.sdk -I$(builddir) -I$(srcdir) -I$(top_builddir)/include \<br />
-I$(top_srcdir)/include $(INCPRIVEXT) $(FORHDRS)<br />
...</p>
<p>4) (continue installation)</p>
<p class="code"> $sudo port install odcctools</p>
<p>Output:</p>
<p class="code"> ---&gt;  Building odcctools with target default<br />
---&gt;  Staging odcctools into destroot<br />
---&gt;  Installing odcctools 20061117_0<br />
---&gt;  Activating odcctools 20061117_0<br />
---&gt;  Cleaning odcctools</p>
<p>Done.</p>
<p>Next, I tried to continue the installation of matplotlib (e.g. sudo port install py25-matplotlib ), but &lt;sigh&gt; now g95 won't compile...</p>
<p><em>[UPDATE 22 Sat, 2007: py25-matplotlib, including g25 now installs via Macports!!]</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.newsyland.com/programming/python/installing-odcctools-on-leopard/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Newsyland blog starts!</title>
		<link>http://blog.newsyland.com/original/newsyland-blog-starts</link>
		<comments>http://blog.newsyland.com/original/newsyland-blog-starts#comments</comments>
		<pubDate>Mon, 12 Nov 2007 02:07:03 +0000</pubDate>
		<dc:creator>Kirk Ireson</dc:creator>
				<category><![CDATA[Original]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.newsyland.com/?p=1</guid>
		<description><![CDATA[Newsyland blog starts today. Yes, the world is treated to yet another blog.  I have wanted to have a blog for some time now, to share, give back if you will, things I have learned - some internet wisdom and some of my own discoveries.  I spent some time looking at CMS software and wanted [...]]]></description>
			<content:encoded><![CDATA[<p>Newsyland blog starts today.</p>
<p>Yes, the world is treated to yet another blog.  I have wanted to have a blog for some time now, to share, give back if you will, things I have learned - some internet wisdom and some of my own discoveries.  I spent some time looking at <a href="http://en.wikipedia.org/wiki/Content_management_system" title="Content_management_system">CMS</a> software and wanted to do something based in <a href="http://www.python.org/" title="python.org">Python</a> since I'm learning it, but since my web provider (<a href="http://www.1and1.com/?k_id=8170161" title="1and1">1and1.com</a>) only supports version 2.2.1 (yes, a version over 4 years old, and yes I asked for a newer version but was shot down), I decided instead on the ubiquitous <a href="http://codex.wordpress.org" title="Wordpress website">WordPress</a>.</p>
<p>I'm an oceanographer in California, where I use <a href="http://www.mathworks.com/products/matlab/" title="mathworks website">Matlab</a> and build websites, so will hopefully pass on nuggets of wisdom regarding Matlab, Javascript, <a href="http://php.net/" title="All things PHP">PHP</a> and CSS. I'm also a recent and enthusiastic <a href="http://www.apple.com/macosx/" title="Mac OS X">Mac OS X</a> convert, but dabble in Linux (<a href="http://fedoraproject.org/" title="Fedoraproject.org">Fedora</a>) and am a Windows power user, so these subjects may come up. I'm also learning <a href="http://www.python.org/" title="www.python.org">python</a> and planning on taking some of the <a href="http://www.oreillyschool.com/" title="oreillyschool.com">O'Reilly on-line classes</a>, so will probably post some things about them too.</p>
<p>Oh, and "<a href="http://newsyland.com" title="newsyland.com">newsyland</a>" is, I hope, a witty homophone to New Zealand - a place I'd love to live some day...</p>
<p>Filed under <a href="http://blog.newsyland.com/about/" title="newsyland about">About </a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.newsyland.com/original/newsyland-blog-starts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
