Red Hat :: Difference Between 'kernel Sources' & 'kernel-devel'
Jan 7, 2010
I have installed CentOS 5.4 & am trying to install VirtualBox on it. To install VirtualBox I run the command:
yum localinstall path/Virtualbox.rpm
It runs through the dependency check & says everything is fine. It installs the rpm & then says that compiling of the kernel module failed & that VirtualBox will not start until this is fixed, & that the most like cause is that the kernel sources are not installed.
I have installed the kernel-devel package & have the kernel source tree located at /usr/src/kernel/2.6....
What is the difference between kernels which come from the update repository and the plus repository ? Often the same version comes from both, but one says centosplus at the end the other, from the update repository, does not.
I'm attempting to install the driver for my atheros AR8131 PCI-E Gigabit Ethernet adapter (in my Lenovo laptop) on my newly installed RHEL5 system (it's not currently being recognized).
I tried using: 'make install' but hit an error "Makefile:61: *** Linux kernel source not found."
After this, I tried: 'sudo yum install kernel-devel kernel-headers'
To rectify this, but hit this error "No package kernel-devel available" (and the same for the headers). What should I do?
I've been trying to install nvidia drivers yesterday, so I went to runlevel 3, ran the .bin installer and it came up with error: missing kernel-devel and kernel-source.
So I go yum install kernel-devel, it does, but it doesnt find anything like kernel-source.
How do I fix this issue? I have Fedora 12, and I ran drivers from:[URL]..
I used Backtrack 5 and Fedora, basically I'm trying to install my wireless card but I don't have these installed to make && sudo. I burned the iso images for backtrack and fedora and booted my computer from them but can't figure out how to install kernel-devel on backtrack for example. I dled yum onto my flash drive but can't figure out how to install it.
It sounds like he's making a difference between the kernel "source code" and the kernel itself(as in the downloaded file/ files) but the way he talks about both is the same.So then, if one had already "installed" the "kernel sources code," why would he need the "tarball with the newest Linux kernel?" He's already "installed" a kernel, right?
I have been getting some compile errors here and there and have read that possibly I need to install the kernel-devel package.I am running 2.6.33.4 which I built from source.I have also built and installed the kernel-headers.I cannot find the kernel-devel for 2.6.33.4 anywhere, can I build it myself from the kernel source?
I'm working on a Fedora 13 server trying to intal some soft following the same steps I did with some other server with Fedora 12 ( not 13, like the new one ).First problem that I found was with 'yum install kernel-devel'
Response: Nothing to do ! Then I tryed 'yum -v info kernel devel' Response: Installed Packages Name : kernel-devel Arch : x86_64 code....
Second problem that is stopping me is 'yum install gcc' Some dpendency problem that can not be solved. Tryed --skeep-broken but nothing is installed.I don't have gcc on my sistem.
I have a program that needs kernel headers. The machine is running CentOS release 5.4 (Final). uname -r output: 2.6.18-164.9.1.el5 When I try to do a - yum install kernel-devel or kernel-headers I get: kernel-headers i386 2.6.18-194.3.1.el5 updates 1.0 M Why don't they match?
from what I understand kernel-devel does not bring in ALL the header files for install modules. so what i would like to know is how to install true headers instead of using kernel-devel. I found one tutorial, but it was way out of date.
I tried installing the VBOX additions. But after running the VBoxLinuxAdditions.run file, building of the kernel modules failed. It gave following message: The headers of the currently running kernel were not found. If the current compilation fails then probably this could be the reason. The missing package can be probably installed with yum install kernel-devel-2.6.40.4-5.fc15.i686.
But when I tried installing the above kernel headers and devel package, it says no such package were found.kernel is 2.6.40.4-5.fc15.i686 but the kernel headers are not available for this version. They are available for previous versions i.e 2.6.40.3-0.fc15.i686.should I downgrade my kernel version (if it's possible) or is there any way things can work out. I have enabled 3D accelaration and given the memory of 128 MB for display. The memory for Virtual Box is 1 GB and hard Disk is 8 GB. The host system is windows 7.
I have a problem to install the VMware Server (VMware-server-2.0.2-203138.x86_64.rpm) on "Fedora 13 Desktop Edition 64-bit".I traied all tips I found, but nothing was OK.Please look my linux configuration and the error messages:
The installation of VMware Server 2.0.2 for Linux completed successfully.Before running VMware Server for the first time, you need to configure it for your running kernel by invoking the following command: "/usr/bin/vmware-config.pl". code....
Building an nVidia driver requires sources for the currently-running kernel. In my case (Fedora 12), it is, according to 'uname -a', 2.6.31.5-127.fc12.i686
I thought I could get the sources with 'yum install kernel-sources', but there is no such package. Then I tried 'yum install kernel-devel'. That package exists, but the kernel is 2.6.32.9-67.fc12.i686
I need to download the Kernel sources add a few lines and then recompile and install the new files. I found the following lines that are suppose to do it on nVidia's forums:
what the Kernel Module Source packages are called?... This guide I am trying to follow is obviously dated but it is the only solid lead I have been able to find towards making my ram work...This is the original thread on the NVNEWs boards: Unable to install Nvidia driver on 9500M + Ubuntu - Page 2 - nV News Forums,Read through that thread I linked to the NVidia forums for a detailed run down of what is wrong.
The semi short version: There is some sort of issue with the NVidia driver on the G1Sn (and several other Asus Models) and the way the Linux Kernel address memory, the issue results in not being able to use more than 2 Gigs of ram with the Nivida drivers. There is a patch (again check the nvidia forum link) that people said they had applied to fix this issue. At this point I am seriously considering Vista again if I can't get this working I love Ubuntu but I hate having my hardware limited by my software...where to download the files I need to recompile in the Kernel with the patch I need for my ram to work?
I tried posting there but it seems like the thread is long dead.. how I can download the needed files and maybe how I add these lines to it?I also started a thread on the ubuntu forums here: [ubuntu] Downloading Current Kernel Sources.
Is it possible to get a package via yum that has the kernel sources? In the "Add/Remove Software" GUI program, I have enabled the "Fedora source" s/w repository. Even then, the only kernel package I can find is the "The Linux Kernel", linux-2.6.27.15-170... which essentially provides only the kernel binaries and headers but not the source.
It has been years since I have need to compile the kernel or its modules. Here goes: I recently upgraded to ubuntu 10.10 and needed the kernel source and its modules source. The relevant directories are in a mess. Several diff versions, broken links, the works. Is there a nice easy way, to remove all of the sources, there, and err "install" the ones for my latest kernel, in the correct places. Then I might have a chance at getting the two modules I need complied! Nvidia being one for the geforce 4 mx420 nv17
When compiling software I get the following notice : You do not appear to have the sources for the 2.6.31.5xls-domU kernel installed.
Yum says : Package kernel-headers-2.6.18-164.11.1.el5.x86_64 already installed and latest version Package kernel-devel-2.6.18-164.11.1.el5.x86_64 already installed and latest version
But uname says : Code: -bash-3.2# ls /usr/src/kernels/ 2.6.18-164.11.1.el5-x86_64 -bash-3.2# uname -a Linux vds.hosting.net 2.6.31.5xls-domU #4 SMP Fri Dec 4 12:17:04 CET 2009 x86_64 x86_64 x86_64 GNU/Linux
Extra info : title CentOS (2.6.18-164.11.1.el5xen) root (hd0,0) kernel /boot/vmlinuz-2.6.18-164.11.1.el5xen ro root=/dev/xvda1 console=xvc0 initrd /boot/initrd-2.6.18-164.11.1.el5xen.img
This is a VDS I'm renting from my Hosting company. How can I get the right sources? RPMforge repo?
I want to compile a kernel to add a few options that are not enabled in the huge-smp-2.6.29.6 that comes with slackware. specifically, i want to add TASK_DELAY_ACCT and TASK_IO_ACCOUNTING so that I can use iotop. I just want to add those 2 options to the new kernel, everything else I'd like to keep the way it is as the system has been running just fine. Will running 'make menuconfig' in /usr/src/linux default to the options that are used in the stock kernel?
I am not new to Debian and used to use commands like "apt-get install <package>", "apt-get update", "apt-get upgrade" and "apt-cache search <string>" regularly. But I never understood those Debian programs and the Debian package system with it's numerous programs and way to install things and work on software and configurations. Now, I just wanted to do something that I thought to be really easy. Get the source of an existing package. And despite spending over 3 hours - including reading the man-pages of commands - I cannot find a way!
I already don't understand why I have two such packages installed. I would like to download the source of my kernel: apt-get source linux-image-2.6.26-2-openvz-amd64. This downloaded linux-2.6_2.6.26-21lenny4.dsc, linux-2.6_2.6.26.orig.tar.gz and linux-2.6_2.6.26-21lenny4.diff.gz
Then, I wanted to patch this - having found no explanation, I did: cd linux patch < ../linux-2.6_2.6.26-21lenny4.diff
That seemed to patch the kernel. But I am not sure - there are new files like this now_ [...] Only in linux-2.6-2.6.26: xenctrl-capabilities.patch Only in linux-2.6-2.6.26: xenctrl.patch Only in linux-2.6-2.6.26: xenctrl-privcmd.patch [...]
So, how can download the complete Debian kernel source? And what do I need to be able to compile it? And - HOW to just list all available sources and search in them?!? I found lots of webpages where tools like "make-kpkg" are used, which I do not understand again. Under SuSE, I could just select the package from a list, say "make oldconfig install modules modules_install" and be ready. Under Debian, I just find no way ...
How can I use DKMS to force the virtualbox setup to run using the correct kernel sources? This is the error I'm getting in the vbox logs
Code: Attempting to install using DKMS removing old DKMS module vboxdrv version 3.1.2 Deleting module version: 3.1.2 completely from the DKMS tree. Done.
Error! Your kernel source for kernel 2.6.31.6-166.fc12.x86_64 cannot be found at /lib/modules/2.6.31.6-166.fc12.x86_64/build or /lib/modules/2.6.31.6-166.fc12.x86_64/source. You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without: Makefile:152: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
As it written here [URL]. Fedora 13 does not include the kernel-source package provided by older versions, since only the kernel-devel package is required now to build external modules. Linux kernel, does not belong to fedora. Fedora is derivative work isn't it? Or you rewrite all kernel in fedora 13, and fedora is not linux any more? According to GPL, derivative works must be licensed as GPL. And so you must provide ALL sources for free. Including kernel sources. So, where can I get kernel sources for fedora 13? Or I'm wrong, and you shouldn't provide them if you wont?
Trying to install VMWare I get the following message:
Really after it VMWare anyway doesn't agree to install. Zypper says that no newer version of gcc is available. So I can't see how I can install VMWare.
I have an assignment as a CS student to code over Ubuntu Kernel but I am surely a beginner. I need to download all the source files of the Ubuntu kernel source code, make some changes then compile and use it as a custom kernel.
I am software developer, and I am new in kernel programming. I have token a look at linux sources, I found that drivers of all hardware are included in linux kernel sources. The question is, how Linux include this drivers on the Kernel?
- Including drivers statically in the the kernel is illogical of course. Since drivers will be loaded, all of them, even if they are not used. - making drivers as dynamic libraries (.so) is not sufficient, too. How does the kernel include this library if it was already compiled and build ?
Moreover, will Linux sources grow every time a new driver take place ? this causes many troubles: - Compiling linux will become slower year after year. - linux evolution will be difficult because next versions must support old drivers. - Linux Distributions will be huge in size.
i'm using this guide videos - howto: debian linux kernel compilation, part 1 and the author says i need kernel 2.6.26 this version of kernel doesnt longer exist in kernel.org website and the only 2.6.26 i found is a patch here. should i use the patch? or download another version of kernel?
Ive also tried downloading RPMs to a usb stick and it said it was the wrong ones for my machine.
How do i find out if my machine is x32 x64 x86?
Anyway im trying to install kernel headers and devel from the fedora installation disk but i dont know how to get to the cdrom thru terminal as i cant copy the RPMs to desktop by drag n drop or using software installer.
I dont have an internet connection to the pc so i cant use yum (which would make things so much easier) so can anyone tell me how how to install these packages thru terminal?
I am currently trying to install Debian 8 "Jessie" AMD64 on a Dell Latitude E7240. I have two 256 GB SSD disks, on the first one I have installed Xubuntu 14.04 successfully. I want to install Debian 8 (XFCE) on the other one.I have tried using Debian-8.0.0-Live-amd64-xfce, Debian-8.0.0-amd64-DVD and Debian-8.0.0-amd64-netinst, all from a USB key (prepared with Unetbootin), but after successfully partitionning SSD disk, the installer raises the following issue:"no install-able kernel was found in the defined apt sources".
I followed this doc for the "debian method" for building the kernel: [URL]. I installed the source in /var/tmp/src/linux-2.6-2.6.32 , configured it, and tried make-kpkg modules-image. The error I get is:
checking for current directory... /usr/src/modules/alsa-driver checking cross compile... checking for directory with ALSA kernel sources... ../alsa-kmirror checking for directory with kernel top-level makefile... /var/tmp/src/linux-2.6-2.6.32 checking for directory with kernel headers... failed make[2]: *** [configure-stamp] Error 1 make[2]: Leaving directory `/usr/src/modules/alsa-driver' make[1]: *** [kdist_image] Error 2 make[1]: Leaving directory `/usr/src/modules/alsa-driver' Module /usr/src/modules/alsa-driver failed.
I tried some hacks such as setting KBUILD_SRC or ln -s linux-headers-2.6.32-5-amd64/ /usr/src/linux - but these fail too.