Version 12 (modified by comedian, 13 years ago) (diff) |
---|
Intalling Deluge on MacOSX
This works on Snow Leopard 10.6.4 with Deluge 1.3.0
These instructions assume a clean install of Snow (no XQuartz, Darwine, Winebottler, or MacPorts / Fink installed before starting at step 1).
This methodology is somewhat time consuming, but is less error-prone for the uninitiated.
- Install X11 from your Leopard CD (it should already be installed as it installs by default on Leopard and Snow Leopard)
- Download Xcode tools 3.2.4 from Apple Developer Connection (free registration required for download).
- Download and install Mac Ports from MacPorts.org. (1.9.1 as of this writing).
- Open a terminal prompt (from Utilities) and escalate your privileges:
sudo -s
- Issue the following port command to install all prereqs for Deluge in terminal:
port -v install python26 +no_tkinter python_select py26-twisted py26-twisted-web2 openssl py26-openssl py26-simplejson gettext py26-geoip py26-chardet py26-game py26-gtk py-gtk2 librsvg libnotify py26-xdg py26-mako wget
- Go watch a movie. It's gonna take awhile for the downloading and compiling above to finish.
- After installs above complete, select python26 as your default:
python_select python26
- Create a temporary directory to build Deluge in (e.g. I use ~/Build):
mkdir -p ~/Build
- cd to that directory (using ~/Build again):
cd ~/Build
- Need a slightly older Boost to compile successfully. Get it:
svn co -r 55868 http://svn.macports.org/repository/macports/trunk/dports/devel/boost
- Build it:
cd boost && port -v install +python26
- Get the source code for Deluge:
cd .. && wget http://download.deluge-torrent.org/source/deluge-1.3.0.tar.bz2
- Untar it:
tar -xvjf deluge-1.3.0.tar.bz2
- cd to that directory:
cd deluge-1.3.0
- Get the source code for libtorrent:
./get_libtorrent.sh
- Link boost into it:
cd libtorrent/include && ln -s /opt/local/include/boost .
(Note the "." at the end.)
- Compile Deluge:
cd ../.. && python ./setup.py install
(Takes about 10-20 minutes.)
- Test it:
cd /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin && ./deluged -d -L debug
- 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
- Copy plugins into the correct place so that they will run:
cp ~/Build/deluge-1.3.0/deluge/plugins/*.egg ~/.config/deluge/plugins
- exit your privileged terminal shell:
exit
- Go to your $HOME directory, and rehome your rights in config to your normal account
cd $HOME && sudo chown -R `whoami`:staff .config
- cd $HOME, and load deluged:
cd $HOME && deluged &
- Start deluge:
deluge &