PDA

View Full Version : java instillation problem



Joe48
28th September 2005, 08:56 AM
I tried to install Java per the Freora FAQ and got the following error
[root@localhost joe]# mv jdk-1_5_0_05-linux-i586.bin /usr/src/redhat/SOURCES/
mv: overwrite `/usr/src/redhat/SOURCES/jdk-1_5_0_05-linux-i586.bin'? y
[root@localhost joe]# cd ~root
[root@localhost ~]# rpmbuild --rebuild java-1.5.0-sun*src.rpm
error: cannot open java-1.5.0-sun*src.rpm: No such file or directory
[root@localhost ~]# cd ~joe
[root@localhost joe]# rpmbuild --rebuild java-1.5.0-sun*src.rpm
Installing java-1.5.0-sun-1.5.0.04-1jpp.nosrc.rpm
warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID c431416d
warning: user jacorley does not exist - using root
warning: group ncsu does not exist - using root
warning: user jacorley does not exist - using root
warning: group ncsu does not exist - using root
warning: user jacorley does not exist - using root
warning: group ncsu does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.45152
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /usr/src/redhat/BUILD/jdk1.5.0_04
+ export MORE=10000
+ MORE=10000
+ sh /usr/src/redhat/SOURCES/jdk-1_5_0_04-linux-i586.bin
sh: /usr/src/redhat/SOURCES/jdk-1_5_0_04-linux-i586.bin: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.45152 (%prep)


RPM build errors:
InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID c431416d
user jacorley does not exist - using root
group ncsu does not exist - using root
user jacorley does not exist - using root
group ncsu does not exist - using root
user jacorley does not exist - using root
group ncsu does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.45152 (%prep)
[root@localhost joe]#

Any help would be appreciated

imdeemvp
28th September 2005, 09:04 AM
Is this for mozilla/firefox plugin? if so here: http://www.fedoraforum.org/forum/showthread.php?t=29928

daihard
28th September 2005, 10:08 AM
+ sh /usr/src/redhat/SOURCES/jdk-1_5_0_04-linux-i586.bin
sh: /usr/src/redhat/SOURCES/jdk-1_5_0_04-linux-i586.bin: No such file or directory
This is the key part.

In order to compile a JDK rpm using the source RPM file, you need to have the self-extracting bin file in /usr/src/redhat/SOURCES. The exact steps to take are outlined in the Fedora FAQ site.

http://www.fedorafaq.org/#java