Компиляция Shrew на Linux

689
Mike Pennington

Я пытаюсь построить строптивой VPN, версия 2.2.1 на Debian 7.1 ; Однако я столкнулся с проблемой, с которой я не могу обойтись.

README.TXTговорит, что мне нужно использовать cmake для сборки клиента Shrew ...

Следующие параметры рекомендуются при запуске конфигурации cmake для платформ linux. Пожалуйста, смотрите раздел ОПЦИИ для более подробной информации.

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

Когда я пытаюсь запустить это

[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]$ 
1

1 ответ на вопрос

1
Mike Pennington

I found the resolution... I was missing:

  • g++
  • make

Those got me past the first error; however, several other dependencies came up after I fixed that. Ultimately installing these made the compile successful...

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

After that, I disabled Qt dependencies (because I didn't want the bloat), and it configured without problems...

[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]$ 

After that, make and sudo make install compiled and installed correctly...

[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]$