Saturday, November 18, 2006

Post HOWTO: Install LinuxDC++

First off, for those that don't know, LinuxDC++ is a Linux port of the file-sharing program DC++. It uses the DC++ core but with a GTK+ GUI. It has also been called by many other names including: linuxdcpp, ldcpp, dcpp, ldc++, dc++ for linux, wulfor. I'm a developer on LinuxDC++ and thought I'd write up a guide to install LinuxDC++ on Dapper and Edgy. There are a few older guides for Hoary and Breezy, but I've never really liked them since they install unnecessary packages, so I thought I'd write a fresh one for Dapper and Edgy.

First, download the required dependencies:

cvs
scons
build-essential
libgtk2.0-dev
libglade2-dev
zlib1g-dev
libbz2-dev

To do this in one command:
Code:
sudo apt-get install cvs scons build-essential libgtk2.0-dev libglade2-dev zlib1g-dev libbz2-dev
Note: I didn't have this problem, but some people also needed libglitz1-dev in order for pkg-config to detect GTK+ on Dapper. If scons fails when checking for GTK+, run this command:
Code:
sudo apt-get install libglitz1-dev
There are no official releases of the program since it's still in alpha. This means that there exists no official binaries for any distribution. However, to install LinuxDC++ you can download it through CVS. Run these commands in your home directory or somewhere else where you have write access:

Code:
cvs -d:pserver:anonymous@cvs.linuxdcpp.berlios.de:/cvsroot/linuxdcpp login
[hit enter when prompted for the password]

cvs -z3 -d:pserver:anonymous@cvs.linuxdcpp.berlios.de:/cvsroot/linuxdcpp co linuxdcpp
Now to install (you can set PREFIX to whatever, but I'd recommend /usr/local):
Code:
cd linuxdcpp
scons release=1 PREFIX=/usr/local
sudo scons install
To run:
Code:
linuxdcpp
Note: Turn off Assistive Technology Support before running LinuxDC++ (System->Preferences->AST). For some reason, it makes ldcpp run very slowly and display a bunch of errors.



When we update the source, you can update your linuxdcpp source and re-run the scons & scons install commands from above to install it again. To update the source:
Code:
cd /path/to/source/dir
cvs update -d
To uninstall LinuxDC++:
Code:
cd /path/to/source/dir
sudo scons -c install
Then you can delete your source directory if you like.

taken from http://www.ubuntuforums.org/showthread.php?t=193984

No comments: