LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-19-2003, 10:01 AM   #1
jogurt666
Member
 
Registered: Nov 2003
Location: Poland => Mazowieckie => Ok'a
Distribution: Gentoo
Posts: 176

Rep: Reputation: 30
symlinks are corrupted even thought the destination file is on its place


i'm trying to create symlink to libjavaplugin_oji.so. i've placed java under /usr/local/java. i type the following command:

# ln -s /usr/local/java/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/local/mozilla/plugin

but the link is corrupted. every time i try to create it it is corrupted symlink. java won't work if i create hardlink. what the hell is wrong?!
 
Old 12-19-2003, 10:07 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
What do you mean by its 'corrupted'? Like it doesn't work or it gives errors when creating?

I always cd into the directory I'm going to create the symlink in so I don't confuse myself..

#cd /usr/local/mozilla/
# ln -s /usr/local/java/plugin/i386/ns610-gcc32/libjavaplugin_oji.so plugin
 
Old 12-19-2003, 10:18 AM   #3
jogurt666
Member
 
Registered: Nov 2003
Location: Poland => Mazowieckie => Ok'a
Distribution: Gentoo
Posts: 176

Original Poster
Rep: Reputation: 30
forgive me poor english if that confused you. well i'll describe it like this. when i try ls /dir/with/symlink it is marked with red color. i'm not a pro, but such a thing happens if we move/remove the destination file. but in this case the destination file exists!
 
Old 12-19-2003, 12:36 PM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Have you tried something with the full path like:
ln -s /usr/local/java/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/local/mozilla/plugins/libjavaplugin_oji.so
 
Old 12-19-2003, 01:02 PM   #5
jogurt666
Member
 
Registered: Nov 2003
Location: Poland => Mazowieckie => Ok'a
Distribution: Gentoo
Posts: 176

Original Poster
Rep: Reputation: 30
yeah, and it finally worked. i'll keep that in memory, thnx
 
Old 12-19-2003, 01:20 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Okay, I was under the impression you wanted to name it plugin, forgetting that is the directory. When creating links, you have to give the link an actual name. Your first go round, you were trying to link to a directory that already exists.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file corrupted on Linux yumener Linux - Software 1 11-25-2005 02:27 PM
How do I redirect something to a file without it overwriting the destination file??? nikold01 Linux - General 8 09-09-2004 02:30 PM
corrupted file system limiter Linux - General 6 10-06-2003 10:06 PM
Quickbooks file getting corrupted.. member57 Linux - Software 0 08-05-2003 08:54 AM
QuickBooks file getting corrupted. member57 Linux - Networking 0 07-30-2003 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:31 AM.

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
Open Source Consulting | Domain Registration