LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 07-02-2011, 01:43 PM   #1
yangzhichina
LQ Newbie
 
Registered: Nov 2010
Location: China P.R.
Distribution: Slackware 13.37
Posts: 13

Rep: Reputation: 0
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.
 
Old 07-02-2011, 01:47 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ 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.
 
Old 07-02-2011, 01:50 PM   #3
55020
Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 436
Blog Entries: 4

Rep: Reputation: 438Reputation: 438Reputation: 438Reputation: 438Reputation: 438
Quote:
As you know, there is no JDK in Slackware 13.37, there's just JRE.
Wrong! Look in extra/jdk-6
 
Old 07-02-2011, 01:53 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,273

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
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

..

Last edited by knudfl; 07-02-2011 at 02:00 PM.
 
Old 07-02-2011, 05:26 PM   #5
yuuko
Member
 
Registered: May 2011
Distribution: Slackware-current
Posts: 42

Rep: Reputation: 20
You can also grab the lastest package from -current tree.

Cheers,
 
1 members found this post helpful.
Old 07-02-2011, 05:41 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,273

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

ftp://ftp.slackware.org.uk/slackware...t/extra/jdk-6/
 
Old 07-02-2011, 06:24 PM   #7
trademark91
Member
 
Registered: Sep 2009
Distribution: Slackware -current x64
Posts: 372

Rep: Reputation: 73
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.
 
Old 07-02-2011, 07:25 PM   #8
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware64 14.1
Posts: 397

Rep: Reputation: 153Reputation: 153
Quote:
Originally Posted by trademark91 View Post
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.

Last edited by Diantre; 07-02-2011 at 07:26 PM.
 
Old 07-02-2011, 09:24 PM   #9
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.1
Posts: 634
Blog Entries: 2

Rep: Reputation: 96
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.
 
Old 07-04-2011, 01:17 AM   #10
yangzhichina
LQ Newbie
 
Registered: Nov 2010
Location: China P.R.
Distribution: Slackware 13.37
Posts: 13

Original Poster
Rep: Reputation: 0
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?
 
Old 07-04-2011, 01:25 AM   #11
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,621

Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
Go to http://slackbuilds.org
 
Old 07-04-2011, 03:02 AM   #12
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

Rep: Reputation: 89
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!
 
Old 07-04-2011, 09:36 AM   #13
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,987

Rep: Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555
Please read this:

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

Last edited by dugan; 07-04-2011 at 09:43 AM.
 
Old 07-05-2011, 10:07 AM   #14
yangzhichina
LQ Newbie
 
Registered: Nov 2010
Location: China P.R.
Distribution: Slackware 13.37
Posts: 13

Original Poster
Rep: Reputation: 0
These tips are very nice. Thank you guys.

I think the Slackware will be my favorite OS in coming future.
 
  


Reply

Tags
installation, jdk, slackware 13.37


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
failing to install jdk-6u22-linux-i586.bin kenoo Linux - Desktop 3 10-16-2010 07:51 AM
how to install jre-6u11-linux-i586-rpm.bin sparulcse Linux - Software 1 12-27-2008 03:47 AM
jdk-1_5_0_15-linux-i586-rpm shahz Linux - Enterprise 15 07-12-2008 07:35 AM
Where is jdk-1_5_0_10-linux-i586.bin for BLFS 6.2? rwcooper Linux From Scratch 1 08-03-2007 08:51 AM
Unable to install java on Fedora Core 6, jre-6-linux-i586-rpm.bin dragoncorp.org Linux - Software 1 04-09-2007 11:33 PM


All times are GMT -5. The time now is 05:26 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration