<?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>Technitribe &#187; Macports</title>
	<atom:link href="http://blog.lnx.cx/tag/macports/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lnx.cx</link>
	<description>not at all like a diatribe</description>
	<lastBuildDate>Mon, 09 Jan 2012 00:35:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing dblatex from the latest MacPorts</title>
		<link>http://blog.lnx.cx/2009/12/04/installing-dblatex-from-the-latest-macports/</link>
		<comments>http://blog.lnx.cx/2009/12/04/installing-dblatex-from-the-latest-macports/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 09:05:38 +0000</pubDate>
		<dc:creator>Tim Bielawa</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[dblatex]]></category>
		<category><![CDATA[Macports]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.peopleareducks.com/?p=107</guid>
		<description><![CDATA[I ran into this issue while installing dblatex (0.2.10) from the most recent MacPorts tree today: Traceback &#40;most recent call last&#41;: File &#34;/opt/local/bin/dblatex&#34;, line 16, in &#60;module&#62; from dbtexmf.dblatex import dblatex ImportError: No module named dbtexmf.dblatex I got past it by exporting PYTHONPATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages, but clearly this was not optimal. I was about to file a [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into this issue while installing dblatex (0.2.10) from the most recent MacPorts tree today:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">Traceback <span style="color: black;">&#40;</span>most recent call last<span style="color: black;">&#41;</span>:
  File <span style="color: #483d8b;">&quot;/opt/local/bin/dblatex&quot;</span>, line <span style="color: #ff4500;">16</span>, <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #66cc66;">&lt;</span>module<span style="color: #66cc66;">&gt;</span>
    <span style="color: #ff7700;font-weight:bold;">from</span> dbtexmf.<span style="color: black;">dblatex</span> <span style="color: #ff7700;font-weight:bold;">import</span> dblatex
<span style="color: #008000;">ImportError</span>: No module named dbtexmf.<span style="color: black;">dblatex</span></pre></div></div>

<p>I got past it by exporting <code>PYTHONPATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages</code>, but clearly this was not optimal. I was about to file a bug report about the issue but before I did that I read their <a href="http://guide.macports.org/#project.tickets">new ticket guidelines</a> which requested the full build log be included in the ticket.</p>
<p>In the build log was the solution. I would have missed it had my shell scrollback not been set to unlimited. Nestled a good 182 lines back in my buffer was this little message:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">---<span style="color: #000000; font-weight: bold;">&gt;</span>  Installing python26 <span style="color: #000000; font-weight: bold;">@</span>2.6.4_0+darwin
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Activating python26 <span style="color: #000000; font-weight: bold;">@</span>2.6.4_0+darwin
&nbsp;
To fully <span style="color: #7a0874; font-weight: bold;">complete</span> your installation and <span style="color: #c20cb9; font-weight: bold;">make</span> python <span style="color: #000000;">2.6</span> the default, please run
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> python_select
<span style="color: #c20cb9; font-weight: bold;">sudo</span> python_select python26</pre></div></div>

<p>I did as instructed, and sure enough, dblatex started working! I just wanted to post this on the blog in case anyone else ran into this and missed it like I did.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lnx.cx/2009/12/04/installing-dblatex-from-the-latest-macports/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Macports, and Erlang: Setting up Emacs and your $MANPATH</title>
		<link>http://blog.lnx.cx/2009/12/02/macports-and-erlang-setting-up-emacs-and-your-manpath/</link>
		<comments>http://blog.lnx.cx/2009/12/02/macports-and-erlang-setting-up-emacs-and-your-manpath/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 03:32:05 +0000</pubDate>
		<dc:creator>Tim Bielawa</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Erlang]]></category>
		<category><![CDATA[Macports]]></category>
		<category><![CDATA[Manpath]]></category>

		<guid isPermaLink="false">http://blog.peopleareducks.com/?p=101</guid>
		<description><![CDATA[You may find this helpful if you should find yourself using Erlang on OS X and you&#8217;ve installed it using Macports. After a default installation you&#8217;ll need to manually configure your .emacs file for erlang-mode and set your $MANPATH variable correctly, here&#8217;s how. If you&#8217;ve installed Erlang with Macports then you may have noticed that [...]]]></description>
			<content:encoded><![CDATA[<p>You may find this helpful if you should find yourself using <a href="http://www.erlang.org/">Erlang</a> on OS X and you&#8217;ve installed it using <a href="http://www.macports.org">Macports</a>. After a default installation you&#8217;ll need to manually configure your .emacs file for <strong>erlang-mode</strong> and set your $MANPATH variable correctly, here&#8217;s how.</p>
<p>If you&#8217;ve installed Erlang with Macports then you may have noticed that when you edit <strong>.erl</strong> files you&#8217;re not entering into <strong>erlang-mode</strong>, nor is it available to enter into. Here&#8217;s how I got <a href="http://www.erlang.org/doc/apps/tools/erlang_mode_chapter.html">erlang-mode</a> working on my system.</p>
<p>Macports will install Erlang into /opt/local/lib/erlang by default. <a href="http://www.erlang.org/doc/apps/tools/erlang_mode_chapter.html#id2261177">The paths</a> to put in your .emacs file provided in the erlang-mode documentation only need to be tweaked a slight bit to function properly. Here&#8217;s what I put in mine:</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> load-path <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">cons</span>  <span style="color: #ff0000;">&quot;/opt/local/lib/erlang/lib/tools-2.6.4/emacs/&quot;</span> load-path<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> erlang-root-dir <span style="color: #ff0000;">&quot;/opt/local/lib/erlang&quot;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> exec-path <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">cons</span> <span style="color: #ff0000;">&quot;/opt/local/bin&quot;</span> exec-path<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>require 'erlang-start<span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>Note that you may require setting &#8220;tools-2.6.4&#8243; to something else if Macports has upgraded it&#8217;s distribution of Erlang.</p>
<p>Setting up your $MANPATH variable is fairly simple as well. Just put the string &#8220;/opt/local/lib/erlang/man&#8221; in a file called &#8216;erlang&#8217; in /etc/manpaths.d/ and make sure it ends with an empty line. Test this by opening a new terminal and running: <strong>echo $MANPATH | grep erlang</strong>. If it doesn&#8217;t come back empty then you&#8217;ve done it right.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lnx.cx/2009/12/02/macports-and-erlang-setting-up-emacs-and-your-manpath/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

