Compilando Shrew no Linux

1

Estou tentando criar Shrew VPN , versão 2.2.1 em Debian 7.1 ; no entanto, encontrei um problema que não consigo resolver.

README.TXT diz que preciso usar cmake para criar o Shrew cliente ...

The following options are recommended when running the cmake configuration for linux platforms. Please see the OPTIONS section for more details.

cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTGUI=YES -DETCDIR=/etc -DNATT=YES

Quando tento executar isso

[mpenning@Mudslide ike]$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTGUI=YES \
> -DETCDIR=/etc -DNATT=YES
CMake Error: CMake was unable to find a build program corresponding to 
"Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to 
select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may 
be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may 
be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module 
 file:/home/mpenning/src/ike/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may 
be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may 
be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module 
 file:/home/mpenning/src/ike/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
[mpenning@Mudslide ike]$
    
por Mike Pennington 17.02.2014 / 12:59

1 resposta

1

Eu encontrei a resolução ... estava faltando:

  • g++
  • make

Aqueles me fizeram passar do primeiro erro; no entanto, várias outras dependências surgiram depois que eu corrigi isso. Em última análise, instalá-los tornou a compilação bem-sucedida ...

  • flex
  • bison
  • libssl-dev
  • libedit-dev

Depois disso, eu desabilitei Qt dependencies (porque eu não queria o inchaço), e ele foi configurado sem problemas ...

[mpenning@Mudslide ike]$ cmake -DCMAKE_INSTALL_PREFIX=/usr \
>  -DQTGUI=NO -DETCDIR=/etc -DNATT=YES
-- Using install prefix /usr ...
-- Using etc install path /etc ...
-- Using bin install path /usr/bin ...
-- Using sbin install path /usr/sbin ...
-- Using lib install path /usr/lib ...
-- Using man install path /usr/local/man ...
-- Using library -lpthread
-- Using binary /usr/bin/flex ...
-- Using binary /usr/bin/bison ...
-- Enabled NAT Traversal support ...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mpenning/src/ike
[mpenning@Mudslide ike]$ 

Depois disso, make e sudo make install foram compilados e instalados corretamente ...

[mpenning@Mudslide ike]$ which ikec
/usr/bin/ikec
[mpenning@Mudslide ike]$ ikec -h
ii : ## : VPN Connect, ver 2.2.1
## : Copyright 2013 Shrew Soft Inc.
## : press the <h> key for help
!! : invalid parameters specified ...
>> : ikec -r "name" [ -u <user> ][ -p <pass> ][ -a ]
 -r     site configuration path
 -u     connection user name
 -p     connection user password
 -a     auto connect
[mpenning@Mudslide ike]$
    
por 17.02.2014 / 12:59