Autor Tópico: Erro instalacao VPN Client Cisco  (Lida 3227 vezes)

Offline Furias

  • Usuário Ubuntu
  • *
  • Mensagens: 3
    • Ver perfil
Erro instalacao VPN Client Cisco
« Online: 25 de Maio de 2011, 17:35 »
Srs,

Estou dias tentando instalar  o VPN Client da Cisco, mas sem sucesso.
Abaixo segue o procedimento executado e os erros que me aparecem.
Desde já muito obrigado pela ajuda!

Ubuntu atualizado para versão 11.

Cisco VPN Client working on Ubuntu 8.04. Note: A $ at the beginning of a line signifies a command to be run from the terminal.


    Download vpnclient-linux-4.8.00.0490-k9.tar.gz (mirror) to your home directory.

    Open a terminal window and untar the vpnclient with the following command:
    $ tar xzf vpnclient-linux-4.8.00.0490-k9.tar.gz
    This will create a new folder called vpnclient in your home directory. Leave the terminal window open, you’ll need it later.
    Download the patch (mirror) and save it to the vpnclient folder that was created in step 2.

    Go back to your terminal window and move into the vpnclient folder:
    $ cd vpnclient/

    Now patch the Cisco VPN source with this command:
    $ patch < vpnclient-linux-2.6.22.diff

    Next we actually build the Cisco VPN client, issue this command:
    $ sudo ./vpn_install

Erro apresentado.

~/Downloads/vpnclient$ sudo ./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.38-8-generic/build]

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

Is the above correct [y]

Making module
make -C /lib/modules/2.6.38-8-generic/build SUBDIRS=/home/furias/Downloads/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.38-8-generic'
  CC [M]  /home/furias/Downloads/vpnclient/linuxcniapi.o
/home/furias/Downloads/vpnclient/linuxcniapi.c:14:28: fatal error: linux/autoconf.h: No such file or directory
compilation terminated.
make[2]: *** [/home/furias/Downloads/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/home/furias/Downloads/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".


Mais uma vez obrigado!

Offline Tota

  • Usuário Ubuntu
  • *
  • Mensagens: 14.982
    • Ver perfil
Re: Erro instalacao VPN Client Cisco
« Resposta #1 Online: 26 de Maio de 2011, 02:04 »
Srs,

Estou dias tentando instalar  o VPN Client da Cisco, mas sem sucesso.
Abaixo segue o procedimento executado e os erros que me aparecem.
Desde já muito obrigado pela ajuda!

Ubuntu atualizado para versão 11.

Cisco VPN Client working on Ubuntu 8.04.

Ola,

Ubuntu 11 usando a versão para ubuntu 8.04.

Mesmo assumindo que build-essentials esteja instalado.

Seu kernel é o 2.6.38-8 e a cisco informa suporte até o kernel 2.6.31

Como o Cisco vpn client é um pacote pago, quem forneceu a voce esta versão, tem obrigação de lhe prestar o respectivo suporte.

Verifique com o time de TI de sua organização.

Citar
Note   VPN client fails to install on Linux kernel version is 2.6.31 and above. The workaround is to downgrade to one of the Linux distributions supported by the VPN Client.
VPN Client for Linux, Release 4.8.00.0490

The following files are included in VPN Client for Linux, Release 4.8.00.0490:

•vpnclient-linux-4.8.00.0490-k9.tar.gz

•vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz

Fonte: http://www.cisco.com/en/US/docs/security/vpn_client/cisco_vpn_client/vpn_client48/release/notes/48client.html#wp1528719


[]'s
« Última modificação: 26 de Maio de 2011, 02:50 por Tota »

Offline cdanca

  • Usuário Ubuntu
  • *
  • Mensagens: 2
    • Ver perfil
Re: Erro instalacao VPN Client Cisco
« Resposta #2 Online: 26 de Maio de 2011, 07:28 »
Caro Furias:

alguns utilizadores ja tiveram um problema semelhante.
consulte o link abaixo.

http://ubuntuforums.org/showthread.php?t=1752189

hugs
CD

Offline Furias

  • Usuário Ubuntu
  • *
  • Mensagens: 3
    • Ver perfil
Re: Erro instalacao VPN Client Cisco
« Resposta #3 Online: 26 de Maio de 2011, 11:54 »
Mais uma vez obrigado pelas informações.

Executarei os procedimentos informados e atualizarei o assunto após finalizados!

Offline Furias

  • Usuário Ubuntu
  • *
  • Mensagens: 3
    • Ver perfil
Re: Erro instalacao VPN Client Cisco
« Resposta #4 Online: 26 de Maio de 2011, 14:41 »
Srs,

Tentei de várias maneiras , mas infelizmente nao consegui instalá-lo.
Agradeço desde já caso alguém possa me ajudar.

Segue abaixo o erro e os patches utilizados e os links de referencia.

Mais uma vez obrigado.


Error:

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

Is the above correct [y]

Making module
make -C /lib/modules/2.6.38-8-generic/build SUBDIRS=/home/furias/Downloads/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.38-8-generic'
  CC [M]  /home/furias/Downloads/vpnclient/linuxcniapi.o
/home/furias/Downloads/vpnclient/linuxcniapi.c:15:28: fatal error: linux/autoconf.h: No such file or directory
compilation terminated.
make[2]: *** [/home/furias/Downloads/vpnclient/linuxcniapi.o] Error 1
make[1]: *** [_module_/home/furias/Downloads/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".

Patch utilizado:

vpnclient-linux-2.6.24-final.diff
vpnclient-linux-2.6.31-final.diff

Links utilizados:

http://ubuntuforums.org/showthread.php?t=1752189
http://hnarsha.blogspot.com/2010/03/installing-vpn-client-cisco-vpn-client.html
http://projects.tuxx-home.at/ciscovpn/patches/vpnclient-linux-2.6.24-final.diff


Entre outros links também:

http://www.lamnk.com/blog/vpn/how-to-install-cisco-vpn-client-on-ubuntu-jaunty-jackalope-and-karmic-koala-64-bit/

Offline Tota

  • Usuário Ubuntu
  • *
  • Mensagens: 14.982
    • Ver perfil
Re: Erro instalacao VPN Client Cisco
« Resposta #5 Online: 26 de Maio de 2011, 19:23 »
Ola,

Com certeza voce reparou que o erro se repete:

Citar
/home/furias/Downloads/vpnclient/linuxcniapi.c:15:28: fatal error: linux/autoconf.h: No such file or directory

Voce não só tem problemas com a versão do kernel ( parece-me que os patches resolvem isto ) mas também com a arvore de diretórios, que foi alterada nas novas versões do Ubuntu.

Pesquisando pelo erro:


( google para => fatal error: linux/autoconf.h: No such file or directory )

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/579813

Citar
Bug Description

Between Lucid and Maverick, upstream kernel moved the autoconf.h file from include/linux/autoconf.h to include/generated/autoconf.h. This will affect many of the dkms packages, so we will need to ensure they are all updated with the correct include location.

Com isto, é necessário se fazer a alteração para corrigir o problema pois na versão 11 esta estrutura permanece.

Use
Código: [Selecionar]
sudo ln -s /usr/src/linux-headers-2.6.38-8-generic/include/generated/autoconf.h /usr/src/linux-headers-2.6.38-8-generic/include/linux/autoconf.hCom isto voce cria o link para o local correto do arquivo autoconf.h

comforme indicado aqui => https://help.ubuntu.com/community/VMware/Server

Citar
This bug report indicates that the location of autoconf.h was changed between Lucid and Maverick. The source files need to be changed to reflect that.

I did a sudo ln -s /usr/src/linux-headers-2.6.35-22-generic/include/generated/autoconf.h /usr/src/linux-headers-2.6.35-22-generic/include/linux/autoconf.h first.

Isto deverá permitir a compilação a continuar.

[]'s