LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   symlinks are corrupted even thought the destination file is on its place (https://www.linuxquestions.org/questions/linux-general-1/symlinks-are-corrupted-even-thought-the-destination-file-is-on-its-place-127260/)

jogurt666 12-19-2003 10:01 AM

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

trickykid 12-19-2003 10:07 AM

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

jogurt666 12-19-2003 10:18 AM

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!

stickman 12-19-2003 12:36 PM

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

jogurt666 12-19-2003 01:02 PM

yeah, and it finally worked. i'll keep that in memory, thnx

trickykid 12-19-2003 01:20 PM

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.


All times are GMT -5. The time now is 04:43 AM.