
19th August 2007, 18:00
|
|
Junior Member
|
|
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Kernel Compile Error: Mandriva 2007
This is what I end up with. Is my symlink going in the correct location or referencing the correct location?
[root@localhost src]# tar xjf linux-2.6.22.3.tar.bz2
[root@localhost src]# ln -s linux-2.6.22.3 linux
[root@localhost src]# cd /usr/src/linux
[root@localhost linux]# make clean && make mrproper
awk: cmd. line:1: fatal: cannot open file `/lib/modules/2.6.17-13mdvlegacy/build/include/linux/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/lib/modules/2.6.17-13mdvlegacy/build/include/linux/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/lib/modules/2.6.17-13mdvlegacy/build/include/linux/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/lib/modules/2.6.17-13mdvlegacy/build/include/linux/version.h' for reading (No such file or directory)
CLEAN scripts/basic
CLEAN scripts/kconfig/lxdialog
CLEAN scripts/kconfig
CLEAN scripts/package
CLEAN .config .config.old .version include/linux/autoconf.h .kernelrelease
[root@localhost linux]# make rpm
/bin/sh /usr/src/linux-2.6.17-13mdv/scripts/package/mkspec > /usr/src/linux-2.6.17-13mdv/kernel.spec
make clean
awk: cmd. line:1: fatal: cannot open file `/lib/modules/2.6.17-13mdvlegacy/build/include/linux/version.h' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/lib/modules/2.6.17-13mdvlegacy/build/include/linux/version.h' for reading (No such file or directory)
set -e; cd ..; ln -sf /usr/src/linux-2.6.17-13mdv kernel-2.6.1713mdvcustomdefault
set -e; cd ..; tar -cz --exclude SCCS --exclude BitKeeper --exclude .svn --exclude CVS --exclude .pc --exclude .hg --exclude .git -f kernel-2.6.1713mdvcustomdefault.tar.gz kernel-2.6.1713mdvcustomdefault/.
set -e; cd ..; rm kernel-2.6.1713mdvcustomdefault
set -e; \
/bin/sh /usr/src/linux-2.6.17-13mdv/scripts/mkversion > /usr/src/linux-2.6.17-13mdv/.tmp_version
set -e; \
mv -f /usr/src/linux-2.6.17-13mdv/.tmp_version /usr/src/linux-2.6.17-13mdv/.version
rpm --target i386 -ta ../kernel-2.6.1713mdvcustomdefault.tar.gz
Could not exec /usr/lib/rpm/rpmb: No such file or directory
make[1]: *** [rpm] Error 1
make: *** [rpm] Error 2
|

20th August 2007, 18:51
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
I wonder why your 2.6.22 kernel looks for files belonging to 2.6.17...
What's the output of ?
|

21st August 2007, 01:20
|
|
Junior Member
|
|
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
The output is:
drwxr-xr-x 16 root root 4096 Aug 19 09:36 ./
drwxr-xr-x 13 root root 4096 Jul 23 10:47 ../
drwxr-xr-x 2 root root 4096 Apr 11 11:24 ati-8.34.8/
drwxr-xr-x 4 root root 4096 Aug 8 21:28 ati-8.34.8-2.1plf2007.1/
drwxr-xr-x 3 root root 4096 Jul 27 15:27 debug/
drwxr-xr-x 2 root root 4096 Apr 11 11:25 hcfpcimodem-1.10full/
drwxr-xr-x 2 root root 4096 Apr 11 11:25 hsfmodem-7.47.00.03full/
lrwxrwxrwx 1 root root 18 Aug 18 23:28 linux -> linux-2.6.17-13mdv/
drwxr-xr-x 22 root root 4096 Aug 19 09:39 linux-2.6.17-13mdv/
drwxrwxr-x 19 root root 4096 Aug 15 10:25 linux-2.6.22.3/
drwxr-xr-x 2 root root 4096 Apr 11 11:25 madwifi-0.9.2/
drwxr-xr-x 4 root root 4096 Aug 1 16:40 Mesa/
drwxr-xr-x 2 root root 4096 Apr 11 11:25 nvidia71xx-7184/
drwxr-xr-x 2 root root 4096 Apr 11 11:25 nvidia96xx-9631/
drwxr-xr-x 2 root root 4096 Apr 11 11:25 nvidia97xx-9755/
drwxr-xr-x 3 root root 4096 Apr 11 11:11 rpm/
drwxr-xr-x 2 root root 4096 Apr 11 11:25 slmodem-2.9.11/
|

21st August 2007, 17:49
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
Quote:
|
Originally Posted by wazzubrad
The output is:
lrwxrwxrwx 1 root root 18 Aug 18 23:28 linux -> linux-2.6.17-13mdv/
|
linux is pointing to linux-2.6.17-13mdv/, not linux-2.6.22.3/...
Try this:
Code:
ln -sf /usr/src/linux-2.6.22.3 /usr/src/linux
|

16th May 2009, 14:46
|
|
Junior Member
|
|
Join Date: May 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I get this:
Code:
[root@localhost linux]# make rpm
make clean
set -e; cd ..; ln -sf /usr/src/linux-2.6.29.1-4mnb kernel-2.6.29.14mnbcustomdefault
/bin/sh /usr/src/linux-2.6.29.1-4mnb/scripts/setlocalversion > /usr/src/linux-2.6.29.1-4mnb/.scmversion
set -e; cd ..; tar -cz --exclude SCCS --exclude BitKeeper --exclude .svn --exclude CVS --exclude .pc --exclude .hg --exclude .git -f kernel-2.6.29.14mnbcustomdefault.tar.gz kernel-2.6.29.14mnbcustomdefault/.
set -e; cd ..; rm kernel-2.6.29.14mnbcustomdefault
rm -f /usr/src/linux-2.6.29.1-4mnb/.scmversion
set -e; \
/bin/sh /usr/src/linux-2.6.29.1-4mnb/scripts/mkversion > /usr/src/linux-2.6.29.1-4mnb/.tmp_version
set -e; \
mv -f /usr/src/linux-2.6.29.1-4mnb/.tmp_version /usr/src/linux-2.6.29.1-4mnb/.version
rpm --target i386 -ta ../kernel-2.6.29.14mnbcustomdefault.tar.gz
"rpm -b" is deprecated, use "rpmbuild -b"
/usr/lib/rpm/rpmb_deprecated: line 3: exec: rpmbuild: not found
make[1]: *** [rpm] Error 127
make: *** [rpm] Error 2
is this a different problem? when i do i get this:
Code:
total 59964
drwxr-xr-x 3 root root 4096 May 16 21:27 ./
drwxr-xr-x 14 root root 4096 May 16 09:09 ../
-rw-r--r-- 1 root root 61322765 May 16 21:27 kernel-2.6.29.14mnbcustomdefault.tar.gz
lrwxrwxrwx 1 root root 19 May 16 17:55 linux -> linux-2.6.29.1-4mnb/
drwxr-xr-x 23 root root 4096 May 16 21:27 linux-2.6.29.1-4mnb/
which is different, but i'm still stuck.
|

17th May 2009, 19:37
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
Is the rpmbuild package installed?
|

18th May 2009, 14:55
|
|
Junior Member
|
|
Join Date: May 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
probably not. actually, there's probably a ton of things that I haven't installed and should. how do i install rpmbuild and is there documentation on other recommended installs anywhere? for instance important stuff to do in order to install and configure vmware tools.
|

19th May 2009, 15:06
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
|

31st July 2009, 13:10
|
|
Junior Member
|
|
Join Date: Jul 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Mandriva 2007
I dowonloaded Mandriva 2007 version from a FTP site. It was a 64 bit version. I couldn't Stellenangebote install it. Then I bought it by buying a copy of the Linux Magazine. It had some other problems. It didn't recognize the mouse.
I send an email to the people who made it. They want people to contact them if there is a problem. They never reply.
Last edited by Hariboo; 4th August 2009 at 14:19.
|

1st August 2009, 09:53
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
Mandriva 2007 is quite old. Why don't you try 2009.1?
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 08:16.
|
|
Recent comments
1 day 7 hours ago
1 day 10 hours ago
1 day 12 hours ago
1 day 13 hours ago
1 day 15 hours ago
1 day 16 hours ago
1 day 17 hours ago
2 days 9 hours ago
2 days 10 hours ago
2 days 14 hours ago