Jump to content

"rpm source directory tree"?


Andrewski
 Share

Recommended Posts

I'm trying to use checkinstall to install software from source. I'm almost there :cheesy: but have hit a wall:

Please write the path to the RPM source directory tree:/usr/src/

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

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

The directory structure is as follows:

root:RPM$ ls /usr/src/RPM/RPMS/
athlon/  i386/  i486/  i586/  i686/  k6/  noarch/
root:RPM$ ls /usr/src/RPM/RPMS/i686/
root:RPM$ cd i586
bash: cd: i586: No such file or directory
root:RPM$ cd i686
bash: cd: i686: No such file or directory
root:RPM$ ls /usr/src/RPM/RPMS/i586/
root:RPM$

 

What the deuce?

Link to comment
Share on other sites

[root@ml root]# ls /usr/src/RPM
BUILD/  RPMS/  SOURCES/  SPECS/  SRPMS/
[root@ml root]# ls /usr/src/RPM/BUILD
[root@ml root]# ls /usr/src/RPM/RPMS 
athlon/  i386/  i486/  i586/  i686/  k6/  noarch/
[root@ml root]# ls /usr/src/RPM/SOURCES
NVIDIA_kernel-1.0-4191.tar.gz
[root@ml root]# ls /usr/src/RPM/SPECS  
NVIDIA_kernel.spec
[root@ml root]# ls /usr/src/RPM/SRPMS
[root@ml root]#

 

the only confirmation I found on this is something I can't read but it seems to show checkinstall looking at the above locations.

 

http://www.linuxfan.pl/dyskusje/pcol.2003/....2003/6785.php3

google

Link to comment
Share on other sites

I think this may be referring to kernel-sources.  Do you have this installed? If not, install and this error should go away.

root:andrew$ rpm -qa | grep kernel
kernel-source-2.4.22-21mdk
kernel-2.4.22.21mdk-1-1mdk
kernel-2.4.22.10mdk-1-1mdk

(I'm running 2.4.22-21mdk right now.)

 

bvc,

Why don't I have the files you seem to in your /usr/src/RPM folder?

Link to comment
Share on other sites

Wow, neat trick bvc... one I just learned on an RPM how-to before coming here. Thanks!

 

Now, I have another problem... :roll: I checked the install of rpm-build and my directory structure is intact, but here is the output from my endeavour:

root:andrew$ rpm -ivh --rebuild xfce4-4.0.1-1mdk.src.rpm
-i: unknown option
root:andrew$ rpm -ivh xfce4-4.0.1-1mdk.src.rpm
error: cannot create %sourcedir /root/RPM/SOURCES
root:andrew$ exit
exit
andrew:andrew$ rpm -ivh --rebuild xfce4-4.0.1-1mdk.src.rpm
-i: unknown option
andrew:andrew$ rpm -ivh xfce4-4.0.1-1mdk.src.rpm
error: cannot write to %sourcedir /usr/src/RPM/SOURCES

I'm pulling my information from this RPM how-to.

andrew:andrew$ rpm -qa | grep rpm
urpmi-4.4-37mdk
rpm-helper-0.9.1-1mdk
rpm-build-4.2-22.1.92mdk
rpmdrake-2.1-35mdk
rpm-4.2-22.1.92mdk
rpmtools-4.5-13mdk
gurpmi-4.4-37mdk

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...