Changes between Version 5 and Version 6 of Installing/MacOSX


Ignore:
Timestamp:
10/24/2010 01:52:30 AM (14 years ago)
Author:
johnnyg
Comment:

Fixed up layout a bit

Legend:

Unmodified
Added
Removed
Modified
  • Installing/MacOSX

    v5 v6  
     1= Intalling Deluge on MaxOSX = 
     2 
    13This works on Snow Leopard 10.6.4 with Deluge 1.3.0 
    2 [[BR]] 
    3 [[BR]]These instructions assume a clean install of Snow (no XQuartz, Winebottler, or MacPorts / Fink installed before starting at step 1). 
    4 [[BR]]This methodology is somewhat time consuming, but is less error-prone for the uninitiated. 
    5 [[BR]] 
    6 [[BR]]1. Install X11 from your Leopard CD (it should already be installed as it installs by default on Leopard and Snow Leopard) 
    7 [[BR]]2. Download Xcode tools 3.2.4 from Apple Developer Connection (free registration required for download). 
    8 [[BR]]3. Download and install Mac Ports from MacPorts.org. (1.9.1 as of this writing). 
    9 [[BR]]4. Open a terminal prompt (from Utilities) and escalate your privileges. (sudo -s). 
    10 [[BR]]5. After Mac Ports has installed issue the following port command to install all prereqs for Deluge in terminal: 
    11 [[BR]]port -v install python26 +no_tkinter python_select py26-twisted py26-twisted-web2 openssl py26-openssl py26-simplejson py26-setuptools gettext py26-geoip py26-chardet py26-game py26-gtk py-gtk2 librsvg libnotify py26-xdg py26-mako wget 
    12 [[BR]]6. Go watch a movie. It's gonna be awhile for the downloading and compiling above. 
    13 [[BR]]7. After installs above complete, select python26 as your default (python_select python26). 
    14 [[BR]]8. Create a temporary directory to build Deluge in (I use ~/Build so mkdir -p ~/Build). 
    15 [[BR]]9. cd to that directory (cd ~/Build). 
    16 [[BR]]10. Need a slightly older Boost to compile successfully.  Get it. (svn co -r 55868 http://svn.macports.org/repository/macports/trunk/dports/devel/boost) 
    17 [[BR]]11. Build it.  (cd boost && port -v install +python26) 
    18 [[BR]]10. Get the source code for Deluge (cd .. && wget http://download.deluge-torrent.org/source/deluge-1.3.0.tar.bz2). 
    19 [[BR]]11. Untar it (tar -xvjf deluge-1.3.0.tar.bz2). 
    20 [[BR]]12. cd to that directory (cd deluge-1.3.0). 
    21 [[BR]]13. Get the source code for libtorrent (./get_libtorrent.sh) 
    22 [[BR]]14. Link boost into it (cd libtorrent/include && ln -s /opt/local/include/boost .) Note the "." at the end. 
    23 [[BR]]15. Compile Deluge. (cd ../.. && python ./setup.py install) Takes about 10-20 minutes. 
    24 [[BR]]16. Test it. (cd /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin && ./deluged -d -L debug). 
    25 [[BR]]17. If deluged runs fine (and it should if you did it right), ctrl+c to quit it, then make links to your new bins in /opt/local/bin ({{{cd /opt/local/bin && for i in `ls /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/deluge*`; do ln -s $i .; done}}}). 
    26 [[BR]]18. Copy plugins into the correct place so that they will run. (cp ~/Build/deluge-1.3.0/deluge/plugins/*.egg ~/.config/deluge/plugins) 
    27 [[BR]]19. exit your privileged terminal shell (exit). 
    28 [[BR]]20. Go to your $HOME directory, and rehome your rights in config to your normal account ({{{cd $HOME && sudo chown -R `whoami`:staff .config}}}) 
    29 [[BR]]21. cd $HOME, and load deluged (cd $HOME && deluged &). 
    30 [[BR]]22. Start deluge. (deluge &). 
    31 [[BR]]23. Try to whine less. 
     4 
     5These instructions assume a clean install of Snow (no XQuartz, Winebottler, or !MacPorts / Fink installed before starting at step 1). 
     6 
     7This methodology is somewhat time consuming, but is less error-prone for the uninitiated. 
     8 
     9 1. Install X11 from your Leopard CD (it should already be installed as it installs by default on Leopard and Snow Leopard) 
     10 1. Download Xcode tools 3.2.4 from Apple Developer Connection (free registration required for download). 
     11 1. Download and install Mac Ports from !MacPorts.org. (1.9.1 as of this writing). 
     12 1. Open a terminal prompt (from Utilities) and escalate your privileges: 
     13{{{ 
     14#!sh 
     15sudo -s 
     16}}} 
     17 1. After Mac Ports has installed issue the following port command to install all prereqs for Deluge in terminal: 
     18{{{ 
     19#!sh 
     20port -v install python26 +no_tkinter python_select py26-twisted py26-twisted-web2 openssl py26-openssl py26-simplejson py26-setuptools gettext py26-geoip py26-chardet py26-game py26-gtk py-gtk2 librsvg libnotify py26-xdg py26-mako wget 
     21}}} 
     22 1. Go watch a movie. It's gonna take awhile for the downloading and compiling above to finish. 
     23 1. After installs above complete, select python26 as your default: 
     24{{{ 
     25#!sh 
     26python_select python26 
     27}}} 
     28 1. Create a temporary directory to build Deluge in (e.g. I use ~/Build): 
     29{{{ 
     30#!sh 
     31mkdir -p ~/Build 
     32}}} 
     33 1. cd to that directory (using ~/Build again): 
     34{{{ 
     35#!sh 
     36cd ~/Build 
     37}}} 
     38 1. Need a slightly older Boost to compile successfully.  Get it: 
     39{{{ 
     40#!sh 
     41svn co -r 55868 http://svn.macports.org/repository/macports/trunk/dports/devel/boost 
     42}}} 
     43 1. Build it: 
     44{{{ 
     45#!sh 
     46cd boost && port -v install +python26 
     47}}} 
     48 1. Get the source code for Deluge: 
     49{{{ 
     50#!sh 
     51cd .. && wget http://download.deluge-torrent.org/source/deluge-1.3.0.tar.bz2 
     52}}} 
     53 1. Untar it: 
     54{{{ 
     55#!sh 
     56tar -xvjf deluge-1.3.0.tar.bz2 
     57}}} 
     58 1. cd to that directory: 
     59{{{ 
     60#!sh 
     61cd deluge-1.3.0 
     62}}} 
     63 1. Get the source code for libtorrent: 
     64{{{ 
     65#!sh 
     66./get_libtorrent.sh 
     67}}} 
     68 1. Link boost into it: 
     69{{{ 
     70#!sh 
     71cd libtorrent/include && ln -s /opt/local/include/boost . 
     72}}} 
     73 Note the "." at the end. 
     74 1. Compile Deluge: 
     75{{{ 
     76#!sh 
     77cd ../.. && python ./setup.py install 
     78}}} 
     79 Takes about 10-20 minutes. 
     80 1. Test it: 
     81{{{ 
     82#!sh 
     83cd /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin && ./deluged -d -L debug 
     84}}} 
     85 1. If deluged runs fine (and it should if you did it right), ctrl+c to quit it, then make links to your new bins in /opt/local/bin: 
     86{{{ 
     87#!sh 
     88cd /opt/local/bin && for i in `ls /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/ deluge*`; do ln -s $i .; done 
     89}}} 
     90 1. Copy plugins into the correct place so that they will run: 
     91{{{ 
     92#!sh 
     93cp ~/Build/deluge-1.3.0/deluge/plugins/*.egg ~/.config/deluge/plugins 
     94}}} 
     95 1. exit your privileged terminal shell: 
     96{{{ 
     97#!sh 
     98exit 
     99}}} 
     100 1. Go to your $HOME directory, and rehome your rights in config to your normal account 
     101{{{ 
     102#!sh 
     103cd $HOME && sudo chown -R `whoami`:staff .config 
     104}}} 
     105 1. cd $HOME, and load deluged: 
     106{{{ 
     107#!sh 
     108cd $HOME && deluged & 
     109}}} 
     110 1. Start deluge: 
     111{{{ 
     112#!sh 
     113deluge & 
     114}}}