Andrewski Posted December 17, 2003 Report Share Posted December 17, 2003 I'm trying to use checkinstall to install software from source. I'm almost there 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? Quote Link to comment Share on other sites More sharing options...
scoopy Posted December 17, 2003 Report Share Posted December 17, 2003 I think this may be referring to kernel-sources. Do you have this installed? If not, install and this error should go away. Quote Link to comment Share on other sites More sharing options...
bvc Posted December 17, 2003 Report Share Posted December 17, 2003 [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 Quote Link to comment Share on other sites More sharing options...
Andrewski Posted December 17, 2003 Author Report Share Posted December 17, 2003 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? Quote Link to comment Share on other sites More sharing options...
bvc Posted December 17, 2003 Report Share Posted December 17, 2003 some say 'google is your friend'....i say your best friend is urpmf ;) [root@ml root]# urpmf /usr/src/RPM/SOURCES rpm-build:/usr/src/RPM/SOURCES [root@ml root]# do urpmi rpm-build Quote Link to comment Share on other sites More sharing options...
Andrewski Posted December 18, 2003 Author Report Share Posted December 18, 2003 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 Quote Link to comment Share on other sites More sharing options...
bvc Posted December 18, 2003 Report Share Posted December 18, 2003 the old way was rpm --rebuild new way and reason for the rpm-build pkg rpmbuild --rebuild [root@localhost /]# rpm -ql rpm-build /etc/emacs/site-start.d/rpm.el /usr/bin/rpmbuild see rpmbuild --help or man rpmbuild Quote Link to comment Share on other sites More sharing options...
Andrewski Posted December 19, 2003 Author Report Share Posted December 19, 2003 root:andrew$ rpmbuild --rebuild xfce4-4.0.1-1mdk.src.rpm Installing xfce4-4.0.1-1mdk.src.rpm error: cannot create %sourcedir /root/RPM/SOURCES error: xfce4-4.0.1-1mdk.src.rpm cannot be installed :unsure: ??? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.