我正在尝试安装需要 libevent 开发包的旧 Tor 版本。
我已经正确下载了一个开发包,但是当我运行时./configure --with-libevent-dir=/libevent/lib/x86_64-linux-gnu/
,我得到了这个输出:
We found the libraries for libevent, but we could not find the C header files.
You may need to install a devel package
这是 libevent 文件夹的树
libevent
├── include
│ ├── evdns.h
│ ├── event2
│ │ ├── buffer_compat.h
│ │ ├── bufferevent_compat.h
│ │ ├── bufferevent.h
│ │ ├── bufferevent_ssl.h
│ │ ├── bufferevent_struct.h
│ │ ├── buffer.h
│ │ ├── dns_compat.h
│ │ ├── dns.h
│ │ ├── dns_struct.h
│ │ ├── event_compat.h
│ │ ├── event-config.h
│ │ ├── event.h
│ │ ├── event_struct.h
│ │ ├── http_compat.h
│ │ ├── http.h
│ │ ├── http_struct.h
│ │ ├── keyvalq_struct.h
│ │ ├── listener.h
│ │ ├── rpc_compat.h
│ │ ├── rpc.h
│ │ ├── rpc_struct.h
│ │ ├── tag_compat.h
│ │ ├── tag.h
│ │ ├── thread.h
│ │ └── util.h
│ ├── event.h
│ ├── evhttp.h
│ ├── evrpc.h
│ └── evutil.h
├── lib
│ └── x86_64-linux-gnu
│ ├── libevent.a
│ ├── libevent_core.a
│ ├── libevent_core.so -> libevent_core-2.0.so.5.1.9
│ ├── libevent_extra.a
│ ├── libevent_extra.so -> libevent_extra-2.0.so.5.1.9
│ ├── libevent_openssl.a
│ ├── libevent_openssl.so -> libevent_openssl-2.0.so.5.1.9
│ ├── libevent_pthreads.a
│ ├── libevent_pthreads.so -> libevent_pthreads-2.0.so.5.1.9
│ ├── libevent.so -> libevent-2.0.so.5.1.9
│ └── pkgconfig
│ ├── libevent_openssl.pc
│ ├── libevent.pc
│ └── libevent_pthreads.pc
└── share
└── doc
└── libevent-dev
我该如何解决这个问题?