Jump to content

RPM source directory tree


Andrewski
 Share

Recommended Posts

I can't seem to get anything installed. Every source program I intend to compile stops me at the rpm-making phase (using checkinstall).

/root/RPM has no SOURCES directory. Please write the path to the RPM source directory tree:

bvc and I talked about this before and he told me to install rpm-build, which would give me something in my /usr/src/RPM/ folder. So I did that, and now I have rpm-build-4.2-22.1.92mdk.

 

Problem is, that didn't help. Checkinstall still failed. What am I missing?

root:id3lib-3.8.3$ ls -R /usr/src/RPM/
/usr/src/RPM/:
BUILD/  RPMS/  SOURCES/  SPECS/  SRPMS/
/usr/src/RPM/BUILD:
/usr/src/RPM/RPMS:
athlon/  i386/  i486/  i586/  i686/  k6/  noarch/
/usr/src/RPM/RPMS/athlon:
/usr/src/RPM/RPMS/i386:
/usr/src/RPM/RPMS/i486:
/usr/src/RPM/RPMS/i586:
/usr/src/RPM/RPMS/i686:
/usr/src/RPM/RPMS/k6:
/usr/src/RPM/RPMS/noarch:
/usr/src/RPM/SOURCES:
/usr/src/RPM/SPECS:
/usr/src/RPM/SRPMS:

Thanks!

Link to comment
Share on other sites

I use it to build rpms from tarballs. It comes in very handy if you have to uninstall. I've never run into this problem however. It always places the built rpm in /usr/src/RPM/RPMS/i386. You could try designating that path or any directory that you want. It's just the place where it puts the built rpm so you know where to find it.

Link to comment
Share on other sites

doesn't look like a lot of people use it. I never saw the point myself. Why do you need it? To make rpm's?

bvc,

I'm simply trying to install using checkinstall. I did quite a bit of that over the summer, but after upgrading to 9.2, I haven't been able to get it to work. I'm wondering if someone who has used it could tell me what they have, etc.

 

pmpatrick,

How do I designate that path? I wonder if simply setting that would solve my problem....

Link to comment
Share on other sites

i've always built rpms without any problems as a normal user. try that and see if that helps. here are the config files i use:

 

~/.rpmrc

optflags: i686 -march=pentium3 -O3 -fomit-frame-pointer -pipe

buildarchtranslate: i386: i686
buildarchtranslate: i486: i686
buildarchtranslate: i586: i686
buildarchtranslate: i686: i686

~/.rpmmacros

%_topdir               /home/beesea/rpm
%_tmppath              /home/beesea/rpm/tmp

%_signature            gpg
%_gpg_name             Mandrake Linux
%_gpg_path             ~/.gnupg
%distribution          Mandrake Linux
%vendor                MandrakeSoft

i'd also check out http://www.linux-mandrake.com/en/howtos/mdk-rpm/ for reference

Link to comment
Share on other sites

Andrewski,

 

I am using checkinstall on 9.2, no problems here.

 

- The checkinstall version I am using is from the 9.2 contrib mirror

- I think (not sure) I had to install automake

- The new checkinstall version behaves a little different, for me. The last step: su to root, then 'checkinstall' is only creating the rpm-file, saving it in /usr/src/RPM/RPMS/... (here the arch...)

- Then I have to install the rpm. I am using urpmi after copying the file to a certain dir in my home dir which I use as a urpmi source.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...