特殊:Badtitle/NS100:CompileGaim
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/CompileGaim }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/af | • {{#if: UbuntuHelp:CompileGaim|Afrikaans| [[::CompileGaim/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/ar | • {{#if: UbuntuHelp:CompileGaim|العربية| [[::CompileGaim/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/az | • {{#if: UbuntuHelp:CompileGaim|azərbaycanca| [[::CompileGaim/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/bcc | • {{#if: UbuntuHelp:CompileGaim|جهلسری بلوچی| [[::CompileGaim/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/bg | • {{#if: UbuntuHelp:CompileGaim|български| [[::CompileGaim/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/br | • {{#if: UbuntuHelp:CompileGaim|brezhoneg| [[::CompileGaim/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/ca | • {{#if: UbuntuHelp:CompileGaim|català| [[::CompileGaim/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/cs | • {{#if: UbuntuHelp:CompileGaim|čeština| [[::CompileGaim/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/de | • {{#if: UbuntuHelp:CompileGaim|Deutsch| [[::CompileGaim/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/el | • {{#if: UbuntuHelp:CompileGaim|Ελληνικά| [[::CompileGaim/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/es | • {{#if: UbuntuHelp:CompileGaim|español| [[::CompileGaim/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/fa | • {{#if: UbuntuHelp:CompileGaim|فارسی| [[::CompileGaim/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/fi | • {{#if: UbuntuHelp:CompileGaim|suomi| [[::CompileGaim/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/fr | • {{#if: UbuntuHelp:CompileGaim|français| [[::CompileGaim/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/gu | • {{#if: UbuntuHelp:CompileGaim|ગુજરાતી| [[::CompileGaim/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/he | • {{#if: UbuntuHelp:CompileGaim|עברית| [[::CompileGaim/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/hu | • {{#if: UbuntuHelp:CompileGaim|magyar| [[::CompileGaim/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/id | • {{#if: UbuntuHelp:CompileGaim|Bahasa Indonesia| [[::CompileGaim/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/it | • {{#if: UbuntuHelp:CompileGaim|italiano| [[::CompileGaim/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/ja | • {{#if: UbuntuHelp:CompileGaim|日本語| [[::CompileGaim/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/ko | • {{#if: UbuntuHelp:CompileGaim|한국어| [[::CompileGaim/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/ksh | • {{#if: UbuntuHelp:CompileGaim|Ripoarisch| [[::CompileGaim/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/mr | • {{#if: UbuntuHelp:CompileGaim|मराठी| [[::CompileGaim/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/ms | • {{#if: UbuntuHelp:CompileGaim|Bahasa Melayu| [[::CompileGaim/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/nl | • {{#if: UbuntuHelp:CompileGaim|Nederlands| [[::CompileGaim/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/no | • {{#if: UbuntuHelp:CompileGaim|norsk| [[::CompileGaim/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/oc | • {{#if: UbuntuHelp:CompileGaim|occitan| [[::CompileGaim/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/pl | • {{#if: UbuntuHelp:CompileGaim|polski| [[::CompileGaim/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/pt | • {{#if: UbuntuHelp:CompileGaim|português| [[::CompileGaim/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/ro | • {{#if: UbuntuHelp:CompileGaim|română| [[::CompileGaim/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/ru | • {{#if: UbuntuHelp:CompileGaim|русский| [[::CompileGaim/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/si | • {{#if: UbuntuHelp:CompileGaim|සිංහල| [[::CompileGaim/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/sq | • {{#if: UbuntuHelp:CompileGaim|shqip| [[::CompileGaim/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/sr | • {{#if: UbuntuHelp:CompileGaim|српски / srpski| [[::CompileGaim/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/sv | • {{#if: UbuntuHelp:CompileGaim|svenska| [[::CompileGaim/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/th | • {{#if: UbuntuHelp:CompileGaim|ไทย| [[::CompileGaim/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/tr | • {{#if: UbuntuHelp:CompileGaim|Türkçe| [[::CompileGaim/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/vi | • {{#if: UbuntuHelp:CompileGaim|Tiếng Việt| [[::CompileGaim/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/yue | • {{#if: UbuntuHelp:CompileGaim|粵語| [[::CompileGaim/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/zh | • {{#if: UbuntuHelp:CompileGaim|中文| [[::CompileGaim/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/zh-hans | • {{#if: UbuntuHelp:CompileGaim|中文(简体)| [[::CompileGaim/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompileGaim | UbuntuHelp:CompileGaim | {{#if: | :}}CompileGaim}}/zh-hant | • {{#if: UbuntuHelp:CompileGaim|中文(繁體)| [[::CompileGaim/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:CompileGaim|:CompileGaim|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :CompileGaim/zh | | {{#ifexist: CompileGaim/zh | | {{#ifeq: {{#titleparts:CompileGaim|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:CompileGaim|1|-1|}} | zh | | }}
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