1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6 <link rel=
"stylesheet" media=
"screen" type=
"text/css" href=
"./style.css" />
7 <link rel=
"stylesheet" media=
"screen" type=
"text/css" href=
"./design.css" />
8 <link rel=
"stylesheet" media=
"print" type=
"text/css" href=
"./print.css" />
10 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
15 <h2 class=
"sectionedit209"><a name=
"geda_on_the_mac" id=
"geda_on_the_mac">gEDA On The Mac
</a></h2>
20 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.
24 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.
28 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.
30 <pre class=
"code">PS3=
"Which port?:
"
31 echo
"Choose from the list below.
"
32 select NAME in macports fink mac
36 echo
"Setting path to prefer $NAME.
"
38 macports) export PATH=/opt/local/bin:${PATH} PS1=
"opt-\A-[\w]\$
" ;;
39 fink) test -r /sw/bin/init.sh
&& . /sw/bin/init.sh PS1=
"sw-\A-[\w\\$
" ;;
40 *) PS1=
"osx-\A-[\w]\$
" ;;
43 echo
"Path set to
" $PATH
</pre>
46 <!-- EDIT209 SECTION "gEDA On The Mac" [1-1251] -->
47 <h2 class=
"sectionedit210"><a name=
"geda_via_fink" id=
"geda_via_fink">gEDA via Fink
</a></h2>
51 You can link to instructions on installing gEDA via fink from the gEDA
<a href=
"http://www.geda.seul.org/download.html" class=
"urlextern" title=
"http://www.geda.seul.org/download.html" rel=
"nofollow">download page
</a> or go directly to
<a href=
"http://www.ghz.cc/charles/fink/" class=
"urlextern" title=
"http://www.ghz.cc/charles/fink/" rel=
"nofollow">http://www.ghz.cc/charles/fink/
</a>. 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.)
55 Once Fink is installed, gEDA (and other programs) can be installed from the command line or through a graphical tool called
<a href=
"http://finkcommander.sourceforge.net/" class=
"urlextern" title=
"http://finkcommander.sourceforge.net/" rel=
"nofollow">fink commander
</a>.
56 From the command line, the principal gEDA suite programs can be installed with the command:
59 <pre class=
"code">fink install geda-bundle
</pre>
62 <!-- EDIT210 SECTION "gEDA via Fink" [1252-1994] -->
63 <h2 class=
"sectionedit211"><a name=
"geda_via_macports" id=
"geda_via_macports">gEDA via macports
</a></h2>
67 I am in the process of putting together a macports release of gEDA. You can download macports from
<a href=
"http://www.macports.org/" class=
"urlextern" title=
"http://www.macports.org/" rel=
"nofollow">http://www.macports.org/
</a>. I use macports with the
<acronym title=
"Graphical User Interface">GUI
</acronym> Porticus. You can download that from here
<a href=
"http://porticus.alittledrop.com/" class=
"urlextern" title=
"http://porticus.alittledrop.com/" rel=
"nofollow">http://porticus.alittledrop.com/
</a>.
71 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.
75 <li class=
"level1"><div class=
"li"> gettext
</div>
77 <li class=
"level1"><div class=
"li"> guile
</div>
79 <li class=
"level1"><div class=
"li"> gtk2
</div>
81 <li class=
"level1"><div class=
"li"> groff
</div>
87 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.
91 <!-- EDIT211 SECTION "gEDA via macports" [1995-2641] -->
92 <h2 class=
"sectionedit212"><a name=
"building_the_project" id=
"building_the_project">Building The Project
</a></h2>
97 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.
101 <!-- EDIT212 SECTION "Building The Project" [2642-3145] -->
102 <h2 class=
"sectionedit213"><a name=
"working_with_python" id=
"working_with_python">Working With Python
</a></h2>
106 Currently I am working with myEclipse and the PyDev python plugin. You can download Eclipse
<a href=
"http://www.eclipse.org/" class=
"urlextern" title=
"http://www.eclipse.org/" rel=
"nofollow">http://www.eclipse.org/
</a> or myEclipse
<a href=
"http://www.eclipse.org/" class=
"urlextern" title=
"http://www.eclipse.org/" rel=
"nofollow">http://www.eclipse.org/
</a> which is Eclipse bundled with plugins and currently costs $
31.75 per year for a subscription. You can download PyDev here
<a href=
"http://pydev.sourceforge.net/" class=
"urlextern" title=
"http://pydev.sourceforge.net/" rel=
"nofollow">http://pydev.sourceforge.net/
</a>. 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.
110 <!-- EDIT213 SECTION "Working With Python" [3146-3644] -->
111 <h2 class=
"sectionedit214"><a name=
"current_mac_issues" id=
"current_mac_issues">Current Mac Issues
</a></h2>
114 <li class=
"level1"><div class=
"li"> gEDA Manager does not currently run because it needs pyinotify which is based on Linux kernel infrastructure. If anyone knows a way to get gEDA Manager running on mac that is appreciated. Otherwise I plan on looking at a cross platform way to modify gEDA Manager.
</div>
119 <!-- EDIT214 SECTION "Current Mac Issues" [3645-3949] -->
120 <h2 class=
"sectionedit215"><a name=
"geda_via_virtualbox" id=
"geda_via_virtualbox">gEDA via VirtualBox
</a></h2>
124 An alternative method to run gEDA programs on the Mac is to install them under Linux in an virtualization environment.
<a href=
"http://www.virtualbox.org/" class=
"urlextern" title=
"http://www.virtualbox.org/" rel=
"nofollow">VirtualBox
</a> is a professional-grade x86 virtualization program that is available under the
<acronym title=
"GNU General Public License">GPL
</acronym>. 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
<acronym title=
"Operating System">OS
</acronym> - can be
<em>very fast
</em> compared to compiling and building the gEDA suite in Fink.
128 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
<a href=
"http://www.ubuntu.com/getubuntu" class=
"urlextern" title=
"http://www.ubuntu.com/getubuntu" rel=
"nofollow">Ubuntu
</a> 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,
130 <pre class=
"code">sudo apt-get install geda
</pre>
134 This installs gschem , gnetlist,
& gattrib. Then, to install additional applications:
136 <pre class=
"code">sudo apt-get install geda-utlils
137 sudo apt-get install pcb-gtk
138 sudo apt-get install gerbv
139 sudo apt-get install geda-xgsch2pcb
</pre>
142 <!-- EDIT215 SECTION "gEDA via VirtualBox" [3950-] --></body>