Solved

Linux Software Installation

Posted on 2002-04-23
3
213 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
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 100 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now