Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: treydock on September 28, 2006, 03:01:30 AM
-
I am trying to install a VPN client and it prompts me for the path to my kernel source...usually it auto detects but it didn't and it's blank. Where do I find the kernel source?
"Directory containing linux kernel source code" I've tried /lib/modules/2.6.9-34.ELsmp and nothing, can't seem to find the kernel source, not really sure what it would look like had I come across it.
THanks
Trey
-
If you need it it's here...
http://mirror.contribs.org/smeserver/releases/7/builds/rpms/RPMS/noarch/
After installing, it should be in /usr/src/linux-2.6.9-34.0.2.EL.
You should ln -s /usr/src/linux-2.6.9-34.0.2.EL /usr/src/linux
Ed
-
If you need the full kernel source and not just the headers (the kernel-devel package) then download the full-source package (the latest is kernel-2.6.9-34.0.2.EL.src.rpm) from one of the mirrors, for example (notice the SRPMS directory location);
$ /usr/bin/wget ftp://mirrors.kernel.org/centos/4.3/updates/SRPMS/kernel-2.6.9-34.0.2.EL.src.rpm
Install it;
# rpm -ivh kernel*.src.rpm
A fun way to do both (download and install) at the same time;
# rpm -ivh ftp://mirrors.kernel.org/centos/4.3/updates/SRPMS/kernel-2.6.9-34.0.2.EL.src.rpm
Prep it;
# cd /usr/src/redhat/SPECS
# rpmbuild -bp --target $(arch) kernel-2.6.spec
Move and link it;
# cd /usr/src/redhat/BUILD/kernel-<version> /usr/src/
# mv linux-<version> /usr/src/
# cd /usr/src
# ln -s ./linux-<version> linux
# cd /usr/src/linux
Edit the Makefile (your choice of text editor) and remove the "prep portion" from the EXTRAVERSION line.
Note: <version> is the version number of the full kernel sources and should match your running kernel version.
Hint: uname -a
Original link is here. (http://www.centos.org/modules/newbb/viewtopic.php?topic_id=4821&forum=27&post_id=13998#forumpost13998)
-
You will also need to copy the smp config file from /boot and rename it .config in the source directory - run make oldconfig and the make.
Don`t go any further than make however.