LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2008, 04:04 PM   #1
Chazzman_bm
LQ Newbie
 
Registered: Jan 2006
Location: Scotland
Distribution: Mandriva 2006
Posts: 12

Rep: Reputation: 0
No kernel Sources Installed - I don't get it


Hi folks. Like so many people on the forum, I'm struggling with installing software. I'm running Mandriva 2007 and get the following when running 'make' (following 'make clean', './configure' and 'make menuselect':

[root@alpha zaptel-1.4.8]# make
grep: /include/linux/autoconf.h: No such file or directory
grep: /include/linux/autoconf.h: No such file or directory
make[1]: Entering directory `/usr/src/zaptel-1.4.8'
gcc -o makefw makefw.c
./makefw tormenta2.rbt tor2fw > tor2fw.h
Loaded 69900 bytes from file
./makefw pciradio.rbt radfw > radfw.h
Loaded 42096 bytes from file
You do not appear to have the sources for the 2.6.12-12mdksmp kernel installed.
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/src/zaptel-1.4.8'
make: *** [all] Error 2
[root@alpha zaptel-1.4.8]#

Before I get flamed, I have done the Google and forum searches and have gone to the EasyURPMI site and followed the instructions. I ran the commands for all the options (main, contrib, plf) but still the same message. Thinking that I might have missed something, I logged in as root and ran the package updater tool and left it running to download 700+ MB worth of stuff.

Another reboot and another attempt at installing the software and the same message occurs.

Obviously, I'm no Linux guru but how can you tell if I have the sources installed?

Thanks for your help.
 
Old 03-05-2008, 04:40 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Hi

Have you done:

Quote:
# urpmi kernel-`uname -r`
?

If it still doesn't work, you can grab the latest stable kernel from kernel.org and compile it on your system.
This way you'll learn how to compile a new kernel and you'll have the necessary sources.
It's really not that hard - just follow the tutorials that you can easily google.
HTH

Last edited by sycamorex; 03-05-2008 at 04:43 PM.
 
Old 03-05-2008, 05:17 PM   #3
Chazzman_bm
LQ Newbie
 
Registered: Jan 2006
Location: Scotland
Distribution: Mandriva 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Sycamorex,

Running urpmi kernel- 'uname -r' gives a bunch of output and, at the end, this :

no package named uname -r

So it looks like I'll need to learn how to compile a new kernel.

Thanks.
 
Old 03-05-2008, 05:35 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,652

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
There is an extra space in the command you ran.
 
Old 03-05-2008, 06:02 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Plus those are back-ticks, not apostrophes
 
Old 03-06-2008, 09:06 AM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
Don't use the backticks, newer version of bash don't even support them, run this:

Code:
urpmi kernel-$(uname -r)
 
Old 03-06-2008, 12:30 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by H_TeXMeX_H View Post
Don't use the backticks, newer version of bash don't even support them, run this:

Code:
urpmi kernel-$(uname -r)
How new would new have to be not to support back-ticks?
Works fine with 3.2.25


That would break a few scripts, I'd imagine.


Cheers,
Tink
 
Old 03-06-2008, 02:34 PM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
I can't find the article now, but I'm quite sure I read somewhere that they were doing away with the backticks in newer bash versions. And it would be a very good thing, it would make things a lot more readable if people were forced to use the new format. (it's also much easier to nest, which you already know)
 
Old 03-06-2008, 02:47 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by H_TeXMeX_H View Post
I can't find the article now, but I'm quite sure I read somewhere that they were doing away with the backticks in newer bash versions. And it would be a very good thing, it would make things a lot more readable if people were forced to use the new format. (it's also much easier to nest, which you already know)
I appreciate that :}

But removing it just like that would still break a truck-load
of existing scripts. I'd be curious to see the discussions
around that for sure.


Cheers,
Tink
 
Old 03-19-2008, 02:58 AM   #10
Chazzman_bm
LQ Newbie
 
Registered: Jan 2006
Location: Scotland
Distribution: Mandriva 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Hello,

I have located and downloaded the Mandriva 2006 Disks 1 to 3 (iso images) from the following location.

ftp://ftp.mirrorservice.org/sites/ca...so/2006.0/i586)

What do I need to do now to update the sources? Do I have to copy the contents in a specific location (specific locations) or is there something I need to run for the system to go and pick up the sources up from the downloaded location?

I'm not sure if it makes a difference but I have downloaded everything to my home directory.

Thanks.
 
Old 03-19-2008, 05:33 AM   #11
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
First it'd be good to update your system, use the updater package from your menu and then:
Can you give us the output of:

Code:
# urpmi kernel-`uname -r`
As others pointed out those are back-ticks (On my keyboard it's the key to the left of '1' and there's no space between kernel- and the first back-tick.

Or as H TexMex H suggested try:
Code:
# urpmi kernel-$(uname -r)
Assuming your computer is connected to the internet this command should solve the problem, you don't need to download the .iso images.

uname -r gives the version of the kernel you are running. You can type it in the console.

Using the "urpmi kernel-`uname -r`" or "urpmi kernel-$(uname -r)" will ensure that you install the right kernel package for your system.

Make sure you type it as root

ps. why don't you use a more up-to-date version of Mandriva. I don't use Mandriva but as far as I remember, Mandriva 2008 is out.
hth

Last edited by sycamorex; 03-19-2008 at 05:39 AM.
 
Old 03-19-2008, 07:27 AM   #12
Chazzman_bm
LQ Newbie
 
Registered: Jan 2006
Location: Scotland
Distribution: Mandriva 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Output as requested:

[root@alpha ~]# urpmi kernel-`uname -r`
no package named kernel-2.6.12-12mdksmp
[root@alpha ~]# urpmi kernel-$(uname -r)
no package named kernel-2.6.12-12mdksmp
[root@alpha ~]#

"why don't you use a more up-to-date version of Mandriva. I don't use Mandriva but as far as I remember, Mandriva 2008 is out."

A couple of reasons really.
1)My CD drive is busted making a new installation a pain
and
2) Because all I wanted to do is install a bit of software on my server, I thought that I'd 'just' get and update the sources. I didn't expect it to be this complicated.
 
Old 03-19-2008, 08:43 AM   #13
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Well, I am just guessing now but it might stem from the fact that:
a) you don't have the source repository enabled
b) your kernel is too old to be included in the main repository

If you don't want/need to install the latest Mandriva, perhaps downloading the latest kernel and recompiling it would be a solution. This way you would have an up-to-date kernel and sources.

Alternatively, I would assume you'd need to mount the iso images you downloaded, find the package 'kernel-2.6.12-12mdksmp' and install it manually.

regards

sycamorex
 
Old 03-19-2008, 09:04 AM   #14
Chazzman_bm
LQ Newbie
 
Registered: Jan 2006
Location: Scotland
Distribution: Mandriva 2006
Posts: 12

Original Poster
Rep: Reputation: 0
To be honest, I'll take the path of least resistance at this stage. I've never compiled a kernel and wouldn't know where to start.

The second option sounds like the one I'd probably go for but I don't know how to 'mount' an iso image. Sorry to sound like such a bonehead but this is all pretty new to me.
 
Old 03-19-2008, 09:40 AM   #15
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Personally I think that if your hardware is not too old I'd suggest getting a newer system.

Compiling a kernel is not as difficult as it sounds:
http://www.howtoforge.com/kernel_compilation_mandriva

To mount an iso image:
1. Go to the directory where your images are saved.
2. create a directory e.g iso_image1
Quote:
# mount -t iso9660 -o loop your_image.iso path
eg
Quote:
# mount -t iso9660 -o loop mandriva2006.iso iso_image1
and then you can cd into this directory and browse the files.

Last edited by sycamorex; 03-19-2008 at 09:42 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I remove old kernel sources after kernel upgrade(to 2.6.17.13) on Slackware 11? ErV Slackware 7 05-04-2007 01:06 PM
Linux 2.6.{0,1} (configured sources installed) gokultck Linux - Software 1 03-23-2006 08:54 PM
How to tell up2date to start getting sources when not initially installed ericcarlson Fedora 12 08-07-2004 01:11 PM
9.2rc1 No Kernel Sources Installed??? olias Mandriva 13 11-05-2003 11:39 AM
CAVEAT: /boot/kernel.h & how not to clobber your kernel sources (Conectiva, Red Hat) JCCyC LinuxQuestions.org Member Success Stories 0 08-07-2003 08:49 AM


All times are GMT -5. The time now is 02:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration