WHERE IS linux kernel source code ???
I'm installing VPN. One of the questions the installation procedure is asking me is : "Directory containing linux kernel source code " It has no degfault for that. I have NO idea where SuSE 8.2 stores linux kernel source code ... Please, can you help? Thank you in advance, Maura
On Thursday 02 October 2003 21:00, Maura Edelweiss Monville wrote:
I'm installing VPN. One of the questions the installation procedure is asking me is : "Directory containing linux kernel source code " It has no degfault for that.
Do you have the package kernel-source installed? If yes you should get "/lib/ modules/`uname -r`/build" (which is a link to the actual kernel directory) as the default if it is the Cisco VPN client you are trying to install. HTH Michael
I'm installing VPN. One of the questions the installation procedure is asking me is : "Directory containing linux kernel source code " It has no degfault for that. I have NO idea where SuSE 8.2 stores linux kernel source code ... All versions of Linux install the kernel source code in /usr/src/linux where linux is a symlink to the current kernel source, eg:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 03 Oct 2003 00:00:48 -0400
Maura Edelweiss Monville
** Reply to message from Jerry Feldman
If you have installed the kernel source, you cd into that directory. read the README. There are several make options. You perform a "make cloneconfig" to set the configuration to the current system you are running. make xconfig - This allows you to alter the configuration using X make menuconfig - same except it is for a text based menu make config - text based.
The one I use is make oldconfig. Copy and gunzip /proc/config.gz in the top of the kernel sources (/usr/src/linux, on mine). Do "cp config .config" in the same directory. Make oldconfig. This reads your running kernel and its setup and translates it into the makefiles, I believe. After this you need to do a "make dep" for the dependencies. Ed Harrison SuSE 8.2, Kernel 2.4.21, KDE 3.1.3 PolarBar Mailer 1.25a
If you have installed the kernel source, you cd into that directory. read the README. There are several make options. You perform a "make cloneconfig" to set the configuration to the current system you are running. make xconfig - This allows you to alter the configuration using X make menuconfig - same except it is for a text based menu make config - text based.
The one I use is make oldconfig.
Copy and gunzip /proc/config.gz in the top of the kernel sources (/usr/src/linux, on mine).
Do "cp config .config" in the same directory.
Make oldconfig.
This reads your running kernel and its setup and translates it into the makefiles, I believe.
make oldconfig reads the .config file that you just put in place and only prompts you for the new options. you're thinking of 'make cloneconfig' (which i believe is not in the vanilla kernel) which reads from /proc/config.gz and uses those options to build the kernel. no need to copy/gunzip the file. personally, when i build a kernel, i copy the .config to /boot/config-<kernelversion> because you can keep track of your config options thru past kernels that way. (of course, i also tend to not use the stock kernel from suse on my machines so no /proc/config.gz) -- trey
On Friday 03 October 2003 19.00, Ed Harrison wrote:
The one I use is make oldconfig.
Copy and gunzip /proc/config.gz in the top of the kernel sources (/usr/src/linux, on mine).
Do "cp config .config" in the same directory.
Make oldconfig.
This reads your running kernel and its setup and translates it into the makefiles, I believe.
This is more or less exactly what "make cloneconfig" does
The 03.10.03 at 00:00, Maura Edelweiss Monville wrote:
I have NO idea where SuSE 8.2 stores linux kernel source code ...
In /usr/src/linux. Of course, you need to have it installed first: package kernel-source. If you have the personal version, you will need to ftp it. Also, remember that if you are not going to compile the kernel yourself, before compiling any aplication that needs those sources, you need to configure the kernel sources so that they match your running kernel: make cloneconfig ; make dep. -- Cheers, Carlos Robinson
participants (7)
-
Anders Johansson
-
Carlos E. R.
-
Ed Harrison
-
Jerry Feldman
-
Maura Edelweiss Monville
-
Michael Siefritz
-
Trey Gruel