Sam Odio's blog has been moved to http://sam.odio.com

You're reading a blog that's no longer maintained. Read why.

Wednesday, June 17, 2009

Installing macports on Snow Leopard

(permalink)
I haven't seen any documented "success" stories about getting macports (darwinports) running on Snow Leopard so I thought I'd publish the steps I took to install it on my friend's machine:

1. Installed XCode using the "Mac OS X Snow Leopard w/ Xcode 3.2" developer preview DVD from Apple. This install of XCode appears to include the x11 SDK. Note: Snow Leopard isn't publicly available yet. My friend is an Apple Developer and had early access to the OS.

2. Installed macports from source:
mkdir -p /opt/mports
cd /opt/mports
svn checkout http://svn.macports.org/repository/macports/trunk/base
cd ./base/
./configure --enable-readline
make
sudo make install
make distclean
sudo port -v selfupdate


3. Added "export PATH=/opt/local/bin:/opt/local/sbin:$PATH" to ~/.profile:
vim ~/.profile

Edit: I've only had problems with one package: Python 2.5/2.6. I get the error when building the package: ld: warning: in Python.framework/Versions/2.6/Python, file is not of required architecture.
blog comments powered by Disqus

Links to this post:

Create a Link

<< Home