在ubuntu中安装libevent开发库
我正在使用Ubuntu10.10安装libevent开发库libevent1和libevent2。我使用了下面的命令-在ubuntu中安装libevent开发库,ubuntu,installation,ubuntu-10.10,libevent,Ubuntu,Installation,Ubuntu 10.10,Libevent,我正在使用Ubuntu10.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 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吗?非常感谢你的帮助。谢谢是的,libevent开发人员安装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版本