我正在使用ubuntu 10.10尝试安装libevent开发库libevent1和libevent2。我使用了以下命令 -
apt-get install libevent-dev libevent1-dev
But it shows-
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libevent1-dev
然后我用 - apt-get install libevent-dev
但它说libevent-dev已经是最新版本了。那是libevent2吗?
我是root用户。我做错了吗? ubuntu 10.10是否支持libevent2?非常感谢您的帮助。感谢
答案 0 :(得分:27)
是的,libevent-dev安装了libevent2。如果你在安装时检查了apt-get的内容:
apt-get install libevent-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libevent-core-2.0-5 libevent-extra-2.0-5 libevent-openssl-2.0-5 libevent-pthreads-2.0-5
The following NEW packages will be installed:
libevent-core-2.0-5 libevent-dev libevent-extra-2.0-5 libevent-openssl-2.0-5 libevent-pthreads-2.0-5
请注意libevent的2.0.x版本。