
로컬 로 빌드하려고 합니다 tmux
(루트가 없으므로 없음 yum install possible
). 에서는 Centos7
빌드할 수 없습니다...
~/build/tmux-2.3$ ./configure --prefix=/home/statquant/programs/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
[...]
checking for library containing clock_gettime... none required
checking for LIBEVENT... no
checking for library containing event_init... no
checking event.h usability... no
checking event.h presence... no
checking for event.h... no
configure: error: "libevent not found"
yum
내가 가지고 있다고 말해요libevent
statquant@nyzls900t:~/build$ yum list libevent
Installed Packages
libevent.x86_64
내가 시도하면 locate
괜찮습니다.
statquant@nyzls900t:~/build/tmux-2.3$ ll /usr/lib64/libevent*
lrwxrwxrwx 1 root root 21 Dec 2 09:04 /usr/lib64/libevent-2.0.so.5 -> libevent-2.0.so.5.1.9*
-rwxr-xr-x 1 root root 297792 Jun 13 2014 /usr/lib64/libevent-2.0.so.5.1.9*
lrwxrwxrwx 1 root root 26 Dec 2 09:04 /usr/lib64/libevent_core-2.0.so.5 -> libevent_core-2.0.so.5.1.9*
-rwxr-xr-x 1 root root 179800 Jun 13 2014 /usr/lib64/libevent_core-2.0.so.5.1.9*
lrwxrwxrwx 1 root root 27 Dec 2 09:04 /usr/lib64/libevent_extra-2.0.so.5 -> libevent_extra-2.0.so.5.1.9*
-rwxr-xr-x 1 root root 133864 Jun 13 2014 /usr/lib64/libevent_extra-2.0.so.5.1.9*
lrwxrwxrwx 1 root root 29 Dec 2 09:04 /usr/lib64/libevent_openssl-2.0.so.5 -> libevent_openssl-2.0.so.5.1.9*
-rwxr-xr-x 1 root root 24456 Jun 13 2014 /usr/lib64/libevent_openssl-2.0.so.5.1.9*
lrwxrwxrwx 1 root root 30 Dec 2 09:04 /usr/lib64/libevent_pthreads-2.0.so.5 -> libevent_pthreads-2.0.so.5.1.9*
-rwxr-xr-x 1 root root 11200 Jun 13 2014 /usr/lib64/libevent_pthreads-2.0.so.5.1.9*
마침내 나는 그것을 갖게 되었다 내LD_LIB
statquant@nyzls900t:~/build/tmux-2.3$ echo $LD_LIBRARY_PATH
/usr/lib64:/usr/lib
답변1
라이브러리를 구축하는 데 필요한 파일을 가지려면 rpm libevent
뿐만 아니라 설치도 필요합니다 .libevent-devel
시스템 전체에 설치할 수 없다면 가장 쉬운 방법은 홈 디렉토리의 개인 환경에 libevent를 구축하는 것입니다.