LinuxQuestions.org
Help answer threads with 0 replies.
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 12-22-2012, 12:39 PM   #1
hyperspherical
LQ Newbie
 
Registered: Dec 2012
Posts: 3

Rep: Reputation: Disabled
What package can I install to get /usr/src/kernels/$(uname -r), kernel-devel not work


I am trying to install my alx drivers from compat-wireless and I get an error 2 on make.

After following the /lib/modules/build symbolic link I found that I was missing my /usr/src/kernels/3.3.4-5.fc17.x86_64 directory was not there.

I cannot seem to find a package that will install all of the kernel source. Kernel-devel and kernel-tools and kernel-headers are installed, but my directory is not there.

I understand I could go to kernel.org and download, but I dont know if I would install it right. I thought there should be a nice easy package that I can install to give me the right files in directory.

help plz!
 
Old 12-22-2012, 01:28 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
hello hypersperical, welcome to LQ,

probably you're missing a package "kernel-sources" or similar name. You should try to find such a package in the repository of your distribution. But I would recommend also to look for the missing driver in the repository, if they have it, the packagemanager will automatically install all the necessary packages.

Markus
 
Old 12-22-2012, 01:59 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,455

Rep: Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212
Welcome to LQ.

Solution : # yum install kernel kernel-devel

I.e. the two packages kernel, kernel-devel must be the same update version.
Please reboot after the install, and the new kernel-devel can be used.

Latest is : kernel-3.6.10-2.fc17.x86_64, kernel-devel-3.6.10-2.fc17.x86_64
http://dl.fedoraproject.org/pub/fedo...tes/17/x86_64/

( 3.3.4-5.fc17.x86_64 is an old version : 09-May-2012.)

.

Last edited by knudfl; 12-22-2012 at 02:03 PM.
 
1 members found this post helpful.
Old 12-23-2012, 12:58 PM   #4
hyperspherical
LQ Newbie
 
Registered: Dec 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
re

Thanks markush and knudfl, I think I will try knudfl's idea and upgrade the kernel, I may have to use kernel-sources even on an upgrade but I will try.


Can anybody confirm 'kernel-sources' as the right package?
 
Old 12-23-2012, 02:54 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,455

Rep: Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212
# 4
Quote:
Can anybody confirm 'kernel-sources' as the right package ?
There is no binary package by name 'kernel-source' :
You can easily check that with : yum search kernel
The right package for "compat-wireless" is 'kernel-devel'.
 
  


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
i want to make but my linux doesnt have /usr/src/kernels/...... papseddy Red Hat 5 11-06-2008 02:25 PM
About /usr/src/kernels/ dir...Help plz ankit4u1 Linux - General 5 11-06-2008 01:55 AM
uname -r and ll usr/src/linux soulxcavtor Linux - Software 4 06-02-2006 12:05 AM
Deleted the /usr/src/kernels Folder ??? 09-sparky Linux - General 3 01-22-2006 08:25 AM
Ok to delete old kernels in /boot and /usr/src? stug Linux - General 1 03-15-2004 09:54 PM


All times are GMT -5. The time now is 07:16 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