why cannot I install jdk-6u26-linux-i586-rpm.bin on slackware?
Hello guys,
As you know, there is no JDK in Slackware 13.37, there's just JRE. So I wanna install the latest JDK in Slackware. But when I was installing, I failed. The output is as fellow: rootuser# ./jdk-6u26-linux-i586-rpm.bin Unpacking... Checksumming... Extracting... UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu). inflating: jdk-6u26-linux-i586.rpm inflating: sun-javadb-common-10.6.2-1.1.i386.rpm inflating: sun-javadb-core-10.6.2-1.1.i386.rpm inflating: sun-javadb-client-10.6.2-1.1.i386.rpm inflating: sun-javadb-demo-10.6.2-1.1.i386.rpm inflating: sun-javadb-docs-10.6.2-1.1.i386.rpm inflating: sun-javadb-javadoc-10.6.2-1.1.i386.rpm error: Failed dependencies: /bin/basename is needed by jdk-2000:1.6.0_26-fcs.i586 /bin/cat is needed by jdk-2000:1.6.0_26-fcs.i586 /bin/cp is needed by jdk-2000:1.6.0_26-fcs.i586 /bin/gawk is needed by jdk-2000:1.6.0_26-fcs.i586 /bin/grep is needed by jdk-2000:1.6.0_26-fcs.i586 /bin/ln is needed by jdk-2000:1.6.0_26-fcs.i586 /bin/ls is needed by jdk-2000:1.6.0_26-fcs.i586 /bin/mkdir is needed by jdk-2000:1.6.0_26-fcs.i586 /bin/mv is needed by jdk-2000:1.6.0_26-fcs.i586 /bin/pwd is needed by jdk-2000:1.6.0_26-fcs.i586 /bin/rm is needed by jdk-2000:1.6.0_26-fcs.i586 /bin/sed is needed by jdk-2000:1.6.0_26-fcs.i586 /bin/sort is needed by jdk-2000:1.6.0_26-fcs.i586 /bin/touch is needed by jdk-2000:1.6.0_26-fcs.i586 /usr/bin/cut is needed by jdk-2000:1.6.0_26-fcs.i586 /usr/bin/dirname is needed by jdk-2000:1.6.0_26-fcs.i586 /usr/bin/expr is needed by jdk-2000:1.6.0_26-fcs.i586 /usr/bin/find is needed by jdk-2000:1.6.0_26-fcs.i586 /usr/bin/tail is needed by jdk-2000:1.6.0_26-fcs.i586 /usr/bin/tr is needed by jdk-2000:1.6.0_26-fcs.i586 /usr/bin/wc is needed by jdk-2000:1.6.0_26-fcs.i586 /bin/sh is needed by jdk-2000:1.6.0_26-fcs.i586 Installing JavaDB error: Failed dependencies: /bin/sh is needed by sun-javadb-core-10.6.2-1.1.i386 Done. It looks like a little wired. The commands it cannot find such as cp, basename and so forth are system standard ones. How cannot the installation app find? Have someone fixed this issue? Thank you. |
@ Reply
Hi there,
From the output it appears that it is not getting the path. Did you su and then trying to install it. If yes, then give a try to su - root and then run the command. |
Quote:
|
jdk-6u26-linux-i586-rpm.bin : Is for an rpm based OS.
Please use http://www.oracle.com/technetwork/ja...ad-400750.html >> jdk-6u26-linux-i586.bin Or slackware/slackware-13.37/extra/jdk-6/jdk-6u25-i586-1.txz ftp://ftp.slackware.org.uk/slackware...u25-i586-1.txz .. like said by @55020 .. |
You can also grab the lastest package from -current tree.
Cheers, |
|
There is a jdk. It's in /extra.
slackpkg install jdk Should do the trick. And you can't install that rpm because slackware is not rpm based. |
Quote:
|
If you are going to install an rpm package it would be better to convert it to a Slackware package first.
If you are lucky, you can simply use rpm2tgz and installpkg. More likely, you will need to use rpm2targz, unpack the newly created tarball, make the necessary changes to the files/structures, run makepkg followed by installpkg. |
Thank you guys for your great tips.
One more question. We all know the slackware don't have official repo, if you wanna setup a new app, where are you going to find it? Is it the ftp of slackware? |
Go to http://slackbuilds.org
|
Quote:
# installpkg sbopkg-0.35.0-noarch-1_cng.tgz # sbopkg and enjoy! |
|
These tips are very nice. Thank you guys.
I think the Slackware will be my favorite OS in coming future. |
All times are GMT -5. The time now is 02:18 AM. |