LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-11-2008, 11:13 PM   #1
sustainability14
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Rep: Reputation: 0
Java software, trying to install


Aloha
I am having trouble trying to install Java RPM file. I followed the directions, but have run into some that are 'needed'. Here is the list it printed out:

Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
replace jre-6u7-linux-i586.rpm? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
inflating: jre-6u7-linux-i586.rpm
error: Failed dependencies:
/bin/basename is needed by jre-1.6.0_07-fcs.i586
/bin/cat is needed by jre-1.6.0_07-fcs.i586
/bin/cp is needed by jre-1.6.0_07-fcs.i586
/bin/gawk is needed by jre-1.6.0_07-fcs.i586
/bin/grep is needed by jre-1.6.0_07-fcs.i586
/bin/ln is needed by jre-1.6.0_07-fcs.i586
/bin/ls is needed by jre-1.6.0_07-fcs.i586
/bin/mkdir is needed by jre-1.6.0_07-fcs.i586
/bin/mv is needed by jre-1.6.0_07-fcs.i586
/bin/pwd is needed by jre-1.6.0_07-fcs.i586
/bin/rm is needed by jre-1.6.0_07-fcs.i586
/bin/sed is needed by jre-1.6.0_07-fcs.i586
/bin/sort is needed by jre-1.6.0_07-fcs.i586
/bin/touch is needed by jre-1.6.0_07-fcs.i586
/usr/bin/cut is needed by jre-1.6.0_07-fcs.i586
/usr/bin/dirname is needed by jre-1.6.0_07-fcs.i586
/usr/bin/expr is needed by jre-1.6.0_07-fcs.i586
/usr/bin/find is needed by jre-1.6.0_07-fcs.i586
/usr/bin/tail is needed by jre-1.6.0_07-fcs.i586
/usr/bin/tr is needed by jre-1.6.0_07-fcs.i586
/usr/bin/wc is needed by jre-1.6.0_07-fcs.i586
/bin/sh is needed by jre-1.6.0_07-fcs.i586

Done.
root@greg-laptop:/usr/bin/java#

I assume it is some type of bin package that needs to be added, but I don't know where to find it or how to load.
 
Old 07-11-2008, 11:22 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
You're missing base system applications (at least Java thinks you are). I see applications from coreutils, gawk, and grep missing. You are also missing probably just a symlink to your actual shell (i.e., /bin/sh is usually a link to your shell app).

I don't know how to install the missing packages either because you didn't tell us what distro you're using. I can assume a RPM based distro since you're using the Java RPM. Maybe something along the lines of yum install coreutils gawk grep? Then you'll need to make a symlink to your shell app.
 
Old 07-12-2008, 12:02 AM   #3
sustainability14
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
I am not sure what distro

I am not sure what distro I am using, all I know is that it is Ubuntu 8.04. I am sorry, I am very new at this. I tried using the .bin file only for java, but it did not work, so I downloaded the rpm version and it loaded up to this point. I just tried downloading yum and then yum install coreutils gawk grep and it sent me this:

root@greg-laptop:/usr/bin/java# yum install coreutils gawk grep
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named cElementTree

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.5.2 (r252:60911, Apr 21 2008, 11:12:42)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]

If you cannot solve this problem yourself, please send this
message to <yum@lists.linux.duke.edu>.

I don't know what to do from here.

Last edited by sustainability14; 07-12-2008 at 12:08 AM. Reason: Added info
 
Old 07-12-2008, 12:13 AM   #4
williebens
Member
 
Registered: Jan 2008
Posts: 88

Rep: Reputation: 16
Hello sustainability14:

I believe you downloaded your java rpm from the sun website.

Before going any further, check if you already have java installed by running:

(as root) java -version

If you see something like this:

If you see:
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)

then you have it installed. Otherwise:

Install it like this in case you are not doing so:

[root@local]# ./jdk-6u6-linux-i586-rpm.bin

where jdk-6u6-linux-i586-rpm.bin is the java rpm package you downloaded.

When you get to the part of the install that says:

For more information on what data Registration collects and
how it is managed and used, see:
http://java.sun.com/javase/registrat...istrationPriva
Press Enter to continue.....

Just press enter, and it will continue.

Now check again if it is installed:

Check if JDK is installed by running the command:
[root@ jdk1.6.0_06]# java -version
If you see:
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)

Then it is installed.

I hope this helps.
Thanks.
--Willie
 
Old 07-12-2008, 12:41 AM   #5
sustainability14
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Tried java -version

I tried java -version and it returned this:

root@greg-laptop:~# java -version
The program 'java' can be found in the following packages:
* java-gcj-compat-headless
* openjdk-6-jre-headless
* j2re1.4
* kaffe
* cacao
* gij-4.1
* jamvm
* gij-4.2
* sablevm
Try: apt-get install <selected package>
bash: java: command not found
root@greg-laptop:~#


so I installed java-gcj-compat-headless and it stills comes up with the same message
 
Old 07-12-2008, 12:52 AM   #6
fedoralinuxjunkie
Member
 
Registered: Jun 2008
Location: North Carolina
Distribution: Arch Linux
Posts: 138

Rep: Reputation: 16
Hello sustainability14.

I see your running Ubuntu Hardy (8.04)...have you tried doing this with apt-get?

Code:
sudo apt-get install sun-java6-bin sun-java6-fonts sun-java6-jre sun-java6-plugin
Since your running Hardy, all the repositories SHOULD already be enabled (at least when I installed mine they were)...that should work right there, that's how I installed Java on my Hardy, and it works great
 
Old 07-12-2008, 01:13 AM   #7
sustainability14
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
It worked, but now...

Thank you very much fedoralinuxjunkie, it worked perfectly, but now it needs an update, is there a simple way to do that? Also, do you know if there is a shockwave player plugin?

Thank you again!
 
Old 07-12-2008, 06:18 AM   #8
williebens
Member
 
Registered: Jan 2008
Posts: 88

Rep: Reputation: 16
It is great you got it working.

I do not use Ubuntu, but it is good to know these commands are here just in case I need them in the future.

Thanks guys.
--Willie
 
Old 07-12-2008, 06:26 AM   #9
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
System > Administration > synaptic.

This will help you. Open it and search for the packages that you need and install them with the dependencies.
 
Old 07-12-2008, 11:59 AM   #10
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
@ sustainability14, while it's great that you got java working, but I would be more concerned about the missing system apps that your first attempt spit out. Since we now know which distro you're using (Ubuntu), we know you use the apt package manager (in which case the RPM was not the correct choice). Follow linuxlover.chaitanya' instructions for opening synaptics and install what you want, but also (re)install coreutils, gawk, and grep.

No, there is no Shockwave plugin for Linux.
 
  


Reply


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
what directory is java install? what CMD determined where java is install? Thks. suse2166 Linux - Newbie 2 09-04-2005 08:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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