[664] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
| 2 | <html> |
---|
| 3 | <head> |
---|
| 4 | <?php include("base.inc"); ?> |
---|
| 5 | <title>ASAP - ATNF Spectral line Analysis Package</title> |
---|
| 6 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> |
---|
| 7 | <meta name="DC.Creator" lang="en" content="personalName=Marquarding,Malte" /> |
---|
| 8 | <meta name="ATNF.Maintainer" content="contactName=Marquarding,Malte" /> |
---|
| 9 | <meta name="DC.Title" lang="en" content="Homepage of Malte Marquarding" /> |
---|
| 10 | <meta name="DC.Title.alt" lang="en" content="" /> |
---|
| 11 | <meta name="DC.Subject" lang="en" content="spectral line" /> |
---|
| 12 | <meta name="DC.Description" lang="en" content="Just some links and contact details" /> |
---|
| 13 | <meta name="DC.Date.created" scheme="ISO8601" content="2005-08-02" /> |
---|
| 14 | <meta name="ATNF.Site" content="Marsfield" /> |
---|
| 15 | <meta name="ATNF.AccessPermission" content="Public" /> |
---|
| 16 | <meta name="ATNF.MetaVersion" content="1.0" /> |
---|
| 17 | <?php standard_head(); ?> |
---|
| 18 | <STYLE TYPE="text/css"> |
---|
| 19 | <!-- |
---|
| 20 | B.asap { |
---|
| 21 | text-align: center; |
---|
| 22 | color: blue; |
---|
| 23 | } |
---|
| 24 | B.note { |
---|
| 25 | color: red; |
---|
| 26 | } |
---|
| 27 | --> |
---|
| 28 | </STYLE> |
---|
| 29 | </head> |
---|
| 30 | <body bgcolor="#FFFFFF" text="#000000"> |
---|
| 31 | <?php |
---|
| 32 | title_bar("atnf"); |
---|
| 33 | title_crumbs("/computing/software/"); |
---|
| 34 | ?> |
---|
| 35 | <!-- Start Content --> |
---|
| 36 | <h1>ASAP OS X (10.4)install</h1> |
---|
| 37 | This might or might not work with 10.3. Obviously, steps specific for |
---|
| 38 | 10.4 have to be omitted. |
---|
| 39 | <h2>Getting stuff</h2> |
---|
| 40 | <a href="http://pythonmac.org/packages">pythonmac.org</a> has |
---|
| 41 | pre-packaged python modules. |
---|
| 42 | <br> |
---|
| 43 | From the section <b>Mac OS X 10.4 (stock Python 2.3.5) </b> |
---|
| 44 | <br>get |
---|
| 45 | <ul> |
---|
| 46 | <li> |
---|
| 47 | <a |
---|
| 48 | href="http://pythonmac.org/packages/TigerPython23Compat.pkg.zip">TigerPython23Compat</a> </li> |
---|
| 49 | </ul> |
---|
| 50 | From the section <b>Mac OS X 10.3 (stock Python 2.3.0) </b> |
---|
| 51 | <br>get |
---|
| 52 | <ul> |
---|
| 53 | <li> |
---|
| 54 | <a |
---|
| 55 | href="http://pythonmac.org/packages/Numeric-23.7-py2.3-macosx10.3.zip">Numeric</a> </li> |
---|
| 56 | <li> |
---|
| 57 | <a |
---|
| 58 | href="http://pythonmac.org/packages/numarray-1.1.1-py2.3-macosx10.3.zip">numarray</a> </li> |
---|
| 59 | <a |
---|
| 60 | href="http://pythonmac.org/packages/matplotlib-0.82-py2.3-macosx10.3.zip">matplotlib</a> </li> |
---|
| 61 | </ul> |
---|
| 62 | <br> |
---|
| 63 | Next get <a href="http://ipython.scipy.org/dist">ipython</a> and run:<br> |
---|
| 64 | <pre> |
---|
| 65 | tar zxvf ipython-0.6.15.tar.gz |
---|
| 66 | sudo python setup.py install |
---|
| 67 | sudo ln -s ../../System/Library/Frameworks/Python.framework/Versions/2.3/bin/ipython /usr/bin/ipython |
---|
| 68 | </pre> |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | <h2>Tweaking it</h2> |
---|
| 72 | Run the following in a terminal:<br> |
---|
| 73 | OSX comes with your own pimp pre-installed, so better use him!<br> |
---|
| 74 | <pre> |
---|
| 75 | sudo python `python -c "import pimp; print pimp.__file__"` -i readline |
---|
| 76 | </pre> |
---|
| 77 | |
---|
| 78 | Then as 'root' or 'sudo' edit<br> |
---|
| 79 | <b>/System/Library/Frameworks/Python.framework/Versions/2.3/share/matplotlib/.matplotlibrc</b><br> |
---|
| 80 | In this file replace<br> |
---|
| 81 | <b> backend : GTKAgg</b><br> |
---|
| 82 | with<br> |
---|
| 83 | <b> backend : TkAgg</b><br> |
---|
| 84 | <p> |
---|
| 85 | Now we have to patch matplotlib: |
---|
| 86 | Get <a href="./figure.py">this</a> and run:<br> |
---|
| 87 | <pre> |
---|
| 88 | sudo cp -f figure.py /Library/Python/2.3/matplotlib/ |
---|
| 89 | </pre> |
---|
| 90 | |
---|
| 91 | <h2>Oh yeah there is ASAP, too</h2> |
---|
| 92 | Get |
---|
| 93 | <a |
---|
| 94 | href="ftp://ftp.atnf.csiro.au/pub/software/asap/asap_osx.tar.bz2">this</a>. |
---|
| 95 | Unpack and run.<br> |
---|
| 96 | <pre> |
---|
| 97 | tar jxvf asap_osx.tar.bz2 |
---|
| 98 | sudo sh install.sh |
---|
| 99 | </pre> |
---|
| 100 | |
---|
| 101 | <h2>Run ASAP</h2> |
---|
| 102 | Now you should be able to run "asap". On first run you might have to |
---|
| 103 | answer a few set-up questions (ipython) and get a lot of font related |
---|
| 104 | errors (matplotlib). Ignore these. |
---|
| 105 | |
---|
| 106 | <!-- End Content --> |
---|
| 107 | <?php footer(); ?> |
---|
| 108 | </body> |
---|
| 109 | </html> |
---|