LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-28-2007, 04:52 PM   #1
imnah
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/2.0.0.2 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:

run-mozilla.sh: 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 05:09 PM.
 
Old 02-28-2007, 05:04 PM   #2
pixellany
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, 05:07 PM   #3
imnah
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, 05:54 PM   #4
wpn146
Member
 
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:
Code:
#!/bin/bash
cd /usr/share/firefox2
./firefox
 
Old 02-28-2007, 06:03 PM   #5
imnah
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.
 
  


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
what is difference between /usr/bin/7za /usr/bin/7z fakie_flip Linux - Software 9 08-14-2006 10: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 10: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 02:02 AM
/usr/bin/X11/ and /usr/X11R6/bin/ the same? linuxtesting2 Linux - Newbie 2 11-16-2004 11:57 AM
Question reguarding /usr/loca/bin and 'linking' Cecil Linux - Software 6 06-25-2003 03:15 AM


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