[Openswan Users] Openswan configuration

Ankit Parikh anks.capri20 at gmail.com
Tue Jul 17 15:00:34 EDT 2007


Hi,

I am using RHEL 5.

Yesterday, I was configuring Openswan 3.0.06 on my system. I got few errors,
which I solved with the help of Paul. Thanks Paul.

Basically, I did make programs and make install

Now, as per the INSTALL file, it cites that I need to do make
KERNELSRC=/lib/modules/'uname -r'/build module minstall

This is giving me a lot of errors. Here is what I got, when I entered the
above make:


root at localhost openswan-3.0.06]# make KERNELSRC=/lib/modules/`uname
-r`/build module minstall
which: no git in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
Building module for a 2.6 kernel
which: no git in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
make[1]: Entering directory `/root/openswan/openswan-3.0.06'
which: no git in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
make[2]: Entering directory `/root/openswan/openswan-3.0.06'
make[2]: `/root/openswan/openswan-3.0.06/modobj26/Makefile' is up to date.
make[2]: Leaving directory `/root/openswan/openswan-3.0.06'
make -C /lib/modules/2.6.18-8.el5/build  BUILDDIR=/root/openswan/openswan-
3.0.06/modobj26 SUBDIRS=/root/openswan/openswan-3.0.06/modobj26
MODULE_DEF_INCLUDE=/root/openswan/openswan-3.0.06/packaging/linus/config-
all.h MODULE_DEFCONFIG=/root/openswan/openswan-3.0.06/linux/net/ipsec/defconfig
MODULE_EXTRA_INCLUDE= ARCH=i386 modules
make: Entering an unknown directory
make: *** /lib/modules/2.6.18-8.el5/build: No such file or directory.  Stop.
make: Leaving an unknown directory
make[1]: *** [module26] Error 2
make[1]: Leaving directory `/root/openswan/openswan-3.0.06'
make: *** [module] Error 2


Also, I read the README, which says that I need to install a new kernel, but
I already have a 2.6.18, which is default kernel of RHEL 5. So, do I need to
build it again? I am not sure because, one of the lines in the README says
this:

make nattpatch | (cd /usr/src/linux-2.6 && patch -pl && make bzImage),

but I don't have anything in /usr/src/. I think this means that I need to
install kernel or this command is not needed to configure OPENSWAN with
KLIPS.

Hope to hear from you soon. Thank you.

Regards,
Ankit Parikh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20070717/e84e987d/attachment.html 


More information about the Users mailing list