Version 8 (modified by aris, 11 years ago) (diff)

Adds info for installation on recent headless systems, without X11 related packages.

Installing Deluge On FreeBSD

Deluge (1.3.x) is available in Freshports, with dependencies correctly identified and also stable.

Install package

pkg_add -r deluge

Install from Ports

For desktop use (X11):

cd /usr/ports/net-p2p/deluge && make install clean

Or using portmaster:

portmaster net-p2p/deluge

Note: The above commands should work correctly to install UI and Daemon components on FreeBSD 7.2 or later, installing the Python/Boost? dependencies as required.


For headless setups (no X11):

cd /usr/ports/net-p2p/deluge && make WITHOUT_X11=yes install clean

and disable GTK2 in the port configuration options.

Note: Option WITHOUT_X11="YES" can also be set globally (for all port builds) in /etc/make.conf. As of (at least) FreeBSD-9.1, WITHOUT_X11 is deprecated and use of OPTIONS_UNSET=X11 in make.conf is advised instead (and should probably be preferred for versions that support it.

Manual installation (Outdated v1.1.x)

To install Deluge in FreeBSD it is similar to doing it from source. This example will be pulling from the 1.1.0_RC branch. First you need subversion for svn access:

cd /usr/ports/devel/subversion; make install clean

Before you get other dependencies, you need to compile boost with python support. Do not use devel/boost-python, for some reason this doesn't work. We will compile boost manually like this:

cd /usr/ports/devel/boost; make -DWITH_PYTHON install clean

Note that "-DWITH_PYTHON" is essential here.

There are several other dependencies that need to be met as well including Python and other libraries. If you have the portinstall package installed you can do:

portinstall python25 py-setuptools py-xdg py-gobject py-gtk2 librsvg2

or

cd /usr/ports/devel/python25; make install clean;
cd /usr/ports/devel/py-setuptools; make install clean;
cd /usr/ports/devel/py-xdg; make install clean;
cd /usr/ports/devel/py-gobject; make install clean;
cd /usr/ports/x11-toolkits/py-gtk2; make install clean;
cd /usr/ports/graphics/librsvg2; make install clean;

Note that this will install dependencies for these packages as well. This is normal. This is the only time you will need to worry about all of these packages. You can upgrade Deluge without having to touch these. Also note that when you install librsvg2, you do NOT want to enable Mozilla support unless you are using Firefox 2.x.

After the dependencies are met, you can get Deluge from the svn. This will copy Deluge from the svn to a directory called deluge.

svn co http://svn.deluge-torrent.org/branches/1.1.0_RC deluge

Once that finishes, just:

cd deluge

Then build:

python setup.py build

Then either su or sudo:

python setup.py install

And that's it. Drop back to a regular user and start having fun with Deluge! If I missed something regarding a FreeBSD install, please contact AlmightyOatmeal on Freenode.