gEDA On The Mac

There are a number of options with running gEDA on the mac. You can install via the fink or macports package management or build from the source or some combination of the two. Both fink and macports will install software in a directory off the root or “sandbox” (fink /sw and macports /opt) so they don't co-mingle software with your native mac software. You can read more about the pros and cons of each online.

I have both fink and macports package managers installed and have been using macports lately. I added some code to my .bash_profile that lets me choose what package manager I want to use on shell startup by setting my path variable. I've pasted it below.

Personally, I use macports to install dependencies and build and install geda from the source. This makes it easy for me to grab the latest code from the git repository.

PS3="Which port?:"
echo "Choose from the list below."
select NAME in macports fink mac
do
	break
done
echo "Setting path to prefer $NAME."
case $NAME in 
macports) export PATH=/opt/local/bin:${PATH} PS1="opt-\A-[\w]\$" ;; 
fink) test -r /sw/bin/init.sh && . /sw/bin/init.sh PS1="sw-\A-[\w\\$" ;; 
*) PS1="osx-\A-[\w]\$" ;; 
esac

echo "Path set to " $PATH

gEDA via Fink

You can link to instructions on installing gEDA via fink from the gEDA download page or go directly to http://www.ghz.cc/charles/fink/. Using fink, gEDA can be installed from binaries or compiled from a recent development snapshot, if the fink unstable branch is enabled. (Please see the Fink documentation on how to enable the unstable branch.)

Once Fink is installed, gEDA (and other programs) can be installed from the command line or through a graphical tool called fink commander. From the command line, the principal gEDA suite programs can be installed with the command:

fink install geda-bundle

gEDA via macports

I am in the process of putting together a macports release of gEDA. You can download macports from http://www.macports.org/. I use macports with the GUI Porticus. You can download that from here http://porticus.alittledrop.com/.

Until the macports release is ready, you can use Porticus (or macports command line) to install these dependent projects, then download and compile the source from the gEDA download page.

I've also installed python25 and python_select. python_select let's you choose what version of python your mac will run as the default python.

Building The Project

Once you have the dependencies installed (either via fink or macports) just follow the instructions in the developer section for building and installing. I had no issues (there was an issue with strnlen function being used in gschem, which isn't part of the standard gcc libraries, but once that was fixed I was able to build and run with no problems). I have also setup an XCode project to debug gEDA code in. I will post that up to the site as soon as it's ready.

Working With Python

Currently I am working with myEclipse and the PyDev python plugin. You can download Eclipse http://www.eclipse.org/ or myEclipse http://www.eclipse.org/ which is Eclipse bundled with plugins and currently costs $31.75 per year for a subscription. You can download PyDev here http://pydev.sourceforge.net/. It seems to have an annoying popup unless you buy a license, but other than that it seems to work well in Eclipse for working with python code.

Current Mac Issues

gEDA via VirtualBox

An alternative method to run gEDA programs on the Mac is to install them under Linux in an virtualization environment. VirtualBox is a professional-grade x86 virtualization program that is available under the GPL. After installing this program, you can download and install a linux distribution within that environment. This method has the advantage of using precompiled linux-oriented binaries, and installatoin - even accounting for for downloading and installing the guest OS - can be very fast compared to compiling and building the gEDA suite in Fink.

The gEDA suite programs have been tested and appear to work properly under Ubuntu running within VirtualBox on the Mac. After downloading and installing VirtualBox, download Ubuntu and launch its installer, following the VirtualBox instructions. Once Ubuntu is installed, you can install gEDA following (simplified, standard) procedures for installing gEDA under linux. From the command line,

sudo apt-get install geda

This installs gschem , gnetlist, & gattrib. Then, to install additional applications:

sudo apt-get install geda-utils
sudo apt-get install pcb-gtk
sudo apt-get install gerbv
sudo apt-get install geda-xgsch2pcb