MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
locate should've given you the path as well as the file name. For chmod to work you need the full
path and filename (and toes, chmod a+x is correct. man chmod says "A combination of the letters `ugoa'
controls which users' access to the file will be changed")
The problem with the java-rpm is that it might not tell you where it installs to (correct me if I'm wrong).
The non-rpm will install in the current directory. If you still want to use the rpm and it doesn't tell you where
it installs do a 'find / -name libjavaplugin_oji.so' to find the path to the plugin.
Concerning java. Using locate comes up with /root/jre-1_5_0_01-linux-i586-rpm.bin. Using find ~ comes up with a long list of files mostly hplip(printer) or mozilla. Does that mean it's in the root directory?
I just experimented with issuing the recommended 'find' command on my own, and it seems like I just get a resursive 'ls' here, so that may be all you're seeing there. If 'locate' returns exactly '/root/jre-1_5_0_01-linux-i586-rpm.bin' then yes, your java bin file is located in /root. You will, of course, need to be root in order to get there, since normal user access is denied to that directory.
Right I downloaded the non rpm version and have managed to install it in /home/user/jre1.5.0.02. I'll try and get it working now. I think I have to create a link.
I seem to be in a bit of a jumble now. I downloaded the rpm jre file and couldn't install it. Then I downloaded the non rpm self extracting version and did install it. But I still cant get it linked to fiefox. cd /home/simon/firefox-installer/plugins. Then ln -s /home/simon/jre1.5.0.02/plugin/i386/ns7/libjavaplugin_oji.so. This tells me that ./jre1.5.0.02 etc oji.so file already exists. It might be best to erase both versions of java and start again.
Distribution: Kubuntu, Ubuntu server, SuSE 11, Knoppix, Puppy, Myth. Oh alright then, all of them
Posts: 177
Rep:
The . is usually necessary.
Easiest way to make link for us less than old hacks is to open two Konqueror windows, one with the origin and the other with the destination.
Drag the file to be linked to into where you want the link on the other window. The dialog should give options to copy, move or link.
Choose link and job jobbed.
The . is not necessery in MDK 9.2 or 10.x (nor in FreeBSD 5.2.1).
The man states : "If LINK_NAME is omitted, a link with the same basename as the TARGET is
created in the current directory"
Still not working with or without dot. I couldn't seem to find jre in the rpms i got from easyurpmi. Anyway I do feel I've got a lot of things on here I don't need, perhaps a bit of deleting would be good. What's the best way to delete files such as java or firefox which aren't rpm's?
cd /
rm -rf /home/simon/jre1.5.0.02/
rm -rf /home/simon/firefox-installer
Then reinstall firefox and java like I showed in my earlier post.
BTW are you sure you run
ln (space) -s (space) /home/simon/jre1.5.0.02/plugin/i386/ns7/libjavaplugin_oji.so (space) .
The only way I can get a "file already exists" error is if I link the wrong way like
"ln -s TESTLINK /etc/passwd" instead of "ln -s /etc/passwd TESTLINK"
Oh and BTW #2 : is your jre dir really called "jre1.5.0.02" ? Mine is called "jre1.5.0_02" (notice the underscore).
Edit: The easiest way to avoid typing errors is to use the completion function of the shell. If you are in
/home/simon/firefox-installer/plugins and want to create the link just type
"ln -s /home/simon/jre" and press the Tab key. The shell will automagically expand it to the right dir.
Back again. cd /home/simon/firefox1.0.1/plugins
ln -s /usr/java/jre1.5.0_01/plugin/i386/ns7/libjavaplugin_oji.so
Result: ./libjavaplugin_oji.so File exists.
I must be doing something wrong somewhere. The other thing I'm trying to get working is dvd playback. Kaffeine doesn't work and so I downloaded codecs. The file is all-20050216.tar.bz2. How do I install it? First part is tar xvjf name of file. Not sure what's next. Read me no good.
Show me the output of 'ls -la /home/simon/firefox1.0.1/plugins' and
'ls -la /usr/java/jre1.5.0_01/plugin/i386/ns7/ '
It looks like you already have a link named libjavaplugin_oji.so in /home/simon/firefox1.0.1/plugins.
Did you get another jre, 1.5.0_01 instead of 1.5.0_02 ?
output from firefox simon@localhost simon]$ ls -la /home/simon/firefox1.0.1/plugins
total 15824
drwxr-xr-x 2 root root 4096 Mar 22 10:50 ./
drwxr-xr-x 11 root root 4096 Mar 21 19:51 ../
-rw-r--r-- 1 root root 16152805 Dec 7 06:51 jre-1_5_0_01-linux-i586.rpm
lrwxrwxrwx 1 root root 55 Mar 21 20:40 libjavaplugin_oji.so -> /root/jre-1_5_0_01/plugin/i386/ns7/libjavaplugin_oji.so
-rwxr-xr-x 1 root root 18840 Feb 25 20:30 libnullplugin.so*
and from the java file:
[simon@localhost simon]$ ls -la /usr/java/jre1.5.0_01/plugin/i386/ns7/
total 144
drwxr-xr-x 2 root root 4096 Mar 21 20:31 ./
drwxr-xr-x 4 root root 4096 Mar 21 20:31 ../
-rwxr-xr-x 1 root root 134116 Dec 7 06:50 libjavaplugin_oji.so*
[simon@localhost simon]$
What I think might have happened is the first time I tried to link it I used /root/jre1.5.0_01 because that 's what came up using locate. However the jre file is actually in /usr/java. So it might not work now. The jre-1_5_0_02 was the non rpm version which I deleted. The rpm version is jre-1_5_0_01. And it's in /usr/java.
The output from the firefox plugins directory above is partly flashing red.
I can see from the output myself that the plugin in firefox is linked to the root/jre file which is incorrect. I need to change it to the usr/java file.
Apparently I can delete the link using rm. Can you tell me the correct command? Is it just rm libjavaplugin_oji.so ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.