I am using ubuntu 10.10 trying to install libevent development libraries libevent1 and libevent2. I used the below command-
我正在使用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
Then i used- apt-get install libevent-dev
But it says libevent-dev is already a newest version. Is that libevent2? I'm a root user. Am I doing anything wrong? Does ubuntu 10.10 support libevent2? Really appreciate your help. Thanks
然后我使用- apt-get安装libevent-dev,但它说libevent-dev已经是最新版本了。这是libevent2吗?我是根用户。我做错什么了吗?ubuntu 10.10支持libevent2吗?非常感谢你的帮助。谢谢
1 个解决方案
#1
20
Yes, libevent-dev installs libevent2. If you check what apt-get says when it installs it:
是的,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
Notice the 2.0.x versions of libevent.
注意到2.0。libevent的x版本。
#1
20
Yes, libevent-dev installs libevent2. If you check what apt-get says when it installs it:
是的,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
Notice the 2.0.x versions of libevent.
注意到2.0。libevent的x版本。