<?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: Macports, and Erlang: Setting up Emacs and your $MANPATH</title>
	<atom:link href="http://blog.peopleareducks.com/2009/12/02/macports-and-erlang-setting-up-emacs-and-your-manpath/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.peopleareducks.com/2009/12/02/macports-and-erlang-setting-up-emacs-and-your-manpath/</link>
	<description>not at all like a diatribe</description>
	<lastBuildDate>Wed, 19 May 2010 16:35:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Macports updates their Erlang version @ Technitribe</title>
		<link>http://blog.peopleareducks.com/2009/12/02/macports-and-erlang-setting-up-emacs-and-your-manpath/comment-page-1/#comment-70</link>
		<dc:creator>Macports updates their Erlang version @ Technitribe</dc:creator>
		<pubDate>Wed, 03 Feb 2010 05:08:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.peopleareducks.com/?p=101#comment-70</guid>
		<description>[...] you fix your Emacs load-path to register the new location. (See my older post on how to initially set up Erlang and Emacs from MacPorts from [...]</description>
		<content:encoded><![CDATA[<p>[...] you fix your Emacs load-path to register the new location. (See my older post on how to initially set up Erlang and Emacs from MacPorts from [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Robertson</title>
		<link>http://blog.peopleareducks.com/2009/12/02/macports-and-erlang-setting-up-emacs-and-your-manpath/comment-page-1/#comment-56</link>
		<dc:creator>Bill Robertson</dc:creator>
		<pubDate>Sat, 05 Dec 2009 01:03:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.peopleareducks.com/?p=101#comment-56</guid>
		<description>Very interesting.  I&#039;ll take a look at that.  Thanks!</description>
		<content:encoded><![CDATA[<p>Very interesting.  I&#8217;ll take a look at that.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tbielawa</title>
		<link>http://blog.peopleareducks.com/2009/12/02/macports-and-erlang-setting-up-emacs-and-your-manpath/comment-page-1/#comment-54</link>
		<dc:creator>tbielawa</dc:creator>
		<pubDate>Fri, 04 Dec 2009 09:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.peopleareducks.com/?p=101#comment-54</guid>
		<description>Bill,

In /etc/ there&#039;s another file, &quot;profile&quot;, which is executed each time a new shell is launched much like your ~/.bashrc files. Inside of /etc/profile you can see the application that runs which compiles the $*PATH variables from the /etc/*paths.d folders.

/usr/libexec/path_helper

Check out the man page for path_helper. It looks like it will only update $MANPATH with items from the manpaths.d folder if you are already updating it yourself!?

From the man page: &quot;The MANPATH environment variable will not be modified unless it is already set in the environment.&quot;

Here&#039;s my setup:

$ grep MANPATH .bash_profile
MANPATH=$MANPATH:~/share/doc/man
export MANPATH
&lt;tbielawa&gt;@(expressomaker)[~] 04:17:19
$ echo $MANPATH
/usr/share/man:/usr/local/share/man:/opt/local/lib/erlang/man:/usr/local/git/share/man:/usr/X11/share/man:/Users/tbielawa/share/doc/man</description>
		<content:encoded><![CDATA[<p>Bill,</p>
<p>In /etc/ there&#8217;s another file, &#8220;profile&#8221;, which is executed each time a new shell is launched much like your ~/.bashrc files. Inside of /etc/profile you can see the application that runs which compiles the $*PATH variables from the /etc/*paths.d folders.</p>
<p>/usr/libexec/path_helper</p>
<p>Check out the man page for path_helper. It looks like it will only update $MANPATH with items from the manpaths.d folder if you are already updating it yourself!?</p>
<p>From the man page: &#8220;The MANPATH environment variable will not be modified unless it is already set in the environment.&#8221;</p>
<p>Here&#8217;s my setup:</p>
<p>$ grep MANPATH .bash_profile<br />
MANPATH=$MANPATH:~/share/doc/man<br />
export MANPATH<br />
<tbielawa>@(expressomaker)[~] 04:17:19<br />
$ echo $MANPATH<br />
/usr/share/man:/usr/local/share/man:/opt/local/lib/erlang/man:/usr/local/git/share/man:/usr/X11/share/man:/Users/tbielawa/share/doc/man</tbielawa></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Robertson</title>
		<link>http://blog.peopleareducks.com/2009/12/02/macports-and-erlang-setting-up-emacs-and-your-manpath/comment-page-1/#comment-53</link>
		<dc:creator>Bill Robertson</dc:creator>
		<pubDate>Fri, 04 Dec 2009 04:39:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.peopleareducks.com/?p=101#comment-53</guid>
		<description>Having trouble with the man path.  I think I did what you said.

created the file, here it is...
bills-macbook-pro:manpaths.d bill$ cd /etc/manpaths.d
bills-macbook-pro:manpaths.d bill$ ls -al
total 8
drwxr-xr-x   4 root  wheel   136 Dec  3 23:29 .
drwxr-xr-x  94 root  wheel  3196 Dec  3 20:56 ..
-rw-r--r--   1 root  wheel    19 Jul 11 02:29 X11
-rw-r--r--   1 root  wheel    26 Dec  3 23:27 erlang

It contains the right value, and erlang&#039;s man files are there...
bills-macbook-pro:manpaths.d bill$ cat erlang 
/opt/local/lib/erlang/man
bills-macbook-pro:manpaths.d bill$ ls /opt/local/lib/erlang/man/
man1	man3	man4	man6

The file ends with a blank line...
bills-macbook-pro:manpaths.d bill$ od -c erlang 
0000000    /   o   p   t   /   l   o   c   a   l   /   l   i   b   /   e
0000020    r   l   a   n   g   /   m   a   n  \n                        
0000032

No joy...
bills-macbook-pro:manpaths.d bill$ echo $MANPATH
/opt/local/share/man:

Restarted terminal program, logged out, and just for kicks I rebooted the machine.  No difference.

Any suggestions?</description>
		<content:encoded><![CDATA[<p>Having trouble with the man path.  I think I did what you said.</p>
<p>created the file, here it is&#8230;<br />
bills-macbook-pro:manpaths.d bill$ cd /etc/manpaths.d<br />
bills-macbook-pro:manpaths.d bill$ ls -al<br />
total 8<br />
drwxr-xr-x   4 root  wheel   136 Dec  3 23:29 .<br />
drwxr-xr-x  94 root  wheel  3196 Dec  3 20:56 ..<br />
-rw-r&#8211;r&#8211;   1 root  wheel    19 Jul 11 02:29 X11<br />
-rw-r&#8211;r&#8211;   1 root  wheel    26 Dec  3 23:27 erlang</p>
<p>It contains the right value, and erlang&#8217;s man files are there&#8230;<br />
bills-macbook-pro:manpaths.d bill$ cat erlang<br />
/opt/local/lib/erlang/man<br />
bills-macbook-pro:manpaths.d bill$ ls /opt/local/lib/erlang/man/<br />
man1	man3	man4	man6</p>
<p>The file ends with a blank line&#8230;<br />
bills-macbook-pro:manpaths.d bill$ od -c erlang<br />
0000000    /   o   p   t   /   l   o   c   a   l   /   l   i   b   /   e<br />
0000020    r   l   a   n   g   /   m   a   n  \n<br />
0000032</p>
<p>No joy&#8230;<br />
bills-macbook-pro:manpaths.d bill$ echo $MANPATH<br />
/opt/local/share/man:</p>
<p>Restarted terminal program, logged out, and just for kicks I rebooted the machine.  No difference.</p>
<p>Any suggestions?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
