LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-19-2014, 02:15 PM   #1
vampiresharif
LQ Newbie
 
Registered: Feb 2014
Posts: 5

Rep: Reputation: Disabled
install VPN client in rhel 6


HI,

I was trying to install vpn client in rhel 6 , at the very first time it was showing
Directory containing linux kernel source code [] as blank
I tried with

"yum install kernel-devel Kernel-headers"

now the directory is showing but while installing it is showing the following error

[root@oc4314450723 vpnclient]# ./vpn_install
Cisco Systems VPN Client Version 4.8.02 (0030) Linux Installer
Copyright (C) 1998-2006 Cisco Systems, Inc. All Rights Reserved.

By installing this product you agree that you have read the
license.txt file (The VPN Client license) and will comply with
its terms.


Directory where binaries will be installed [/usr/local/bin]

Automatically start the VPN service at boot time [yes]

In order to build the VPN kernel module, you must have the
kernel headers for the version of the kernel you are running.


Directory containing linux kernel source code [/lib/modules/2.6.32-358.11.1.el6.x86_64/build]

* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.32-358.11.1.el6.x86_64/CiscoVPN".
* The VPN service will be started AUTOMATICALLY at boot time.
* Kernel source from "/lib/modules/2.6.32-358.11.1.el6.x86_64/build" will be used to build the module.

Is the above correct [y]y

Making module
make -C /lib/modules/2.6.32-358.11.1.el6.x86_64/build SUBDIRS=/home/******/Downloads/vpnclient modules
expr: syntax error
make[1]: Entering directory `/usr/src/kernels/2.6.32-358.11.1.el6.x86_64'
/usr/src/kernels/2.6.32-358.11.1.el6.x86_64/arch/x86/Makefile:81: stack protector enabled but no compiler support
make[1]: gcc: Command not found
scripts/Makefile.build:49: *** CFLAGS was changed in "/home/******/Downloads/vpnclient/Makefile". Fix it to use EXTRA_CFLAGS. Stop.
make[1]: *** [_module_/home/i****/Downloads/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-358.11.1.el6.x86_64'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".


my kernel vertion is
[root@oc4314450723 Downloads]# uname -r
2.6.32-358.11.1.el6.x86_64
 
Old 02-19-2014, 02:54 PM   #2
kinneyd
LQ Newbie
 
Registered: Oct 2011
Posts: 21

Rep: Reputation: Disabled
make[1]: gcc: Command not found

Looks like you need gcc to compile the code.
 
Old 02-19-2014, 03:54 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,636

Rep: Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652
redhat DOSE NOT use this location
/usr/local/bin
it uses /usr and not /usr/local

so set it to install into /usr

/usr/local is not even in the system $PATH
to see run
Code:
echo $PATH 
-- then rerun it as root-----
su -
echo $PATH
/usr/local is not there

Quote:
yum install kernel-devel Kernel-headers
is that a typo ?
for these they should all be lowercase and needs to be ran as root

Code:
su -
yum install kernel-devel
the headers are part of the -devel package
and for installing the gcc compiler and EVERYTHING it NEEDS
Code:
su -
yum groupinstall "Development Tools"
these DO have a capital first letter


but WHY ?? build something from source ?
there are a bunch of programs in RHN and the third party repos

Code:
su -
yum search vpn
NetworkManager-openvpn
NetworkManager-vpnc
openvpn
vpnc
sshuttle
openconnect
ike
---- the already installed ---
NetworkManager-gnome
and
kdenetwork
( have a vpn section )

and "vpnc" is the cisco client

Last edited by John VV; 02-19-2014 at 04:01 PM.
 
1 members found this post helpful.
Old 02-20-2014, 08:04 AM   #4
vampiresharif
LQ Newbie
 
Registered: Feb 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi John,

Thanks a lot for your reply

I was trying to make it , but it is showing the follwing error

* Binaries will be installed in "/usr".
* Modules will be installed in "/lib/modules/2.6.32-358.11.1.el6.x86_64/CiscoVPN".
* The VPN service will be started AUTOMATICALLY at boot time.
* Kernel source from "/lib/modules/2.6.32-358.11.1.el6.x86_64/build" will be used to build the module.

Is the above correct [y]y

Making module
make -C /lib/modules/2.6.32-358.11.1.el6.x86_64/build SUBDIRS=/home/****/Downloads/vpnclient modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-358.11.1.el6.x86_64'
scripts/Makefile.build:49: *** CFLAGS was changed in "/home/****/Downloads/vpnclient/Makefile". Fix it to use EXTRA_CFLAGS. Stop.
make[1]: *** [_module_/home/******/Downloads/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-358.11.1.el6.x86_64'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".

I was trying to install it as root

I chnaged the Makefile with
EXTRA_CFLAGS += -mcmodel=kernel -mno-red-zone

now there is some problem with interpreter
make[1]: Entering directory `/usr/src/kernels/2.6.32-358.11.1.el6.x86_64'
CC [M] /home/****/Downloads/vpnclient/interceptor.o
/home/****/Downloads/vpnclient/interceptor.c: In function ‘interceptor_init’:
/home/****/Downloads/vpnclient/interceptor.c:132: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/****/Downloads/vpnclient/interceptor.c:133: error: ‘struct net_device’ has no member named ‘get_stats’
/home/****/Downloads/vpnclient/interceptor.c:134: error: ‘struct net_device’ has no member named ‘do_ioctl’
/home/****/Downloads/vpnclient/interceptor.c: In function ‘add_netdev’:
/home/****/Downloads/vpnclient/interceptor.c:271: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/****/Downloads/vpnclient/interceptor.c:272: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/****/Downloads/vpnclient/interceptor.c: In function ‘remove_netdev’:
/home/****/Downloads/vpnclient/interceptor.c:294: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/home/****/Downloads/vpnclient/interceptor.c: In function ‘recv_ip_packet_handler’:
/home/****/Downloads/vpnclient/interceptor.c:646: warning: assignment makes integer from pointer without a cast
/home/****/Downloads/vpnclient/interceptor.c:667: warning: passing argument 2 of ‘CniNewFragment’ makes pointer from integer without a cast
/home/****/Downloads/vpnclient/Cniapi.h:383: note: expected ‘CHAR *’ but argument is of type ‘sk_buff_data_t’
/home/****/Downloads/vpnclient/interceptor.c: In function ‘do_cni_send’:
/home/****/Downloads/vpnclient/interceptor.c:785: error: invalid operands to binary - (have ‘sk_buff_data_t’ and ‘unsigned char *’)

Last edited by vampiresharif; 02-20-2014 at 08:27 AM.
 
Old 02-20-2014, 11:00 AM   #5
vampiresharif
LQ Newbie
 
Registered: Feb 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi,

got it fixed.

Download patch file for 64 bit

wget http://lamnk.com/download/vpnclient-...02-64bit.patch

patch < ./vpnclient-linux-4.8.02-64bit.patch

sed -i 's/^CFLAGS/EXTRA_CFLAGS/' Makefile

just for sfaety check the patch file for newer kernel and apply it:

wget http://lamnk.com/download/vpnclient-....31-final.diff

patch < ./vpnclient-linux-2.6.31-final.diff


Edit the kernel source file

sudo sed -i 's/const\ struct\ net_device_ops\ \*netdev_ops;/struct\ net_device_ops\ \*netdev_ops;/' `find /usr/src -name netdevice.h`

run the installer ...

Last edited by vampiresharif; 02-20-2014 at 11:02 AM.
 
Old 02-20-2014, 02:00 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,636

Rep: Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652
the next question is why are you using a old and out of date version 4.8
when 5.3 IS IN THE software repos

this would have installed the current
Code:
su -
yum install vnpc
 
  


Reply


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
Can't Install Cisco VPN Client alkos333 Slackware 19 08-30-2007 05:40 PM
Cisco VPN Client Install kshymkiw Linux - Networking 5 06-28-2007 09:05 AM
How to install vpn - client (pptp) for Linux. vadimkovalev Linux - Networking 1 09-30-2005 01:42 AM
have no clue how to get this vpn client to install acemaxx Linux - Newbie 3 01-31-2005 10:28 PM
Trying to install VPN client from cisco Oxyacetylene Linux - Networking 9 08-05-2004 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:03 PM.

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