サーラリマンは働き過ぎ、社畜化に注意しよう!!

SoftEtherVPN for Debian 9 install エラー

debian
スポンサーリンク

エラー

/usr/local/libexec/softether/vpnserver/vpnserver: error while loading shared libraries: libcedar.so: cannot open shared object file: No such file or directory

$ cp CMakeLists.txt CMakeLists.txt.org
$ vi CMakeLists.txt

include(GNUInstallDirs) の次の行に
set(CMAKE_INSTALL_RPATH “${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}”) を追記する。

if(NOT ${PROJECT_VERSION} VERSION_EQUAL "${CurrentBuild_MAJOR}.${CurrentBuild_MINOR}.${CurrentBuild_BUILD}")
  message (FATAL_ERROR "PROJECT_VERSION does not match to src/CurrentBuild.txt")
endif()
 
if(UNIX)
  include(GNUInstallDirs)
  set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
 
  include(CheckIncludeFile)
  Check_Include_File(sys/auxv.h HAVE_SYS_AUXV)
  if(EXISTS "/lib/systemd/system")
    set(CMAKE_INSTALL_SYSTEMD_UNITDIR "/lib/systemd/system" CACHE STRING "Where to install systemd unit files")
  endif()
endif()

$ rm -rf build
$ ./configure

$ make -C build
$ sudo make -C build install

$ sudo systemctl daemon-reload
$ sudo systemctl start softether-vpnserver.service
$ systemctl status softether-vpnserver.service

● softether-vpnserver.service - SoftEther VPN Server
Loaded: loaded (/lib/systemd/system/softether-vpnserver.service; disabled)
Active: active (running) since 土 2020-11-07 20:28:28 JST; 15s ago
Process: 12358 ExecStart=/usr/local/libexec/softether/vpnserver/vpnserver start (code=exited, status=0/SUCCESS)
Main PID: 12360 (vpnserver)
CGroup: /system.slice/softether-vpnserver.service
├─12360 /usr/local/libexec/softether/vpnserver/vpnserver execsvc
└─12361 /usr/local/libexec/softether/vpnserver/vpnserver execsvc

11月 07 20:28:28 intel-nuc vpnserver[12358]: The SoftEther VPN Server servi....
11月 07 20:28:28 intel-nuc systemd[1]: Started SoftEther VPN Server.
Hint: Some lines were ellipsized, use -l to show in full.
debian
スポンサーリンク
シェアする
ふじやんをフォローする
なんでもDIY

コメント