Tampilkan postingan dengan label debian. Tampilkan semua postingan
Tampilkan postingan dengan label debian. Tampilkan semua postingan

Senin, 23 Maret 2009

How-To: Compile and Install Banshee 1.4.3 in Debian Lenny

Banshee is a popular audio player written using the GTK toolkit. Currently at version 1.4.3, Banshee is a good alternative to players like Rhythmbox or Exaile for GNOME or Amarok for KDE.

This release comes with improved MTP (media transfer protocol) support and several bug fixes.

Here are several easy to follow steps for compiling Banshee on Debian Lenny (since Debian comes with Banshee 1.0):

Notice that iPod support will not be available!


1. Install the tools needed for compilation
Type in a terminal as root:

apt-get install build-essential

2. Install the dependencies
Make sure the sources repositories are enabled in the /etc/apt/sources.list file (you should have a line which starts with deb-src, like deb-src ftp://ftp.ro.debian.org/debian/ lenny main contrib non-free) and then issue the following commands as root:

apt-get update
apt-get build-dep banshee

3. Download the source tarball
Download the tarball from the official website, here (direct link), then uncompress it:

tar -xjf banshee-1-1.4.3.tar.bz2

4. Compile and install Banshee
Issue the following commands inside the banshee-1-1.4.3 directory:

./configure --disable-ipod
make
make install

The last one as root.

Although I tried to install Banshee as normal user too (using ./configure --prefix), I've got an error when it was still trying to write to /usr so I'm not sure whether it can be installed as normal user this way.

You can run Banshee by pressing ALT+F2 and typing banshee-1 in the Run dialogue that appears.

To uninstall it, just issue the command make uninstall as root from inside the banshee-1-1.4.3 directory.

Senin, 12 Januari 2009

How-To: Compile and Install Code::Blocks from Source in Debian Lenny

Code::Blocks is a complete, cross-platform integrated development environment for C and C++, built using the wxWidgets toolkit. Code::Blocks is available on Linux, Windows and OS X, so you may find it useful on Linux if you switched and are already used to it or an IDE like Dev-C++, for example.


The last stable version is 8.02, and was released almost an year ago. Since Code::Blocks is not included in the Debian repositories, I will show in this tutorial how to compile and install it from source in Lenny, the upcoming stable Debian release. Just follow the steps below:

1. Download the source and uncompress it
Download the source code from the official website, here, then make sure to switch the current directory to the one where you saved the source and uncompress it using the following command:

tar -xjf codeblocks-8.02-src.tar.bz2

2. Install the needed dependencies
This should be easy since only a few dependencies are needed. First, make sure you have the build-essential meta-package installed, which contains tools like make or g++, needed for compilation:

su
apt-get install build-essential

Next, install the development packages needed by Code::Blocks:

su
apt-get install wx-common libwxgtk2.8-dev libgtk2.0-dev

You will also need package zip to build it:

apt-get install zip

3. Update wx-config to point to wxWidgets 2.8
Issue the following command as root:

update-alternatives --config wx-config

What appears should look something like this:

# update-alternatives --config wx-config
There are 4 alternatives which provide `wx-config'.

Selection Alternative
-----------------------------------------------
1 /usr/lib/wx/config/base-unicode-release-2.6
+
2 /usr/lib/wx/config/gtk2-unicode-release-2.6

3 /usr/lib/wx/config/base-unicode-release-2.8

* 4 /usr/lib/wx/config/gtk2-unicode-release-2.8


Press enter to keep the default[*], or type selection number:
4
Using '/usr/lib/wx/config/gtk2-unicode-release-2.8' to provide 'wx-config'.

Select option 4 from the list, that is /usr/lib/wx/config/gtk2-unicode-release-2.8

4. Compile from source and install
Make sure the working directory is the uncompressed source of Code::Blocks (codeblocks-8.02) and issue the usual commands:

./configure
make
make install

The last one as root.

5. Run ldconfig as root
Finally, run the ldconfig utility as root to update the links to shared libraries:

su
ldconfig

Code::Blocks should be now properly installed in /usr/local/bin/ and you can run it using codeblocks from a terminal or from a run dialogue (ALT+F2 and type codeblocks in KDE and GNOME).


Related articles
Compiling C/C++ Code in Ubuntu and Available IDEs
Running Google Chrome Under Wine 1.1.6 in Debian
Create a Launcher in KDE3