<?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>cousin girls &#187; shell scripts</title>
	<atom:link href="http://cousingirls.com/tag/shell-scripts/feed" rel="self" type="application/rss+xml" />
	<link>http://cousingirls.com</link>
	<description>are we there yet?</description>
	<lastBuildDate>Sat, 29 May 2010 14:35:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Environment/Postflight Script Problems with Macports (PB G4, OS X 10.5)</title>
		<link>http://cousingirls.com/environment-problems-with-macports-pb-g4-os-x-105</link>
		<comments>http://cousingirls.com/environment-problems-with-macports-pb-g4-os-x-105#comments</comments>
		<pubDate>Sun, 06 Jul 2008 13:27:44 +0000</pubDate>
		<dc:creator>morton</dc:creator>
				<category><![CDATA[Compute]]></category>
		<category><![CDATA[Techne]]></category>
		<category><![CDATA[.profile]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[shell scripts]]></category>

		<guid isPermaLink="false">http://cousingirls.com/?p=35</guid>
		<description><![CDATA[I&#8217;m running OS X 10.5 Leopard on a G4 PowerBook, and I was having some issues making Macports work.
When i installed from GUI, using the Macports 1.6.0 .dmg version, at the end of installation I got something like &#8220;Installation Failed&#8221; which I slowly figured out to possibly be due to problems with my bash environment, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m running OS X 10.5 Leopard on a G4 PowerBook, and I was having some issues making Macports work.</p>
<p>When i installed from GUI, using the Macports 1.6.0 .dmg version, at the end of installation I got something like &#8220;Installation Failed&#8221; which I slowly figured out to possibly be due to problems with my bash environment, since it was the post-flight script at the end of the installation process which could not be executed correctly &#8211; setting the PATH and MANPATH values is one of its jobs. This got affirmed by my bash environment missing the required settings.</p>
<p>Changing those manually usually is quite easy. On opening a bash shell, the .profile script would be executed. It would contain two Macports-related lines, namely:</p>
<p><code>export PATH=/opt/local/bin:/opt/local/sbin:$PATH</code><br /><code>export MANPATH=/opt/local/share/man:$MANPATH</code></p>
<p>Anyway, this did not work on my system. I miss the .profile file at all, and creating it with the required entries does not change a thing. Leopard seems to have brought some changes that other users were experiencing as well. Actually, there is some posting on this issue, but it&#8217;s mainly inconclusive. On my friend&#8217;s machine (10.5, Intel) it just seems to work that way. So the problem seems to lie in the fact that different systems can have different bash scripts (<code>~/.bash_profile, ~/.bash_login, ~/.profile …</code>).</p>
<p>That all really confused me. Fortunately, I met the mighty Christoph Lischka yesterday ^^. My problem is solved now, Macports up and running, my mind can peacefully flow over with what I found out:</p>
<p>The bash startup scripts are executed in this order: First, the <code>/etc/bashrc</code>, which is a system-wide setting and which I was recommended not to change at all. Second, <code>~/.bash_profile</code>. Anyway, the X Windows system evaluates <code>~/.bashrc</code> first. So here&#8217;s what the latter two files look like now:</p>
<p>~/.bash_profile:<br /><code>source .bashrc</code></p>
<p>~/.bashrc:<br /><code>export PATH=/opt/local/bin:/opt/local/sbin:$PATH</code><br /><code>export MANPATH=/opt/local/share/man:$MANPATH</code></p>
]]></content:encoded>
			<wfw:commentRss>http://cousingirls.com/environment-problems-with-macports-pb-g4-os-x-105/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
