<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Installation on Mac</title><link>https://sourceforge.net/p/gtdev/wiki/Installation%2520on%2520Mac/</link><description>Recent changes to Installation on Mac</description><atom:link href="https://sourceforge.net/p/gtdev/wiki/Installation%20on%20Mac/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 11 Apr 2013 13:59:05 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/gtdev/wiki/Installation%20on%20Mac/feed" rel="self" type="application/rss+xml"/><item><title>Installation on Mac modified by Sebastian Barthmes</title><link>https://sourceforge.net/p/gtdev/wiki/Installation%2520on%2520Mac/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,3 +1,8 @@
+This was copied from the internal Wiki of Hummingbird
+TODO: Translate to english, update Links and Info
+
+
+
 [TOC]

 Die folgende Anleitung wurde mit Mac OS 10.6.5 getestet. Direkte Links zu allen benötigten Bibliotheken:
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sebastian Barthmes</dc:creator><pubDate>Thu, 11 Apr 2013 13:59:05 -0000</pubDate><guid>https://sourceforge.neta0f57c745e8e8ed2310542e2a7c34531c248f4fe</guid></item><item><title>Installation on Mac modified by Sebastian Barthmes</title><link>https://sourceforge.net/p/gtdev/wiki/Installation%2520on%2520Mac/</link><description>&lt;div class="markdown_content"&gt;&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#python"&gt;Python&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#numpy-scipy"&gt;Numpy &amp;amp; Scipy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#qt4-pyqt4"&gt;Qt4 &amp;amp; PyQt4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#argparse"&gt;Argparse&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#matplotlib"&gt;Matplotlib&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;Die folgende Anleitung wurde mit Mac OS 10.6.5 getestet. Direkte Links zu allen benötigten Bibliotheken:&lt;br /&gt;
&lt;span&gt;[http://www.python.org/ftp/python/2.6.6/python-2.6.6-macosx10.3.dmg]&lt;/span&gt;&lt;br /&gt;
&lt;span&gt;[http://sourceforge.net/projects/scipy/files/scipy/0.8.0/scipy-0.8.0-py2.6-python.org.dmg/download]&lt;/span&gt;&lt;br /&gt;
&lt;span&gt;[http://sourceforge.net/projects/numpy/files/NumPy/1.5.1/numpy-1.5.1-py2.6-python.org-macosx10.3.dmg/download]&lt;/span&gt;&lt;br /&gt;
&lt;span&gt;[http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.7.1.dmg]&lt;/span&gt;&lt;br /&gt;
&lt;span&gt;[http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.11.2.tar.gz]&lt;/span&gt;&lt;br /&gt;
&lt;span&gt;[http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.8.1.tar.gz]&lt;/span&gt;&lt;br /&gt;
&lt;span&gt;[http://pypi.python.org/packages/source/a/argparse/argparse-1.1.zip#md5=087399b73047fa5a6482037411ddc968]&lt;/span&gt;&lt;br /&gt;
&lt;span&gt;[http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/matplotlib-1.0.0-python.org-py2.6-macosx10.4.dmg/download]&lt;/span&gt;&lt;/p&gt;
&lt;h1 id="python"&gt;Python&lt;/h1&gt;
&lt;p&gt;Zunächst muss Python-2.6 installiert, da das durch Apple mitgelieferte Python mit manchen Modulen nicht lauffähig ist. Dazu auf der &lt;span&gt;[http://www.python.org/download/releases/ Python Download-Seite]&lt;/span&gt; Python in der Version 2.6.x als *.dmg herunterladen und installieren. &lt;/p&gt;
&lt;h1 id="numpy-scipy"&gt;Numpy &amp;amp; Scipy&lt;/h1&gt;
&lt;p&gt;Numpy und Scipy können auf den jeweiligen Sourceforge-Seiten heruntergeladen werden: &lt;span&gt;[http://sourceforge.net/projects/numpy/files/NumPy/ NumPy Download-Seite]&lt;/span&gt; und &lt;span&gt;[http://sourceforge.net/projects/scipy/files/scipy/ SciPy Download-Seite]&lt;/span&gt;. Jeweils die aktuellste Version auswählen und darauf achten, dass die entsprechende &lt;em&gt;.dmg Datei für die Python-Version 2.6.x heruntergeladen wird (enthält den String &lt;/em&gt;-py2.6-python. Beide Programme mittels des mitgelieferten Installers installieren&lt;/p&gt;
&lt;p&gt;Nun kann getestet werden, ob beide Module korrekt installiert wurden. Dazu einfach probeweise die Module in Python importieren:&lt;br /&gt;
&lt;pre&gt;&lt;br /&gt;
$ python&lt;/p&gt;
&lt;p&gt;Python 2.6.6 (r266:84374, Aug 31 2010, 11:00:51) &lt;br /&gt;
&lt;span&gt;[GCC 4.0.1 (Apple Inc. build 5493)]&lt;/span&gt; on darwin&lt;br /&gt;
Type "help", "copyright", "credits" or "license" for more information.&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;import numpy&lt;br /&gt;
import scipy&lt;br /&gt;
&lt;/pre&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;p&gt;Die beiden letzten Befehle sollten ohne Fehlermeldung lauffähig sein. Falls dies nicht der Fall ist, kann es sein, dass eine andere Python-Version gestartet wurde, für die die Module nicht installiert wurden (dies ist möglich, da Mac OS X eine eigene Python-Version mitliefert, die allerdings durch obige Installation ersetzt werden sollte). Ggf. muss manuell ein symbolischer Link in /usr/bin auf das richtige Python-Binary gesetzt werden, dieses befindet sich für gewöhnlich in /Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6:&lt;/p&gt;
&lt;pre&gt;
sudo rm /usr/bin/python
sudo ln -s /Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 /usr/bin/python
&lt;/pre&gt;

&lt;p&gt;Außerdem können nun noch jeweils Test-Routinen ausgeführt werden, die ein paar Rechnung zur Überprüfung durchführen (dazu muss das Python-Modul &lt;span&gt;[http://somethingaboutorange.com/mrl/projects/nose/0.11.2/ nose]&lt;/span&gt; zusätzlich installiert werden):&lt;br /&gt;
&lt;pre&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;numpy.test('1','10')&lt;br /&gt;
scipy.test('1',10')&lt;br /&gt;
&lt;/pre&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;h1 id="qt4-pyqt4"&gt;Qt4 &amp;amp; PyQt4&lt;/h1&gt;
&lt;p&gt;Nun Qt4 (es genügen die Libraries, nicht das gesamte SDK) von der &lt;span&gt;[http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x Qt Download-Seite]&lt;/span&gt; herunterladen. Dabei die Cocoa-Version auswählen.&lt;br /&gt;
Die Bibliothek wie gewohnt installieren.&lt;/p&gt;
&lt;p&gt;Für die PyQt4-Bindings braucht man zunächst die Bibliothek SIP und die eigentlichen Bindings. Dafür kann der Quelltext &lt;span&gt;[http://www.riverbankcomputing.co.uk/software/pyqt/download hier]&lt;/span&gt; und &lt;span&gt;[http://www.riverbankcomputing.co.uk/software/sip/download hier]&lt;/span&gt; heruntergeladen werden. Im Terminal nun die beiden Dateien entpacken und entsprechend installieren (siehe dazu auch die &lt;span&gt;[http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html Dokumentation]&lt;/span&gt;, u.A. muss beachtet werden, dass nur die 32bit-Version im Moment lauffähig ist und deshalb entsprechend konfiguriert werden muss):&lt;/p&gt;
&lt;pre&gt;
cd Downloads
tar xvzf sip-4.11.2.tar gz
tar xvzf PyQt-mac-gpl-4.8.1.tar.gz

cd sip-4.11.2
python configure.py --arch i386
make
make install

cd ..

cd PyQt-mac-gpl-4.8.1
python configure.py --use-arch i386
make make install
&lt;/pre&gt;

&lt;h1 id="argparse"&gt;Argparse&lt;/h1&gt;
&lt;p&gt;Der Quelltext von Argparse kann von der &lt;span&gt;[http://pypi.python.org/pypi/argparse/1.1 Download-Seite]&lt;/span&gt; des Projekts heruntergeladen werden. Diese Datei entpacken und im Terminal in dem entsprechenden Verzeichnis das Modul folgendermaßen installieren:&lt;/p&gt;
&lt;pre&gt;
python setup.py install
&lt;/pre&gt;

&lt;h1 id="matplotlib"&gt;Matplotlib&lt;/h1&gt;
&lt;p&gt;Matplotlib kann nun von der &lt;span&gt;[http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/ Sourceforge-Seite]&lt;/span&gt; des Projekt heruntergeladen werden. Am besten auch hier die *.dmg-Datei auswählen, da sie einen praktischen Installer enthält. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sebastian Barthmes</dc:creator><pubDate>Thu, 11 Apr 2013 13:58:00 -0000</pubDate><guid>https://sourceforge.net7eb6209f64cce42546d2dab5d1641348b880784b</guid></item></channel></rss>