installation of libevent development libraries in ubuntu

社会主义新天地 提交于 2019-12-06 20:25:03

问题


I am using ubuntu 10.10 trying to install libevent development libraries libevent1 and libevent2. I used the below command-

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


回答1:


Yes, libevent-dev installs libevent2. If you check what apt-get says when it installs it:

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.



来源:https://stackoverflow.com/questions/21623535/installation-of-libevent-development-libraries-in-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!