Kompilieren von Shrew unter Linux

796
Mike Pennington

Ich versuche zu bauen Shrew VPN, Version 2.2.1 auf Debian 7.1 ; Ich bin jedoch auf ein Problem gestoßen, das ich nicht bewältigen kann.

README.TXTsagt, ich muss cmake verwenden, um den Shrew- Client zu erstellen ...

Die folgenden Optionen werden empfohlen, wenn Sie die cmake-Konfiguration für Linux-Plattformen ausführen. Weitere Informationen finden Sie im Abschnitt OPTIONEN.

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

Wenn ich versuche, das auszuführen

[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 Antwort auf die Frage

1
Mike Pennington

Ich habe die Auflösung gefunden ... Ich habe gefehlt:

  • g++
  • make

Die haben mich an dem ersten Fehler vorbeigezogen; Nachdem ich das behoben hatte, kam es jedoch zu mehreren anderen Abhängigkeiten. Letztendlich wurde das Kompilieren durch die Installation erfolgreich ...

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

Danach habe ich QtAbhängigkeiten deaktiviert (weil ich das Aufblähen nicht wollte) und es ohne Probleme konfiguriert ...

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

Danach, makeund sudo make installkompiliert und korrekt installiert ...

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