Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Kernel Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th August 2007, 19:00
wazzubrad wazzubrad is offline
Junior Member
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 20th August 2007, 19:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

I wonder why your 2.6.22 kernel looks for files belonging to 2.6.17...

What's the output of
Code:
ls -la /usr/src
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 21st August 2007, 02:20
wazzubrad wazzubrad is offline
Junior Member
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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/
Reply With Quote
  #4  
Old 21st August 2007, 18:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 16th May 2009, 15:46
jakdominance jakdominance is offline
Junior Member
 
Join Date: May 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Code:
ls -la /usr/src
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.
Reply With Quote
  #6  
Old 17th May 2009, 20:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Is the rpmbuild package installed?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 18th May 2009, 15:55
jakdominance jakdominance is offline
Junior Member
 
Join Date: May 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #8  
Old 19th May 2009, 16:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Try
Code:
urpmi rpmbuild
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 31st July 2009, 14:10
Hariboo Hariboo is offline
Junior Member
 
Join Date: Jul 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Cool 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 15:19.
Reply With Quote
  #10  
Old 1st August 2009, 10:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
 
Default

Mandriva 2007 is quite old. Why don't you try 2009.1?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 20:38
Xen 3.0.2 /3.0.3 | No Swap in DomU Merc HOWTO-Related Questions 10 27th March 2007 12:40
ISPConfig 2.2.10 Beta, any bugs known? till Developers' Forum 29 26th February 2007 12:38
WG311v2 almost working with Edgy (w/o ndiswrapper) need help with the rest caudata Server Operation 11 13th November 2006 21:02
Questions about ubuntu ISP-Server Setup badgerbox76 HOWTO-Related Questions 15 5th March 2006 15:41


All times are GMT +2. The time now is 15:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.