LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1303|回复: 7

在 Fedora Core 6上安装Firefox 2的正确方法

[复制链接]
发表于 2007-2-25 19:05:06 | 显示全部楼层 |阅读模式
Installing Firefox 2 on Fedora Core 6.

Introduction.

Fedora Core 6 comes with Firefox 1.5 installed so if you wish to install Firefox 2 you will need to do this yourself. Firstly I will be installing
Firefox 2 by the side of Firefox 1.5 (NOT removing it) this is because various libraries provided by Firefox are required for other applications, most
notably yelp, the Gnome help browser.

If you remove the Firefox rpm then these applications will also be removed, probably not what you want. The list of dependencies on my
system looks like this:

$ rpm -e firefox-1.5.0.9-1.fc6
error: Failed dependencies:
        libgtkembedmoz.so is needed by (installed) devhelp-0.12-9.fc6.i386
        libgtkembedmoz.so is needed by (installed) yelp-2.16.0-11.fc6.i386
        libxpcom.so is needed by (installed) devhelp-0.12-9.fc6.i386
        libxpcom.so is needed by (installed) yelp-2.16.0-11.fc6.i386
        libxpcom_core.so is needed by (installed) yelp-2.16.0-11.fc6.i386
        gecko-libs = 1.8.0.9 is needed by (installed) devhelp-0.12-9.fc6.i386
        gecko-libs = 1.8.0.9 is needed by (installed) yelp-2.16.0-11.fc6.i386


Download and install.

First download the latest Firefox 2 from mozilla.com, this is a tar.gz
compressed file. Save the file wherever you wish, probably your home directory is easiest.

Open a terminal and cd into the location of the saved file then untar the file into your /usr/lib/ directory, you will need to be root to do this.

$ tar -xzvf firefox-2.0.tar.gz -C /usr/lib/


This will create a new folder called firefox under your /usr/lib/ directory containing the uncompressed files.

Note that this will not overwrite your current install as that is located in a directory called /usr/lib/firefox-1.5.x.x depending on the
version installed. Also this new version will use the same profile as your currently installed Firefox version.

Create the symbolic link to Firefox 2.

If you wish to run Firefox 2 from this location just run /usr/lib/firefox/firefox but it's easier if you replace the symbolic link pointing to Firefox 1.5
so you can run Firefox by just typing firefox in a terminal.

This will also have the effect that your Gnome menus will also run Firefox 2 instead of Firefox 1.5.

To do this do the following as root:

$ cd /usr/bin/
rm firefox
rm: remove symbolic link `firefox'? y
ln -s /usr/lib/firefox/firefox


If you do not already have Firefox installed you will need to install the compatibility standard C++ library from GCC 3.3.4. To do this simply
use yum to install the package.

$ yum install compat-libstdc++-33


Now running the command 'firefox' in a terminal open Firefox 2 and not Firefox 1.5.

If you update your Firefox 1.5 using yum.

Doing this will overwrite the symbolic link located in /usr/bin/ to point to the /usr/lib/firefox-1.5.x.x/firefox that you have just installed. For
this reason you will need to do the above steps again so the link once again points to your Firefox 2 install location.

Updating Firefox 2.

To update your Firefox 2 installation only takes a minute. If like me the 'Check for updates' route in Firefox itself never works (in my case it
tries to update but just loops indefinitely) it's easier just to delete your old installation and download the program again.

Assuming you've downloaded the tar.gz package to your home directory just do the following as root.

$ rm -rf /usr/lib/firefox
tar -xzvf firefox-2.0.0.1.tar.gz -C /usr/lib/


This first deletes your /usr/lib/firefox directory and all it's contents and then just recreates the directory with the new install. Doing this
has no effect of your profile information such as passwords and cookies as they are located in your $HOME/.mozilla directory.

You do not need to recreate the symbolic link in /usr/bin/ since this still points to /usr/lib/firefox/firefox which is the correct location.
发表于 2007-2-25 21:02:33 | 显示全部楼层
yum --enablerepo=development install firefox
或者
yum --enablerepo=development update firefox
回复 支持 反对

使用道具 举报

发表于 2007-2-27 00:37:00 | 显示全部楼层
Post by log2002
yum --enablerepo=development install firefox
或者
yum --enablerepo=development update firefox

不要直接从development里的二进制包安装,下里面的源码包自己编译,否则以后使用中会出一些问题,比如我直接安装后,编译chmsee1.0beta时出现了无法找到gecko等问题,而自己编译的firefox就没问题。
回复 支持 反对

使用道具 举报

发表于 2007-2-27 05:30:43 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2007-5-21 01:22:19 | 显示全部楼层
我只这么做的
rm -rf /usr/lib/firefox-1.5.0.7
tar -xzvf firefox-cn2.0.0.3.tar.gz -C /usr/lib
之后点gnome的web图标firefox起不来
在终端中进入/usr/lib/firefox中输入firefox也没反应
我该怎么办?
回复 支持 反对

使用道具 举报

发表于 2007-5-21 06:49:17 | 显示全部楼层
Post by waynef
不要直接从development里的二进制包安装,下里面的源码包自己编译,否则以后使用中会出一些问题,比如我直接安装后,编译chmsee1.0beta时出现了无法找到gecko等问题,而自己编译的firefox就没问题。

自己编译FF?我可不干,CPU受不了,加上现在是夏天,会发生火灾的。
回复 支持 反对

使用道具 举报

发表于 2007-5-21 09:37:46 | 显示全部楼层
在很多linux大师的指导下,我已经顺利安装一段时间,好像最简单的事只要用yum的一条命令,具体介绍也在我们的这个论坛里面
回复 支持 反对

使用道具 举报

发表于 2007-5-21 12:31:48 | 显示全部楼层
Post by lincomet
自己编译FF?我可不干,CPU受不了,加上现在是夏天,会发生火灾的。

我的机器还行,编译firefox只要不到半个小时,那次编译了整个openoffice2.2用了4个半小时。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表