FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a tar.gz file for the install of Eclipse and rpm.bin for both Java JRE and Java SDK. This will be my first command line install, so I was wondering if somebody might be willing to walk me through it.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
For the jre and jdk rpm.bin files;
chmod +x <the name of the rpm.bin file here>
./<the name of the rpm.bin file here>
FYI: if this is the 32-bit version (i586) of the jdk then the jre is included no reason to install both.
If you are not root when running both commands the second command will create the binary rpm for installation later but the rpm file will not be installed.
How do I change directories to my Downloads folder? I figured I could just run the command cd /home/Downloads, but it does not work. The folder is in Dane's Home on my desktop. Another thing, if I did a full install that included the developer's applications, does that mean I already have the necessary development kits to run and compile Java and C++ code?
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
Your home directory is /home/username not /home, so try: cd /home/Dane/Downloads
If that fails then do a search for the file(s);
locate <the full downloaded file name here>
Quote:
Another thing, if I did a full install that included the developer's applications, does that mean I already have the necessary development kits to run and compile Java and C++ code?
Ok I figured out the tar.gz files. That was rather easy, but I am still struggling with these rpm.bin files. I think I am typing the commands right and this is what I get.
[root@localhost Downloads]# chmod +x j2sdk-rpm.bin ./j2sdk-rpm.bin
[root@localhost Downloads]# chmod a+x j2sdk-rpm.bin ./j2sdk-rpm.bin
[root@localhost Downloads]# exit
exit
I tried it the other way too because thats what it said to do on the Java site. It doesn't give me any error messages but nothing happens.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
After typing: ./jdk-6u1-linux-i586-rpm.bin you should see the License Agreement and you have to press the spacebar a number of time to get to the end then accept the agreement. Here is a step by step after downloading;
Quote:
$ ls -al jdk-6u1-linux-i586-rpm.bin
-rw-rw-r-- 1 lenard lenard 60680996 Jun 29 11:25 jdk-6u1-linux-i586-rpm.bin
$ chmod +x jdk-6u1-linux-i586-rpm.bin
$ ls -al jdk-6u1-linux-i586-rpm.bin
-rwxrwxr-x 1 lenard lenard 60680996 Jun 29 11:25 jdk-6u1-linux-i586-rpm.bin
Since I do not need to install the package I added the switch (-x) to the command;
$ jdk-6u1-linux-i586-rpm.bin -x
Sun Microsystems, Inc. Binary Code License Agreement
for the JAVA SE DEVELOPMENT KIT (JDK), VERSION 6
SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
(COLLECTIVELY "AGREEMENT"). PLEASE READ THE AGREEMENT
<snipping>
For inquiries please contact: Sun Microsystems, Inc., 4150
Network Circle, Santa Clara, California 95054, U.S.A.
Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jdk-6u1-linux-i586.rpm
Extraction of RPM Done.
Done.
$ ls -al jdk-6u1*
-rw-r--r-- 1 lenard lenard 61134405 Mar 14 06:58 jdk-6u1-linux-i586.rpm
-rwxrwxr-x 1 lenard lenard 60680996 Jun 29 11:25 jdk-6u1-linux-i586-rpm.bin
Why I do not need to install the rpm package;
$ rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}.rpm\n" jdk
jdk-1.7.0-ea.x86_64.rpm
$ java -version
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b14)
Java HotSpot(TM) 64-Bit Server VM (build 1.7.0-ea-b14, mixed mode)
Now I have run into another problem. This is the error I am getting.
Do you agree to the above license terms? [yes or no]
y
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jdk-6u1-linux-i586.rpm error: can't create transaction lock on /var/lib/rpm/__db.000
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
Means you were not root (or equivalent) when you typed the command is all, not a big deal. You should have the rpm package available for installation, as root type;
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.