Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-22-2003, 01:06 PM   #1
Registered: Sep 2003
Distribution: Mandrake, Slack, Debian and PicoBSD
Posts: 181

Rep: Reputation: 31
building rpms as non-root user - temp probs

I'm trying to build rpms from src.rpms and tarballs as a non-root user in mandrake 9.1.

So far I've mirrored /usr/src/rpm/ (with internal folders etc) in my home dir and created a .rpmmacros file (also in home dir) which points the top-level directory for rpm and rpmbuild to /home/me/rpm by running;

[me@mybox]$ echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros

but I'm getting inaccessible temp errors (verbose output below)

[me@mybox programs]$ rpmbuild -vv -ta gaim-0.70.tar.gz
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index       /var/lib/rpm/Packages
D: ========== +++ gaim-0.70-1
D: opening  db index       /var/lib/rpm/Depends create mode=0x0
D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
D: Requires: libao-devel                                   YES (db provides)
D: Requires: libgtk+2.0_0-devel                            YES (db provides)
D: Requires: gtkspell-devel                                YES (db provides)
D: Requires: libtool                                       YES (db provides)
D: Requires: audiofile-devel                               YES (db provides)
D: Requires: pkgconfig                                     YES (db provides)
D: Requires: libnss3-devel                                 YES (db provides)
D: opening  db index       /var/lib/rpm/Conflictname rdonly mode=0x0
D: closed   db index       /var/lib/rpm/Depends
D: closed   db index       /var/lib/rpm/Conflictname
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Packages
error: Unable to open temp file.
RPM build errors:
Unable to open temp file.
How do I tell it to use /home/me/tmp for building?

Would creating a rpm database in my home folder work (i.e. look there rather than in /var/lib/rpms for dependencies etc) - a couple of docs mentioned this, but implied it wasn't necessary. I haven't had a chance to try it yet (not at home).

BTW: I know the package is ok, it has a spec file and builds as root, but I'm fed up with su-ing just to build a bloody package (besides, it's _frowned upon_ to build as root).
Old 11-22-2003, 05:01 PM   #2
LQ Guru
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,880

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
I suggest that you use checkinstall to build rpms from tar balls. The procedure is:

Be prepared. Create a LifeBoat CD.

Steve Stites
Old 11-23-2003, 05:41 PM   #3
Registered: Sep 2003
Distribution: Mandrake, Slack, Debian and PicoBSD
Posts: 181

Original Poster
Rep: Reputation: 31
will give that a try,



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
Building RPMs from source IronBeagle Linux - Software 2 03-04-2005 02:46 PM
Building RPMs Brian of Gep Linux - Newbie 2 05-02-2004 11:26 AM
building rpms from cyrus-sasl help... tarballed Linux - Software 0 08-21-2003 07:09 PM
Mandrake 9 - Building and Misc Probs ambian307 Linux - Software 1 08-11-2003 10:55 AM
Building my own kernel - first probs Faeroon Slackware 10 01-20-2003 09:14 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration