LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-12-2009, 06:29 AM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Rep: Reputation: 33
rpmbuild error: Bad exit status


To install Open-Xchange, java-1.5.0.15 SDK is needed so I'm following a guide to create rpm's. I ran into the following error :

Code:
[root@ox ~]# rpmbuild --rebuild java-1.5.0-sun-1.5.0.15-1jpp.nosrc.rpm 
Installing java-1.5.0-sun-1.5.0.15-1jpp.nosrc.rpm
warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID c431416d
warning: user jasonc does not exist - using root
warning: group jasonc does not exist - using root
warning: user jasonc does not exist - using root
warning: group jasonc does not exist - using root
warning: user jasonc does not exist - using root
warning: group jasonc does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.90171
+ umask 022
+ cd /usr/src/redhat/BUILD
+ rm -rf /usr/src/redhat/BUILD/jdk1.5.0_15
+ export MORE=10000
+ MORE=10000
+ sh /usr/src/redhat/SOURCES/jdk-1_5_0_15-linux-i586.bin
sh: /usr/src/redhat/SOURCES/jdk-1_5_0_15-linux-i586.bin: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.90171 (%prep)


RPM build errors:
    InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID c431416d
    user jasonc does not exist - using root
    group jasonc does not exist - using root
    user jasonc does not exist - using root
    group jasonc does not exist - using root
    user jasonc does not exist - using root
    group jasonc does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.90171 (%prep)
Code:
[root@ox ~]# ls -l /root/rpmbuild/SOURCES/
-rwxr-xr-x 1 root root 49647629 Dec 12 14:13 jdk-1_5_0_15-linux-i586.bin
[root@ox ~]# ls -l /root/
-rw-r--r-- 1 root root 17806 Jun 12  2008 java-1.5.0-sun-1.5.0.15-1jpp.nosrc.rpm
drwxr-xr-x 3 root root  4096 Dec 12 14:04 rpmbuild
Can you advise ??

Thanks.

Last edited by jonaskellens; 12-12-2009 at 06:31 AM.
 
Old 12-12-2009, 07:00 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
- Not build packages as root account user,
- Header V3 DSA signature: NOKEY: informational: install the GnuPG key,
- user does not exist: informational, not a fatal error,
- mv /root/rpmbuild/SOURCES/jdk-1_5_0_15-linux-i586.bin /home/unprivileged_user/redhat/SOURCES/, set up shop for building packages the right way then try again from the unprivileged_user account?
 
1 members found this post helpful.
Old 12-12-2009, 07:12 AM   #3
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Original Poster
Rep: Reputation: 33
Code:
[rpmbuilder@ox ~]$ rpmbuild --rebuild java-1.5.0-sun-1.5.0.15-1jpp.nosrc.rpm 
Installing java-1.5.0-sun-1.5.0.15-1jpp.nosrc.rpm
warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID c431416d
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
error: java-1.5.0-sun-1.5.0.15-1jpp.nosrc.rpm cannot be installed
[rpmbuilder@ox ~]$ tree
.
|-- java-1.5.0-sun-1.5.0.15-1jpp.nosrc.rpm
`-- redhat
    `-- SOURCES
        `-- jdk-1_5_0_15-linux-i586.bin

2 directories, 2 files
How do I change this %sourcedir ??
 
Old 12-12-2009, 09:58 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Quote:
Originally Posted by jonaskellens View Post
How do I change this %sourcedir ??
In either your unprivileged users ~/.rpmmcros or in the .spec file used:
http://www.linuxquestions.org/questi...14/#post503358
http://www.linuxquestions.org/questi...4/#post3410037
http://www.linuxquestions.org/questi...6/#post3758229
..or Knudfl's posts in http://www.linuxquestions.org/questi...at-5.1-766486/
 
Old 12-12-2009, 06:15 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,657

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
How To ..
http://wiki.centos.org/HowTos/JavaOnCentOS

3.4. Setting up the rpm build environment in /home/<user>

3.5.1. Which says : download "java-<version>..bin"
and move it to /home/<user>/rpms/SOURCES/
( or /home/<user>/rpmbuild/SOURCES/ ).

From post # 1 :
Quote:
..SOURCES/jdk-1_5_0_15-linux-i586.bin: No such file or directory
:: The "bin file" must be downloaded beforehand ! ( Java jdk size = 65 MB.)

The 17 kB package java-1.5.0-sun-1.5.0.15-1jpp.nosrc.rpm :
contains five small "text files", used for the build.
.....

Last edited by knudfl; 12-12-2009 at 06:44 PM.
 
Old 12-29-2009, 03:01 PM   #6
BubbaDoom
LQ Newbie
 
Registered: Dec 2009
Posts: 1

Rep: Reputation: 0
Problem with Java 1.6.0_11 on Centos5.3 x64

I'm having a strange problem building my Java rpms.

I setup the rpmbuild structure for my non-root user (dude).

.rpmmacros contains:
%_topdir /home/dude/rpmbuild
%_tmppath %{_topdir}/tmp

I put "java-1.6.0-sun-1.6.0.11-1jpp.nosrc.rpm" in ~/rpmbuild/.

I put "jdk-6u11-linux-x64.bin" in ~/rpmbuild/SOURCES/.

When I try to build the rpms, I get
$ rpmbuild --rebuild java-1.6.0-sun-1.6.0.11-1jpp.nosrc.rpm

Installing java-1.6.0-sun-1.6.0.11-1jpp.nosrc.rpm
warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID c431416d
warning: user jasonc does not exist - using root
warning: group jasonc does not exist - using root
warning: user jasonc does not exist - using root
warning: group jasonc does not exist - using root
warning: user jasonc does not exist - using root
warning: group jasonc does not exist - using root
Executing(%prep): /bin/sh -e /home/dude/rpmbuild/tmp/rpm-tmp.10035
+ umask 022
+ cd /home/dude/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /home/dude/rpmbuild/BUILD/jdk1.6.0_11
+ export MORE=10000
+ MORE=10000
+ sh /home/dude/rpmbuild/SOURCES/jdk-6u11-linux-x64.bin
error: can't create transaction lock on /var/lib/rpm/__db.000
+ cd /home/dude/rpmbuild/BUILD
+ cd jdk1.6.0_11
/home/dude/rpmbuild/tmp/rpm-tmp.10035: line 35: cd: jdk1.6.0_11: No such file or directory

error: Bad exit status from /home/dude/rpmbuild/tmp/rpm-tmp.10035 (%prep)

I have no idea why it didn't create "jdk1.6.0_11" in BUILD... what am I doing wrong? (or what other configs should I post?)
 
Old 12-31-2009, 02:16 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,657

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
BubbaDoom .. Welcome to LQ.
Quote:
... what am I doing wrong?
Nothing, but there seem to be a mismatch in file names :
rpms/BUILD/<jdk-name> .. and the name figured out by
rpms/SPECS/java-1.6.0-sun.spec .

Packages are available for EL5.x .. jdk6 update 17
http://ftp.scientificlinux.org/linux...fcs.x86_64.rpm
> > jdk-1.6.0_17-fcs.x86_64.rpm

jdk6 update 13
http://ftp.scientificlinux.org/linux...fcs.x86_64.rpm
> > jdk-1.6.0_13-fcs.x86_64.rpm

jdk6 update 12
http://ftp.scientificlinux.org/linux...fcs.x86_64.rpm

.. Found no "11" http://ftp.scientificlinux.org/linux/scientific/
( "10" is available.)
Scientific Linux (SL 53) is one of the free copies of Redhat EL 5.3,
and apparently they build the packages .. and frees us for the work.
.....
 
  


Reply

Tags
jdk6


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
Error: collect 2: ld returned 1 exit status Rituparna Linux - Software 11 06-25-2009 02:54 PM
eturned error exit status 2 sulekha Ubuntu 1 11-14-2008 04:05 AM
dpkg error -- exit status 128 kushalkoolwal Debian 6 07-21-2006 01:36 PM
error exit status 30 debian_dummy Debian 2 09-21-2004 10:26 PM
problem with "rpm -bb" , 1 out of 1 hunk ignored ...error: Bad exit status from /v wohaolouis Linux - Software 0 03-07-2004 07:12 AM


All times are GMT -5. The time now is 10:17 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