LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-17-2008, 11:42 PM   #1
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473

Rep: Reputation: 30
Question How to properly install Firefox 3?


So far I have used default installation of Firefox that came as a part of install CD. But now that FF3 is out, I would like to install it.

I downloaded the bz2 package, unzipped it, and can run new FF3 from the folder it was installed in. However, is there a proper way to install it in such a way that it replaces existing installation, is available to each user so that when I run a 'firefox' command from a terminal, it actually launches the new version?
 
Old 06-18-2008, 12:05 AM   #2
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Quote:
Originally Posted by concoran View Post
So far I have used default installation of Firefox that came as a part of install CD. But now that FF3 is out, I would like to install it.

I downloaded the bz2 package, unzipped it, and can run new FF3 from the folder it was installed in. However, is there a proper way to install it in such a way that it replaces existing installation, is available to each user so that when I run a 'firefox' command from a terminal, it actually launches the new version?
I assume you're running Fedora 8 (as indicated by your profile). Since you installed Firefox 2 as a Fedora installable package, there is no easy way to replace it with the generic version of Firefox 3.

What I would do is copy the unzipped firefox directory under /opt (so that the full path looks like /opt/firefox) and, as root, create a symbolic link to /opt/firefox/firefox in /usr/bin as follows.
Code:
ln -s /opt/firefox/firefox /usr/bin/firefox-3
Once you do that, then all users will have access to the firefox 3 binaries and be able to run it by typing "firefox-3" from the terminal.
 
Old 06-18-2008, 01:00 AM   #3
Billgatus of Borg
Member
 
Registered: Sep 2005
Distribution: Open SUSE 12.2 x 64 KDE 4.8
Posts: 34

Rep: Reputation: 15
Quote:
Originally Posted by concoran View Post
So far I have used default installation of Firefox that came as a part of install CD. But now that FF3 is out, I would like to install it.

I downloaded the bz2 package, unzipped it, and can run new FF3 from the folder it was installed in. However, is there a proper way to install it in such a way that it replaces existing installation, is available to each user so that when I run a 'firefox' command from a terminal, it actually launches the new version?
Sorry, i haven't been able to get it to run at all under SuSE 9.2. i've tried to install it to /opt, as i did Firefox 2.0.0.x, but no luck so far.

When it does run (from terminal) it shows up as Firefox 1.5.0.7, which was the default version that came with this distribution. The only discernable difference is that this version is a .bz2 file, while 2.x was a simple tar.gz.

i have no idea why this particular version is being so difficult.
 
Old 06-18-2008, 01:31 AM   #4
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473

Original Poster
Rep: Reputation: 30
Diahard: Yes it worked. Thanks for your reply. I'll now need to figure out how to create a shortcut on the panel as well as the menu.
Billgatus of Borg: I used this command to unzip "tar --use-compress-program bzip2 -xvf firefox-3.0.tar.bz2". This will create a firefox directory in whatever directory you are. You can navigate to that directory and run 'firefox'. Use 'firefox &' instead.
 
Old 06-18-2008, 01:50 AM   #5
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Quote:
Originally Posted by concoran View Post
Diahard: Yes it worked. Thanks for your reply. I'll now need to figure out how to create a shortcut on the panel as well as the menu.
Billgatus of Borg: I used this command to unzip "tar --use-compress-program bzip2 -xvf firefox-3.0.tar.bz2". This will create a firefox directory in whatever directory you are. You can navigate to that directory and run 'firefox'. Use 'firefox &' instead.
Glad you got it to work.

As for the tar command, you can save your keystrokes by using this instead.

Code:
tar -xjvf firefox-3.0.tar.bz2
 
Old 06-18-2008, 09:55 AM   #6
Billgatus of Borg
Member
 
Registered: Sep 2005
Distribution: Open SUSE 12.2 x 64 KDE 4.8
Posts: 34

Rep: Reputation: 15
Quote:
Originally Posted by concoran View Post
Billgatus of Borg: I used this command to unzip "tar --use-compress-program bzip2 -xvf firefox-3.0.tar.bz2". This will create a firefox directory in whatever directory you are. You can navigate to that directory and run 'firefox'. Use 'firefox &' instead.
Thank you for the input to this matter. i finally managed to find the proper Firefox references on their page (they were unavailable for a while). It appears that Firefox is rather picky about how one sets up the link in BASH. One simply cannot navigate to the ~/firefox directory on a local install, and type firefox. What must happen is that the entire path should be typed in from the shell. It isn't a problem to alter the desktop link.

If the path is not followed correctly, the default version of Firefox (which came with the distribution) will open instead of the newly-installed version.

Now i will have to determine if i have the correct libraries for this version to work. This is a rather old version of SuSE, and i will not be upgrading until i see some reviews on Open SUSE 11.0, which is released tomorrow.
 
Old 06-18-2008, 10:47 AM   #7
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
That firefox 3 doesn't install itself system-wide is a serious annoyance to me. I downloaded it promptly because the many memory leaks in FF2 have been causing me grief forever.

I installed it manually. Here is how I did it (note: your details may vary).

I copied the entire new firefox directory to the location /usr/local/firefox3 where it sits alongside /usr/local/firefox (which is firefox2).

I also had to copy the entire new firefox directory to the location /usr/lib/firefox-3.0. This results in the entire installation being present twice in the system, but it is needed because of the way FF handles its library lookups. I am sure this can be tailored, but I am equally sure it would be a PITA so I didn't bother.

Then went into /usr/local/firefox3/plugins and symlinked all my plugins, just as they are in /usr/local/firefox/plugins.

Then, into /usr/bin where I renamed the firefox executable as firefox2. I then created a new symlink (note that I had to symlink it; copying the executable into /usr/bin didn't work - again some path issues):

ln -s /usr/local/firefox3/firefox firefox.

I also created the same symlink in /usr/local/bin though I probably didn't need to.

This then would start the new firefox.
 
Old 06-18-2008, 10:49 AM   #8
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by Billgatus of Borg View Post
One simply cannot navigate to the ~/firefox directory on a local install, and type firefox.
If you wish to run the firefox in your present working directory, you need to type ./firefox without the ./ the system will check your PATH for the binary, which causes the system to launch the old version which is probably located in /usr/bin.



I expect all the distributions are currently working on packaging this to be easily installed system wide for each distro.. I wouldn't be surprised if this even became available for Debian Stable as a Security Update...(3.0rc2 is currently available in Debian unstable) In the mean time I installed it manually and threw a custom launcher up top in the panel.

Last edited by farslayer; 06-18-2008 at 10:54 AM.
 
Old 06-18-2008, 06:39 PM   #9
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Quote:
Originally Posted by jiml8 View Post
I copied the entire new firefox directory to the location /usr/local/firefox3 where it sits alongside /usr/local/firefox (which is firefox2).

I also had to copy the entire new firefox directory to the location /usr/lib/firefox-3.0. This results in the entire installation being present twice in the system, but it is needed because of the way FF handles its library lookups. I am sure this can be tailored, but I am equally sure it would be a PITA so I didn't bother.

Then went into /usr/local/firefox3/plugins and symlinked all my plugins, just as they are in /usr/local/firefox/plugins.
As far as I can see, copying your firefox directory into /usr/lib/firefox-* is not necessary. I only have /opt/firefox3 and have /opt/firefox3/firefox symlinked to /usr/bin/firefox, and it works just fine.

Likewise, you can specify your own Firefox plugins directory by using the
MOZ_PLUGIN_PATH environment variable.
 
Old 06-18-2008, 06:40 PM   #10
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Quote:
Originally Posted by farslayer View Post
I expect all the distributions are currently working on packaging this to be easily installed system wide for each distro.. I wouldn't be surprised if this even became available for Debian Stable as a Security Update...(3.0rc2 is currently available in Debian unstable) In the mean time I installed it manually and threw a custom launcher up top in the panel.
FYI, Firefox 3.0 GA (final) is the same build as RC2.
 
Old 06-19-2008, 02:54 AM   #11
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by daihard View Post
As far as I can see, copying your firefox directory into /usr/lib/firefox-* is not necessary. I only have /opt/firefox3 and have /opt/firefox3/firefox symlinked to /usr/bin/firefox, and it works just fine.

Likewise, you can specify your own Firefox plugins directory by using the
MOZ_PLUGIN_PATH environment variable.
On my system, firefox did not work until I copied the installation into /usr/lib/firefox-3.0.

I have not troubled myself to figure out which libraries are loaded from which location, but definitely some of them are not found - on my system - unless they are located there.
 
Old 06-20-2008, 01:26 PM   #12
dwpbike
Member
 
Registered: Sep 2005
Location: macon, ga
Distribution: downgraded from rh9 to fc8
Posts: 57

Rep: Reputation: 16
Quote:
Originally Posted by farslayer View Post
If you wish to run the firefox in your present working directory, you need to type ./firefox without the ./ the system will check your PATH for the binary, which causes the system to launch the old version which is probably located in /usr/bin.



I expect all the distributions are currently working on packaging this to be easily installed system wide for each distro.. I wouldn't be surprised if this even became available for Debian Stable as a Security Update...(3.0rc2 is currently available in Debian unstable) In the mean time I installed it manually and threw a custom launcher up top in the panel.
"./" wouldn't do it for me with fc6. i did a fully qualifed (/usr/src/firefox firefox) and then cd'ed to /usr/src/firefox and did "./firefox". still shows 1.5. sure don't like the way fedora insulates me from application. can't really figure out the firefox 1.5 file structure.
 
  


Reply

Tags
fc6, firefox3, install



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux.com isn't rendering properly with Firefox dugan Slackware 13 05-25-2008 12:03 AM
[SOLVED] Firefox 1.5.0.4 isn't downloading properly in Mepis 6.0 MBA Whore MEPIS 3 01-03-2007 01:17 PM
firefox not properly downloading files syntax_the_nerd Linux - Software 1 07-01-2005 10:50 PM
Firefox won't start properly. zwyrbla Linux - Software 1 08-24-2004 06:34 PM
Suse 9, RH9 wont install properly. Mandrake 9 wont boot properly? Help. l2ich84 Linux - Newbie 1 01-31-2004 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration