Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-29-2007, 01:23 AM   #1
LQ Newbie
Registered: Sep 2005
Posts: 29

Rep: Reputation: 15
Compiling kernel

I tried to install nvidia drivers on my system,on which i have knoppix with kernel 2.6.12;
But during installation i got an error than you need to compile your kernel,but i dont know hoe to compile kernel so if please help me to know what are the compilation command for kernel;
Thank You
Old 01-29-2007, 01:51 AM   #2
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
The steps should be something like the ones below. You may have multiple kernels or kernel sources, so you'll need to substitute the version number where I've typed version.
1. change to the directory cd /usr/src/linux-version
2. execute the make menuconfig command
3. Add/Remove kernel modules. The error may have said what you need to include.
4. Save the changes and exit
5. execute the following make && make modules && make modules_install
6. Copy your new kernel to /boot by executing cp arch/i386/boot/bzImage /boot/bzImage-version
7. Edit your bootloader to include an option to boot the new kernel.
Old 01-29-2007, 02:59 AM   #3
Junior Hacker
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I don't have knoppix installed, I do have the live CD, so I might not be much help. But could it be he/she just needs kernel source or headers required for compiling modules?.

Last edited by Junior Hacker; 01-29-2007 at 03:04 AM.
Old 01-29-2007, 05:40 AM   #4
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
If what you downloaded from nVidia was a script & modules, it could be that it failed because it couldn't find kernel source headers like "Junior Hacker" said.
Old 01-29-2007, 10:23 AM   #5
Registered: Oct 2005
Distribution: Ubuntu 12.04 X86_64
Posts: 958

Rep: Reputation: 35
i have teh NVIDIA drivers.. the installer does all teh compiling for you, all you need is the Kernel-source (or kernel-headers depending on distro) pakages installed.

open your distros pakage manager then search for kernel, install anything taht sounds remotly like those 2 pakages, that has the same version number asd the kerenel you can see,

if you post yoru distro i may be able to be more sepific.


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
compiling kernel problem --- Kernel panic: unable to mount root fs ........ anthonymts123 Linux - General 5 07-31-2006 02:29 AM
Errors Compiling Kernel 2.6 on Slackware 10.2 - Old kernel headers required? Dave S. Slackware 8 03-04-2006 12:15 AM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 02:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 04:17 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:21 PM.

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