个人工具

UbuntuHelp:CompileGaim

来自Ubuntu中文

Wikibot讨论 | 贡献2007年12月6日 (四) 10:25的版本

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索

This page is now obsolete. It should be deleted as an unnecessary duplicate of Install Pidgin 2.0. This page is designed to help manually compile releases of the popular Gaim Instant Messenger client. This is used for compiling the latest release (if the Ubuntu package isn't yet available) or for testing Beta versions that are only available via source. Note: This requires downloading & manually installing a program from an outside source. This can potentially cause problems with your system. Note: Packages for gaim2 beta 3 may be found at http://people.ubuntu.com/~seb128/deb/, the personal website of ubuntu's maintainer. Should be easier than compiling. Note: Edgy (v6.10) includes gaim 2.0 beta 3.1; and gaim 2.0 beta 5 is available from http://people.ubuntu.com/~seb128/gaim-edgy/. Feisty (v.7.04) includes gaim 2.0 beta 6 or newer.

Dependencies

Gaim depends on a few other programs or packages to work correctly in Ubuntu. You will need to install (or verify installation) before being able to compile your own copy. Below are the dependent packages: You need the required compilers in order to manually compile a program, which can be found in the build-essential package. You also need checkinstall to generate a DEB package. This allows you to easily uninstall your new or Beta version in the future should the need arise. For this you will need the checkinstall package. This will check for & install any dependent package or library that is needed by gaim. This is the easiest way to make sure all dependencies are met.

sudo apt-get build-dep gaim

If the above doesn't work, the packages you need to install are:

libgnutls11-dev (or libgnutls10-dev distros before "Dapper")
libgtk2.0-0
libgtk2.0-dev
libxml-parser-perl
libao-dev
libaudiofile-dev

The below three steps can be ignored if using 6.06 "Dapper" To connect to MSN networks you will need SSL enabled. This is acquired thru another library libgnutls10-dev Also make sure you have installed the GTK libraries that gaim depends on. These are the libgtk2.0-0 libgtk2.0-dev packages. The latest beta 3 requires the Perl module for parsing XML files, found in the libxml-parser-perl package.

Getting the source

Download the latest source version from here: Downloads or Downloads (for the current 2.0Beta download) (remember, you will want the source package. These are the .tar.bz2 or .tar.gz files) Unpack this file into your /tmp folder using Archive Manager

Compiling

There are two ways in installing your new or Beta version. You can opt to remove your current version and install your new or Beta version, or you could keep your current one and have both versions at the same time.

Replacing your current version

Before compiling your new or Beta version you will want to uninstall your current version. You'll need to remove this package:

gaim

Open a terminal.

cd /tmp/gaim[version]
./configure --enable-gnutls=yes
make

Create a DEB package and install it using checkinstall. Supply the necessary information as checkinstall prompts you.

sudo checkinstall -D make install

Alongside your current installation

Open a terminal.

cd /tmp/gaim[version]

Specify a different folder to install your new or Beta version.

./configure --enable-gnutls=yes --prefix=/opt/gaim[version]
make

Create a DEB package and install it using checkinstall. Supply the necessary information as checkinstall prompts you.

sudo checkinstall -D make install

Rename /usr/bin/gaim to /usr/bin/gaim.ubuntu. You can use this to run your current Gaim version.

sudo dpkg-divert --divert /usr/bin/gaim.ubuntu --rename /usr/bin/gaim

Create a link to /opt/gaim[version]/bin/gaim to /usr/bin/gaim.

sudo ln -s /opt/gaim[version]/bin/gaim /usr/bin/gaim

Running

You can now run your new version of gaim using the same way you always have. Either through the menu or using gaim from the terminal. If you have replaced the default installation of Firefox with the latest version as per FirefoxNewVersion, you may have an issue when clicking on hypertext links within Gaim instant messages where you seemingly get no response when you expect Firefox to open them. The issue is that gnome-open is executing either /usr/lib/mozilla-firefox/run-mozilla.sh or /opt/firefox/run-mozilla.sh which then looks for the Firefox executable under the name mozilla-firefox-bin in its installation directory. You can run the command below to create a link that will fix the problem and allow you to avoid editing the run-mozilla.sh files.

sudo ln -s /opt/firefox/firefox-bin /opt/firefox/mozilla-firefox-bin