我正在尝试在我的 Ubuntu VPS 上设置 Openconnect 服务器,首先我必须编译它,但每次运行时./configure
都会出现 2 个错误:
configure: WARNING: ***
*** libprotobuf-c was not found.
***
checking for libev... no
configure: error: ***
*** libev4 was not found.
***
当我尝试安装时,libprotobuf-c
我得到以下输出
root@MY_VPS_NAME:~# apt install libprotobuf-c
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libprotobuf-c
当我尝试安装时,libev4
我得到以下输出:
root@MY_VPS_NAME:~# apt install libev4
Reading package lists... Done
Building dependency tree
Reading state information... Done
libev4 is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-3.19.0-15 linux-headers-3.19.0-15-generic linux-image-3.19.0-15-generic linux-image-extra-3.19.0-15-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
root@MY_VPS_NAME:~#
VPS 正在运行:ubuntu-15.04-x86_64 谢谢,~WC
protobuf 包现在称为
libprotobuf-c1
。在libev4
那里,如果你不能安装它,你有一般的存储库问题。您的 Ubuntu 15.04 已过时,请升级到 15.10。这可能是丢失包裹的原因。
我在 Ubuntu 18.04 中遇到了同样的问题,我安装
libev-dev
了它来修复它。