LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   why cannot I install jdk-6u26-linux-i586-rpm.bin on slackware? (http://www.linuxquestions.org/questions/slackware-14/why-cannot-i-install-jdk-6u26-linux-i586-rpm-bin-on-slackware-889565/)

yangzhichina 07-02-2011 12:43 PM

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.

T3RM1NVT0R 07-02-2011 12:47 PM

@ 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.

55020 07-02-2011 12:50 PM

Quote:

As you know, there is no JDK in Slackware 13.37, there's just JRE.
Wrong! Look in extra/jdk-6

knudfl 07-02-2011 12:53 PM

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

..

yuuko 07-02-2011 04:26 PM

You can also grab the lastest package from -current tree.

Cheers,

knudfl 07-02-2011 04:41 PM

#5 : Yes, that's jdk-6u26-x86_64-1.txz

ftp://ftp.slackware.org.uk/slackware...t/extra/jdk-6/

trademark91 07-02-2011 05:24 PM

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.

Diantre 07-02-2011 06:25 PM

Quote:

Originally Posted by trademark91 (Post 4402870)
And you can't install that rpm because slackware is not rpm based.

Slackware is not rpm based, that's right. However, Slackware includes rpm. So in theory you can install rpm packages, but those installations probably won't work as expected, different startup scripts, diferent locations for manpages, etc. In practice, I have never installed an rpm package in my Slackware system, and I probably won't.

psionl0 07-02-2011 08:24 PM

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.

yangzhichina 07-04-2011 12:17 AM

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?

willysr 07-04-2011 12:25 AM

Go to http://slackbuilds.org

ChrisAbela 07-04-2011 02:02 AM

Quote:

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?
# wget http://sbopkg.googlecode.com/files/s...arch-1_cng.tgz
# installpkg sbopkg-0.35.0-noarch-1_cng.tgz
# sbopkg

and enjoy!

dugan 07-04-2011 08:36 AM

Please read this:

http://wiki.linuxquestions.org/wiki/Slackware-FAQ

yangzhichina 07-05-2011 09:07 AM

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 03:22 AM.