Jump to content
Sign in to follow this  
nperito

Firefox 2.0 runs from GUI not terminal

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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:

 

$ 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!

Share this post


Link to post
Share on other sites
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:

 

$ 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!

 

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

Share this post


Link to post
Share on other sites

Try this:

 

$ 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?

Share this post


Link to post
Share on other sites
Try this:

 

$ 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?

 

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

Share this post


Link to post
Share on other sites

Heh, no problem. :)

 

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

 

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.

Share this post


Link to post
Share on other sites

Fixed adding "yum " :)

 

Thanks all involved!

Share this post


Link to post
Share on other sites
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. :D

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...