Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-28-2007, 03:52 PM   #1
LQ Newbie
Registered: Feb 2007
Posts: 14

Rep: Reputation: 0
linking applications to /usr/bin

Hi. I'm a n00b running Fedora Core 6...
Here's my newbie problem:
I wanted to install the new firefox/ so I downloaded it from the official homepage. It seems that all you have to do is decompress it and then ./firefox. (am I right? it runs fine. i mean it LOOKS so..) So I put the new firefox in /usr/share/firefox2 and now I want to be able to run it anywhere with "firefox2". So I tried

ln -s /usr/share/firefox2/firefox /usr/bin/firefox2

but when I run "firefox2" it says: Cannot execute /usr/share/firefox2/firefox2-bin.

I'm guessing I have to somehow include the information that the new firefox binary must be run at /usr/share/firefox2... now, how do I do that?

I need help !

Last edited by imnah; 02-28-2007 at 04:09 PM.
Old 02-28-2007, 04:04 PM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Can you run it in /usr/share/firefox2 by entering ./firefox?

If not, check the permissions
Old 02-28-2007, 04:07 PM   #3
LQ Newbie
Registered: Feb 2007
Posts: 14

Original Poster
Rep: Reputation: 0
yes, i can run it if i do ./firefox at /usr/share/firefox2
it's the symbolic link that doesn't work.
Old 02-28-2007, 04:54 PM   #4
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
The symbolic link worked fine. The problem is that "firefox" expected to find "firefox2-bin" in the same directory. Try making an executable shell script named "/usr/bin/firefox2" and consisting of:
cd /usr/share/firefox2
Old 02-28-2007, 05:03 PM   #5
LQ Newbie
Registered: Feb 2007
Posts: 14

Original Poster
Rep: Reputation: 0
thanks, it works now.
i guess i need to study some basic bash scripting.


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
what is difference between /usr/bin/7za /usr/bin/7z fakie_flip Linux - Software 9 08-14-2006 09:22 PM
Ubuntu 5.10 -> 6.06: diversion of /usr/bin/ldd to /usr/bin/ldd.amd64 by ia32-libs HellSpawn Linux - Software 2 06-04-2006 09:18 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM
/usr/bin/X11/ and /usr/X11R6/bin/ the same? linuxtesting2 Linux - Newbie 2 11-16-2004 10:57 AM
Question reguarding /usr/loca/bin and 'linking' Cecil Linux - Software 6 06-25-2003 02:15 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:41 AM.

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