如何通过 aptitude 安装 libevent?

如何通过 aptitude 安装 libevent?

似乎不起作用。

aptitude install libevent1
locate libevent

/usr/share/doc/libevent1
/usr/share/doc/libevent1/changelog.Debian.gz
/usr/share/doc/libevent1/copyright
/var/cache/apt/archives/libevent1_1.3e-3_amd64.deb
/var/lib/dpkg/info/libevent1.list
/var/lib/dpkg/info/libevent1.md5sums
/var/lib/dpkg/info/libevent1.postinst
/var/lib/dpkg/info/libevent1.postrm
/var/lib/dpkg/info/libevent1.shlibs
falcon@cache1:~/src/beanstalkd-1.4.3$ libevent1

答案1

为什么你不自己建造它呢?

http://monkey.org/~provos/libevent-1.4.13-stable.tar.gz

下载后,运行常规

./configure
make
sudo make install
ldconfig

答案2

sudo apt-get install libevent-dev

会做的。

答案3

您使用的是什么发行版和版本?根据软件包信息网,该包应该安装以下文件:

/usr/lib/libevent-1.1.so.1
/usr/lib/libevent-1.1a.so.1
/usr/lib/libevent-1.3b.so.1
/usr/lib/libevent-1.3d.so.1
/usr/lib/libevent-1.3e.so.1
/usr/lib/libevent-1.3e.so.1.0.3
/usr/lib/libevent.so.1
/usr/share/doc/libevent1/changelog.Debian.gz
/usr/share/doc/libevent1/copyright

相关内容