特殊:Badtitle/NS100:CompileGaim:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
无编辑摘要
Wikibot留言 | 贡献
无编辑摘要
 
(未显示同一用户的3个中间版本)
第1行: 第1行:
{{From|https://help.ubuntu.com/community/CompileGaim}}
{{From|https://help.ubuntu.com/community/CompileGaim}}
{{Languages|UbuntuHelp:CompileGaim}}
{{Languages|UbuntuHelp:CompileGaim}}
'''This page is now obsolete.  It should be deleted as an unnecessary duplicate of [[UbuntuHelp:InstallPidgin2.0|Install Pidgin 2.0]].'''
'''This page is now obsolete.  It should be deleted as an unnecessary duplicate of [[UbuntuHelp:InstallPidgin2.0|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.
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: 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: 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.'''
'''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 ===
=== 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:
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 <code><nowiki>build-essential</nowiki></code> package.
You need the required compilers in order to manually compile a program, which can be found in the <code><nowiki>build-essential</nowiki></code> 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 <code><nowiki>checkinstall</nowiki></code> 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 <code><nowiki>checkinstall</nowiki></code> 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.
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.
<pre><nowiki>
<pre><nowiki>
sudo apt-get build-dep gaim
sudo apt-get build-dep gaim
</nowiki></pre>
</nowiki></pre>
If the above doesn't work, the packages you need to install are:
If the above doesn't work, the packages you need to install are:
<pre><nowiki>
<pre><nowiki>
第34行: 第23行:
libaudiofile-dev
libaudiofile-dev
</nowiki></pre>
</nowiki></pre>
'''The below three steps can be ignored if using 6.06 "Dapper"'''
'''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
To connect to MSN networks you will need SSL enabled.  This is acquired thru another library
<code><nowiki>libgnutls10-dev</nowiki></code>
<code><nowiki>libgnutls10-dev</nowiki></code>
Also make sure you have installed the GTK libraries that gaim depends on. These are the <code><nowiki>libgtk2.0-0 libgtk2.0-dev</nowiki></code> packages.
Also make sure you have installed the GTK libraries that gaim depends on. These are the <code><nowiki>libgtk2.0-0 libgtk2.0-dev</nowiki></code> packages.
The latest beta 3 requires the Perl module for parsing XML files, found in the <code><nowiki>libxml-parser-perl</nowiki></code> package.
The latest beta 3 requires the Perl module for parsing XML files, found in the <code><nowiki>libxml-parser-perl</nowiki></code> package.
=== Getting the source ===
=== Getting the source ===
Download the latest source version from here:
Download the latest source version from here:
[http://gaim.sourceforge.net/downloads.php Downloads]
[http://gaim.sourceforge.net/downloads.php Downloads]
or
or
[http://sourceforge.net/project/showfiles.php?group_id=235&package_id=253&release_id=405479 Downloads] (for the current 2.0Beta download)
[http://sourceforge.net/project/showfiles.php?group_id=235&package_id=253&release_id=405479 Downloads] (for the current 2.0Beta download)
(remember, you will want the source package.  These are the .tar.bz2 or .tar.gz files)
(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  
Unpack this file into your /tmp folder using Archive Manager  
=== Compiling ===
=== 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.
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 ====
==== Replacing your current version ====
Before compiling your new or Beta version you will want to uninstall 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:
You'll need to remove this package:
第67行: 第43行:
gaim
gaim
</nowiki></pre>
</nowiki></pre>
Open a terminal.
Open a terminal.
<pre><nowiki>
<pre><nowiki>
cd /tmp/gaim[version]
cd /tmp/gaim[version]
第79行: 第53行:
make
make
</nowiki></pre>
</nowiki></pre>
Create a DEB package and install it using checkinstall.  Supply the necessary information as checkinstall prompts you.
Create a DEB package and install it using checkinstall.  Supply the necessary information as checkinstall prompts you.
<pre><nowiki>
<pre><nowiki>
sudo checkinstall -D make install
sudo checkinstall -D make install
</nowiki></pre>
</nowiki></pre>
==== Alongside your current installation ====
==== Alongside your current installation ====
Open a terminal.
Open a terminal.
<pre><nowiki>
<pre><nowiki>
cd /tmp/gaim[version]
cd /tmp/gaim[version]
</nowiki></pre>
</nowiki></pre>
Specify a different folder to install your new or Beta version.
Specify a different folder to install your new or Beta version.
<pre><nowiki>
<pre><nowiki>
第100行: 第69行:
make
make
</nowiki></pre>
</nowiki></pre>
Create a DEB package and install it using checkinstall.  Supply the necessary information as checkinstall prompts you.
Create a DEB package and install it using checkinstall.  Supply the necessary information as checkinstall prompts you.
<pre><nowiki>
<pre><nowiki>
sudo checkinstall -D make install
sudo checkinstall -D make install
</nowiki></pre>
</nowiki></pre>
Rename '''/usr/bin/gaim''' to '''/usr/bin/gaim.ubuntu'''.  You can use this to run your current Gaim version.
Rename '''/usr/bin/gaim''' to '''/usr/bin/gaim.ubuntu'''.  You can use this to run your current Gaim version.
<pre><nowiki>
<pre><nowiki>
sudo dpkg-divert --divert /usr/bin/gaim.ubuntu --rename /usr/bin/gaim
sudo dpkg-divert --divert /usr/bin/gaim.ubuntu --rename /usr/bin/gaim
</nowiki></pre>
</nowiki></pre>
Create a link to '''/opt/gaim[version]/bin/gaim to /usr/bin/gaim'''.
Create a link to '''/opt/gaim[version]/bin/gaim to /usr/bin/gaim'''.
<pre><nowiki>
<pre><nowiki>
sudo ln -s /opt/gaim[version]/bin/gaim /usr/bin/gaim
sudo ln -s /opt/gaim[version]/bin/gaim /usr/bin/gaim
</nowiki></pre>
</nowiki></pre>
=== Running ===
=== 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.
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 [[UbuntuHelp:FirefoxNewVersion|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.
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.
<pre><nowiki>
<pre><nowiki>
sudo ln -s /opt/firefox/firefox-bin /opt/firefox/mozilla-firefox-bin
sudo ln -s /opt/firefox/firefox-bin /opt/firefox/mozilla-firefox-bin
</nowiki></pre>
</nowiki></pre>
[[category:CategoryDocumentation]] [[category:CategoryCleanup]]
[[category:CategoryDocumentation]] [[category:CategoryCleanup]]


[[category:UbuntuHelp]]
[[category:UbuntuHelp]]

2007年12月6日 (四) 10:25的最新版本

{{#ifexist: :CompileGaim/zh | | {{#ifexist: CompileGaim/zh | | {{#ifeq: {{#titleparts:CompileGaim|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:CompileGaim|1|-1|}} | zh | | }}

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