Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Firefox 2.0 runs from GUI not terminal
#1

Hi there,

 

I sort of installed FF 2.0: it runs from the applications menu and the "web browser" button in the GUI, but if I run 'firefox' from the terminal, I still get version 1.08.

 

Here was my procedure:

 

Downloaded the tar.gz archive from firefox's site to /home/

Untarred to home:

cd

tar -xvzf firefox-2.0.tar.gz

 

then ran the firefox file in the directory

 

I also lost my bookmarks in the old version.

 

Can someone tell me what I did wrong?

 

Thanks,

 

Nic

Reply
#2

UPDATE:

 

I removed the old FF (yum remove firefox) and moved the FF 2.0 folder to usr/lib where the old folder was.

 

Now, I can get FF 2.0 to run from the menu or by ./firefox in the terminal. But now trying to run 'firefox' from the terminal gets me "bash: firefox: command not found"

 

This has to be something simple, but I can't figure it out.

Reply
#3

Quote:UPDATE: 

I removed the old FF (yum remove firefox) and moved the FF 2.0 folder to usr/lib where the old folder was.

 

Now, I can get FF 2.0 to run from the menu or by ./firefox in the terminal. But now trying to run 'firefox' from the terminal gets me "bash: firefox: command not found"

 

This has to be something simple, but I can't figure it out.
 

Try doing this from a terminal:

 



Code:
$ su -
[[enter your root password when prompted]]
# ln -s /usr/lib/firefox-xxx/firefox /usr/bin/firefox




 

Change firefox-xxx for the folder where you put Firefox, and don't type the $ or # signs in front of the commands.

 

With a bit of luck, typing firefox should then work!

 

W00t - 200th post!

Reply
#4

Quote:<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentcommentid="9558" data-ipsquote-username="nperito" data-cite="nperito" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="2609" data-ipsquote-contentclass="forums_Topic"><div>UPDATE: 

I removed the old FF (yum remove firefox) and moved the FF 2.0 folder to usr/lib where the old folder was.

 

Now, I can get FF 2.0 to run from the menu or by ./firefox in the terminal. But now trying to run 'firefox' from the terminal gets me "bash: firefox: command not found"

 

This has to be something simple, but I can't figure it out.
 

Try doing this from a terminal:

 



Code:
$ su -
[[enter your root password when prompted]]
# ln -s /usr/lib/firefox-xxx/firefox /usr/bin/firefox




 

Change firefox-xxx for the folder where you put Firefox, and don't type the $ or # signs in front of the commands.

 

With a bit of luck, typing firefox should then work!

 

W00t - 200th post!



</div></blockquote>
 

Thanks Hybrid,

 

I ran it, and created the file in usr/bin, but it still didn't work. Check it out:

 

[root@nlap-012eba56c6 ~]# ln -s /usr/lib/firefox/firefox/ /usr/bin/firefox

ln: `/usr/bin/firefox': File exists

[root@nlap-012eba56c6 ~]# firefox

bash: firefox: command not found

[root@nlap-012eba56c6 ~]# cd /usr/lib/firefox

[root@nlap-012eba56c6 firefox]# ./firefox

 

And then FF 2.0 works fine, but why do I have to ./firefox it?

 

Cheers,

 

Nic

Reply
#5

Try this:

 



Code:
$ su -
[[enter your root password when prompted]]
# mv /usr/bin/firefox /usr/bin/firefox.old
# ln -s /usr/lib/firefox/firefox /usr/bin/firefox




 

Any luck?

Reply
#6

Quote:Try this: 



Code:
$ su -
[[enter your root password when prompted]]
# mv /usr/bin/firefox /usr/bin/firefox.old
# ln -s /usr/lib/firefox/firefox /usr/bin/firefox

<div>


 

Any luck?

</div>
 

Yes! Thanks Hybrid! In the future, I'll do this:

 

 

1) Download the tar.gz archive from firefox's site to a folder in /usr/lib [or wherever old firefox is]

2) Untar:

cd

tar -xvzf firefox-2.0.tar.gz

3) Then remove the old firefox

# yum remove firefox

4) Next check where the firefox folders are (here, usr/bin) and make a symbolic link:

# ln -s /usr/lib/firefox/firefox/ /usr/bin/firefox

# mv /usr/bin/firefox /usr/bin/firefox.old

# ln -s /usr/lib/firefox/firefox /usr/bin/firefox

Run Firefox

# firefox

 

If you see a problem, please let me know, but that's basically what I did here.

 

Thanks again!

 

Nic

Reply
#7

Heh, no problem. :)

 

Thanks for reposting the solution - this way other people can learn and they don't have to ask again! :)

 

Just a quick note - I think you mean

 

"yum remove firefox"

 

instead of "remove firefox". Plus other people doing this process must remember to unpack firefox-2.0.tar.gz inside /usr/lib.

Reply
#8

Fixed adding "yum " :)

 

Thanks all involved!

Reply
#9

Quote:1) Download the tar.gz archive from firefox's site to a folder in /usr/lib [or wherever old firefox is]2) Untar (in my case, to /usr/lib):

cd

tar -xvzf firefox-2.0.tar.gz

3) Then remove the old firefox

# yum remove firefox

4) Check where the firefox folders are (here, /usr/bin), and make a symbolic link:

# ln -s /usr/lib/firefox/firefox/ /usr/bin/firefox

# mv /usr/bin/firefox /usr/bin/firefox.old

# ln -s /usr/lib/firefox/firefox /usr/bin/firefox

5) Run Firefox

# firefox
 

 

Thanks ZNX for fixing "yum remove firefox" in Step 3. I've been away and didn't see Hybrid's post.

 

I just installed FF on a different machine, following the steps above (untarring to /usr/lib, Step 2). Worked fine.

 

Thanks again. :)

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)