LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 11-07-2004, 11:24 AM   #1
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Rep: Reputation: 34
Question How do I fix a broken Symbolic Link?


Help!

I am running Netscape 7.1 on RedHat 8.0. Some of the website I visit use Java applets, and the JRE was not included in the Netscape install. I went to the Netscape site to get the plugin which directed me to the Sun site for the actual download. I was able to install the downloaded file and the resulting plugin was placed exactly where the instructions said it would be.

The instructions also said to do not copy the plugin program to the plugin directory, but to create a sybolic link, or pages containing applets would fail. When I created the link it shows on the ls display as blinking red, and in nautilus shows as a broken link.

Here are the commands I used to create the link. I am logged in as root.

cd /usr/local/netscape/plugins
ln -s /usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so

The program does exist in the target directory with permissions 755. The broken link has permissions 777.

Any help would be appreciated. I normally try all I can think of to resolve issues like this myself but even after RTFM I couldn't find an answer.

Thanks

Dick Gregory
 
Old 11-07-2004, 12:00 PM   #2
peacebwitchu
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 185

Rep: Reputation: 30
You can just rm broken_link. After you remove it make the link below.

ln -s /usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so
 
Old 11-07-2004, 01:01 PM   #3
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Original Poster
Rep: Reputation: 34
Thanks peacebwitchu for your reply.

I still get the same results as before. I think that when you omit the name of the link you are creating it just takes it from the target filename.

Any other ideas?

Dick Gregory
 
Old 11-07-2004, 04:06 PM   #4
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Try

ln -svf /usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so .

Do no forget the dot at the end. Its a faster way of saying libjavaplugin_oji.so when you are under /usr/local/netscape/plugins.

The above will only work if /usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so exits. If it does not exist, you will have to find the java directory on your own.
 
Old 11-07-2004, 08:08 PM   #5
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Original Poster
Rep: Reputation: 34
Thanks Electro. Your suggestion is just what I needed. I must have been the missing dot at the end because the other options that you addad I don't think could have affected the outcome. I went back to my installation instructions, which I had printed out, and checked with a magnifying glass. There was no dot there, so the instructions were apparently faulty.

Anyhow, my applets work now and I am a happy camper.
 
  


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
Symbolic link? jasone Linux - Newbie 4 05-06-2005 07:55 AM
help with a symbolic link mykrob Linux - Software 6 11-22-2004 10:01 AM
How can I fix an ungodly amount of broken symbolic links? spoonz Slackware 1 05-07-2004 03:04 PM
Symbolic link. bulzbb Linux - General 8 03-19-2004 04:57 AM
Symbolic link bwaynej2002 Linux - General 8 08-25-2003 10:06 PM


All times are GMT -5. The time now is 01:55 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration