?
Solved

Linux Software Installation

Posted on 2002-04-23
3
Medium Priority
?
229 Views
Last Modified: 2013-12-15
I just installed redhat linux 7.2 and I am using kde. I downloaded j2re-1_4_0-linux-1386-rpm.bin and j2sdk-1_4_0_linux-i386-rpm.bin. I want to install them. Where should start installin. What are the best directories to install. I windows I use program files whate are the equivalent directories. how should I set the path to access the javac.
Thanks
0
Comment
Question by:yassin092898
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Expert Comment

by:MFCRich
ID: 6963630
"rpm" is the software manager on Redhat

rpm -qilp <name-of-package-file>

will show you where all the files go (it may be a long listing)

As root:

rpm -ivh <name-of-package-file>

will install it.
0
 

Author Comment

by:yassin092898
ID: 6963781
I used the command

rpm -qilp j2sdk-1_4_0_linux-i386-rpm.bin

and I get

j2sdk-1_4_0_linux-i386-rpm.bin: read manifest failed

also I got the same error on

rpm -ivh j2sdk-1_4_0_linux-i386-rpm.bin


do I need to remove the .bin extension first.

Thanks
0
 
LVL 40

Accepted Solution

by:
jlevie earned 400 total points
ID: 6963833
The .bin files may be some sort of packaging of the java rpms. And you can find out what they are  by doing:

file j2sdk-1_4_0_linux-i386-rpm.bin

if that command yields something like:

j2sdk-1_4_0_linux-i386-rpm.bin: RPM v3 bin i386...

then you have an rpm image. Since rpm really doesn't care what the file name is, or whether it end in rpm or not, the download may not have been done in binary mode of the files became damaged during download.

If the "file' command results in something like:

ELF 32-bit LSB executable, Intel 80386...
 or
Bourne shell script text executable

The the rpm packages are in some sort of self extracting image (which is what I think you've got). Make each of the files executable and run them with:

chmod +x j2sdk-1_4_0_linux-i386-rpm.bin
chmod +x j2re-1_4_0-linux-1386-rpm.bin
./j2sdk-1_4_0_linux-i386-rpm.bin
./j2re-1_4_0-linux-1386-rpm.bin

I believe that will result in the actual rpm's being unpacked into the current directory. Then you can install with rpm in the normal manner.

Note that the jre is normally included in the SDK, so once the SDK rpm is installed you shouldn't need to also install the JRE. Look in where the SDK installs for a jre directory.
0

Featured Post

How to Create Failover DNS Record Sets in Route 53

Route 53 has the ability to easily configure DNS record sets specifically for failover scenarios. These failover record sets can be configured to failover to full-blown deployments in other regions or to a static HTML page that informs your customers of the issue.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month14 days, 8 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question