LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-29-2007, 12:58 AM   #1
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Rep: Reputation: 30
Updating Firefox


By default FC6 installed firefox 1.5, i want 2.0.0.3

I downloaded the tarball and decompressed it to /usr/local/firefox. Websites says you don't install it, you just run it from here.

How do I remove 1.5?

How do I link to 2.0.0.3? I have a shortcut but I don't know which file to make it open... run-mozilla.sh doesn't work, mozilla-bin doesnt work, nothing else looks right.

Help?
 
Old 05-29-2007, 01:03 AM   #2
pda_h4x0r
Member
 
Registered: Feb 2006
Location: somewhere in cyberspace
Distribution: Debian, Familiar
Posts: 380

Rep: Reputation: 30
As root, you can move /usr/bin/firefox to /usr/bin/firefox-1.5, and then link the firefox 2.0 binary to /usr/bin/firefox.

That would be:
sudo mv /usr/bin/firefox /usr/bin/firefox-1.5
sudo ln -s /path/to/directory/with/new/firefox /usr/bin/firefox
 
Old 05-29-2007, 01:09 AM   #3
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
what does sudo do? why not just mv?

anyway, there is no directory for firefox under /usr/bin, but there is a 'firefox' i can see via terminal, i cant use a browser until i install KDE because when I try to open a file browesr:

The application nautilus has crashed.

Using GNOME at the moment.


I typed firefox into the terminal and 1.5 started up. I'm confused.
 
Old 05-29-2007, 01:28 AM   #4
pda_h4x0r
Member
 
Registered: Feb 2006
Location: somewhere in cyberspace
Distribution: Debian, Familiar
Posts: 380

Rep: Reputation: 30
Remove /usr/bin/firefox. It's the Firefox 1.5 executable. The sudo command allows you to do this as root, because only root has write access to /usr/bin. You could always do this instead:

$ su
(enter your root password to become root)
# rm /usr/bin/firefox
# ln -s /path/to/new/firefox/binary /usr/bin/

You need to link it instead of moving it because the Firefox 2.0 binary expects all its libraries to be at a certain place relative to its location (the proper directory structure is self-contained inside the decompressed folder you downloaded). Linking the binary to /usr/bin allows you to preserve the hierarchy, whereas moving it does not. Make sure that the firefox folder is in a place that's unlikely to change before doing the link, because moving the folder after linking firefox to /usr/bin will break it.
 
Old 05-29-2007, 02:42 AM   #5
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
now i have no firefox

its in the folder /usr/bin/firefox

how do I make a link to it? I don't know what file to link to... firefox-bin? run-mozilla.sh?

found an rpm and it just says: error: Failed dependencies:
system-bookmarks is needed by firefox-2.0.0.3-4.fc7.i386


why will NOTHING work?

Last edited by Virtuality; 05-29-2007 at 03:03 AM.
 
Old 05-29-2007, 03:38 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Personally I would have just left things as they were without deleting the old binary. If you installed firefox 2.x into /usr/local/firefox and you want it to be the default browser, then all you would need to do is edit the list of preferred applications in gnome (System -> Preferences -> Preferred Applications) or KDE (Kcontrol -> Components -> Components chooser -> Web browser) and make /usr/local/firefox/firefox the default browser. You probably would also need to edit your existing Firefox menu entries or desktop shortcuts and change the Firefox command to /usr/local/firefox/firefox.

Last edited by reddazz; 05-29-2007 at 03:39 AM.
 
Old 05-29-2007, 03:45 AM   #7
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
Doesn't work. I'm sick of this. I've read every guide I can find. Is there something wrong with the compilation???

Firefox is in /usr/local/firefox. It does not work, did everything you did, tried everything everyone said, doesn't work.

Shortcut is set to /usr/local/firefox/firefox. Doesn't work.

Is there a file in the firefox folder I can just double click to run? because none work that I've tried.

WHY is installing a simple browser difficult.
 
Old 05-29-2007, 03:48 AM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Calm down a little bit and provide us with more detail. Does Firefox 2.x not run at all and what is the output of entering the command below in a terminal.
Code:
/usr/local/firefox/firefox
 
Old 05-29-2007, 03:51 AM   #9
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
sorry, things have been stressful ._.

[root@localhost ~]# /usr/local/firefox/firefox
bash: /usr/local/firefox/firefox: is a directory
 
Old 05-29-2007, 03:58 AM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Well, something is not quite right because /usr/local/firefox/firefox is a directory instead of a shell script. Delete /usr/local/firefox and then as do something like
Code:
#cd /usr/local
#tar zxvf /path/to/firefox-{version}.tar.gz
After that as a normal user, run /usr/local/firefox and post the output. You may need to install compat-libstdc++-33 (using yum) if Firefox complains of a missing libstdc++-5.
 
Old 05-29-2007, 04:22 AM   #11
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
Quote:
[root@localhost local]# tar zxvf /files/downloads/firefox-2.0.0.3.tar.gz
All goes fine...

Quote:
[root@localhost local]# su myname
[myname@localhost local]$ /usr/local/firefox
bash: /usr/local/firefox: is a directory
[myname@localhost local]$

Edit... Wasn't I meant to run:

Code:
[myname@localhost local]$ /usr/local/firefox/firefox
?... Well I did, and it says:

Quote:
/usr/local/firefox/firefox-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
So will get what you said.

Last edited by Virtuality; 05-29-2007 at 04:24 AM.
 
Old 05-29-2007, 04:33 AM   #12
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Just do
Code:
#yum install compat-libstdc++-33
Once thats installed, Firefox should work without throwing up anymore error messages.
 
Old 05-29-2007, 04:41 AM   #13
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
thanks!!! working 100%, meanwhile I installed apache, its almost sad that its easier
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help updating Firefox thort Linux - Newbie 9 06-23-2006 07:59 PM
updating firefox dark_negotiator Fedora 2 06-05-2006 01:45 AM
help updating firefox paddy Linux - Software 3 02-14-2006 10:10 AM
Updating Firefox nygeek05 Slackware 5 11-14-2005 07:34 PM
updating Firefox jaakkop Linux - Software 1 11-15-2004 10:22 AM


All times are GMT -5. The time now is 05:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration