fc5 missing kernel source/will not install
Trying to build gspca (webcam driver) and the make errors with :
make: *** /lib/modules/2.6.15-1.2054_FC5/build: No such file or directory. Stop. make: *** [default] Error 2 The ./build/ softlink is broken. I've tried to install the kernel sources (using the add/remove software gui) and the kernel source is still missing. Searched other threads, but found nothing worthwhile. Update1: Got part of the problem is that the gui update installed the wrong source (2.6.17-1.2187_FC5). It should have installed the source for my kernel (2.6.15-1.2054_FC5) Stupid damn computer. |
Please review the Release note found on the installation media or here;
http://fedora.redhat.com/docs/releas...ISO/#sn-Kernel You may only need to install the kernel-devel and glibc-headers rpm packages; # yum install kernel-devel glibc-headers . |
Which kernel are your actually running. In terminal type uname -r
The 2.6.15-1.2054 kernel is really old. Unless you have a really good reason I would build to the current kernel 2.6.17-1.2187. You should be able to install the kernel-dev package for your kernel. Yum install kerenel-dev-(specific #). Lazlow |
[root@ra gspcav1-20060925]# uname -r
2.6.15-1.2054_FC5 I cannot seem to get my hands on this kernel source. rpmfind.net gets an ftp error "failed to change directory 550" when I try to download from there. Google this version and there's a shed load of problems out there. yum fails with "Metadata file does not match checksum" on every single mirror. I've tried everyhting I know of. Help !!! |
ftp://zeniv.linux.org.uk/pub/distrib...os/Fedora/RPMS
Search for kernel-devel Pick the correct one. If you double click on it it should bring up the install manger (asking for root password). Lazlow |
Thanks lazlow I might try your last.
However, i've been in situations like this with Linux before and run into problems for months and months because of it. Would I be better off reverting to trusty FC4 ? (seriously - I've had enough of FC5 and I haven't even commissioned the goddamned box yet!!!) EDIT : Just re-read your last - the strange thing is that the kernel source that _was_ installed was the 2.6.17 version - yet the actual kernel is 2.6.15. I downloaded the FC5 distro just 3 weeks ago. Why have I ended up with this hotchpotch of versions ? |
The Iso are the ones made when FC5 was released(the only official ones). In the linux world that was a long time ago. If you do a yum update (which you should do right after every fresh install) you will download a ton of updates.
Fc4 has been moved to legacy status. This essentially means that there will be no more development on it and very few updates. I would not even think about it. If you are looking for long term stability (which means few innovations too) look at Centos. Centos is essentially a rebadged version of redhat (free). Once you get FC5 up and running I think you will be happy. Lazlow |
lazlow,
Thanks very much for the advice. And - I did take your advice and have upgraded the kernel to 2.6.17-1.2187_FC5. Now I have a kernel that matches the source ;-) - and can compile gspca. It errors when I modprobe, but that's a different matter. I will be sticking with FC5 and tackle the teething troubles along the way. One other question (I promise I'm not a noob) ... why does the source get suffixed "i586" and yet the kernel is "i686". Please don't shout ... eek... (We need a new term for people who are not noob but rather ones who've been in IT for 20+ years and have used Linux/Unix/MS***/Cobol for too long and cannot remember _every_ single detail every step of the way!!) |
There are both i586 and i686 version in both the kernel and the kernel source. If you are running i686 kernel and have i586 kernel-devel package I would remove it and reinstall it.
yum remove kernel-devel yum clean all (just in case) yum install kernel-dev (for the current kernel you should not need to specify version) I would also strongly suggest getting all the updates. yum update Lazlow |
Did :
yum remove kernel-devel - this removed the i585 src. yum clean all - this cleared 3 cached files yum install kernel-dev - this took a bit downloading then nothing Now I'm back to having no source. It's such fun!! :-) What's worse - I cannot seem to locate _any_ useful source rpm's anywhere... [root@ra kernels]# yum install kernel-dev Loading "installonlyn" plugin Setting up Install Process Setting up repositories core [1/3] core 100% |=========================| 1.1 kB 00:00 extras [2/3] extras 100% |=========================| 1.1 kB 00:00 updates [3/3] updates 100% |=========================| 1.2 kB 00:00 Reading repository metadata in from local files primary.xml.gz 100% |=========================| 767 kB 00:03 core : ################################################## 2207/2207 Added 2207 new packages, deleted 0 old in 20.38 seconds primary.xml.gz 100% |=========================| 1.6 MB 00:10 extras : ################################################## 5351/5351 Added 5351 new packages, deleted 0 old in 49.05 seconds primary.xml.gz 100% |=========================| 376 kB 00:01 updates : ################################################## 1024/1024 Added 1024 new packages, deleted 0 old in 12.34 seconds Parsing package install arguments No Match for argument: kernel-dev Nothing to do [root@ra kernels]# [root@ra kernels]# pwd /usr/src/kernels [root@ra kernels]# ls -l total 0 [root@ra kernels]# |
Sorry, try
yum install kernel-devel Thinking one thing and typing another. Lazlow |
OK lazlow,
I now have the correct source and the modules I required compile. What's more, I can modprobe gspca (so the module 'fits' too). Thanks very much for helping a frustrated user. (Of course I should have got the missing el on devel too). I just have to migrate a mysql db now and I'm done. This, I can manage. Cheers. |
All times are GMT -5. The time now is 12:33 AM. |