setup icon indicating copy to clipboard operation
setup copied to clipboard

"libevent not found" even after running `./zzlibevent.sh`

Open shwnyao opened this issue 2 years ago • 5 comments

I'm trying to install tmux, but it keeps complaining that libevent is not found after I installed it.

OS: Ubuntu 18.04

Steps to reproduce

./zzlibevent.sh
./zztmux.sh

My ~/app/include structure

ls -l ~/app/include
total 248
drwxrwxr-x 132 sangwen sangwen    283 Mar  5 19:01 boost
-rw-r--r--   1 sangwen sangwen   2019 Mar  7 13:44 evdns.h
-rw-r--r--   1 sangwen sangwen   2744 Mar  7 13:44 event.h
drwxrwxr-x   2 sangwen sangwen     27 Mar  7 13:44 event2
-rw-r--r--   1 sangwen sangwen   2035 Mar  7 13:44 evhttp.h
-rw-r--r--   1 sangwen sangwen   2015 Mar  7 13:44 evrpc.h
-rw-r--r--   1 sangwen sangwen   1782 Mar  7 13:44 evutil.h
drwxrwxr-x   2 sangwen sangwen     26 Mar  6 17:46 libavcodec
drwxrwxr-x   2 sangwen sangwen      4 Mar  6 17:46 libavdevice
drwxrwxr-x   2 sangwen sangwen      6 Mar  6 17:46 libavfilter
drwxrwxr-x   2 sangwen sangwen      5 Mar  6 17:46 libavformat
drwxrwxr-x   2 sangwen sangwen     88 Mar  6 17:46 libavutil
drwxrwxr-x   2 sangwen sangwen      4 Mar  6 17:46 libpostproc
drwxrwxr-x   2 sangwen sangwen      4 Mar  6 17:46 libswresample
drwxrwxr-x   2 sangwen sangwen      4 Mar  6 17:46 libswscale
drwxrwxr-x   2 sangwen sangwen     29 Mar  6 17:37 libyasm
-rw-r--r--   1 sangwen sangwen    225 Mar  6 17:37 libyasm-stdint.h
-rw-r--r--   1 sangwen sangwen   2374 Mar  6 17:37 libyasm.h
drwxrwxr-x   3 sangwen sangwen      3 Mar  6 02:09 opencv4
drwxrwxr-x   2 sangwen sangwen     12 Mar  6 17:40 vpx
-rw-r--r--   1 sangwen sangwen  48650 Mar  6 17:37 x264.h
-rw-r--r--   1 sangwen sangwen    172 Mar  6 17:37 x264_config.h
-rw-r--r--   1 sangwen sangwen 103877 Mar 16  2021 x265.h
-rw-r--r--   1 sangwen sangwen   1426 Mar  6 17:37 x265_config.h

bash log

./zzlibevent.sh
libevent will be installed in /userhome/cs/sangwen/app
downloads/libevent.tar.gz exist
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking whether gcc needs -traditional... no
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 3458764513820540925
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for library containing inet_ntoa... none required
checking for library containing socket... none required
checking for library containing inet_aton... none required
checking for library containing clock_gettime... none required
checking for clock_gettime... yes
checking for library containing sendfile... none required
checking for WIN32... no
checking for MIDIPIX... no
checking for CYGWIN... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for library containing inflateEnd... -lz
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for pkg-config... /usr/bin/pkg-config
checking if pkg-config is at least version 0.15.0... yes
checking for library containing SSL_new... no
checking for library containing SSL_new... no
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking mach/mach_time.h usability... no
checking mach/mach_time.h presence... no
checking for mach/mach_time.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/in6.h usability... no
checking netinet/in6.h presence... no
checking for netinet/in6.h... no
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking port.h usability... no
checking port.h presence... no
checking for port.h... no
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking sys/devpoll.h usability... no
checking sys/devpoll.h presence... no
checking for sys/devpoll.h... no
checking sys/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking sys/eventfd.h usability... yes
checking sys/eventfd.h presence... yes
checking for sys/eventfd.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/queue.h usability... yes
checking sys/queue.h presence... yes
checking for sys/queue.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/sendfile.h usability... yes
checking sys/sendfile.h presence... yes
checking for sys/sendfile.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timerfd.h usability... yes
checking sys/timerfd.h presence... yes
checking for sys/timerfd.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for sys/sysctl.h... yes
checking for TAILQ_FOREACH in sys/queue.h... yes
checking for timeradd in sys/time.h... yes
checking for timercmp in sys/time.h... yes
checking for timerclear in sys/time.h... yes
checking for timerisset in sys/time.h... yes
checking whether CTL_KERN is declared... yes
checking whether KERN_RANDOM is declared... yes
checking whether RANDOM_UUID is declared... yes
checking whether KERN_ARND is declared... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking for accept4... yes
checking for arc4random... no
checking for arc4random_buf... no
checking for arc4random_addrandom... no
checking for eventfd... yes
checking for epoll_create1... yes
checking for fcntl... yes
checking for getegid... yes
checking for geteuid... yes
checking for getifaddrs... yes
checking for getnameinfo... yes
checking for getprotobynumber... yes
checking for gettimeofday... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for issetugid... no
checking for mach_absolute_time... no
checking for mmap... yes
checking for nanosleep... yes
checking for pipe... yes
checking for pipe2... yes
checking for putenv... yes
checking for sendfile... yes
checking for setenv... yes
checking for setrlimit... yes
checking for sigaction... yes
checking for signal... yes
checking for splice... yes
checking for strlcpy... no
checking for strsep... yes
checking for strtok_r... yes
checking for strtoll... yes
checking for sysctl... yes
checking for timerfd_create... yes
checking for umask... yes
checking for unsetenv... yes
checking for usleep... yes
checking for vasprintf... yes
checking for getservbyname... yes
checking for getaddrinfo... yes
checking for F_SETFD in fcntl.h... yes
checking for select... yes
checking for poll... yes
checking for epoll_ctl... yes
checking for port_create... no
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint64_t... yes
checking for uint32_t... yes
checking for uint16_t... yes
checking for uint8_t... yes
checking for uintptr_t... yes
checking for fd_mask... yes
checking size of long long... 8
checking size of long... 8
checking size of int... 4
checking size of short... 2
checking size of size_t... 8
checking size of void *... 8
checking size of off_t... 8
checking size of time_t... 8
checking for struct in6_addr... yes
checking for struct sockaddr_in6... yes
checking for struct sockaddr_un... yes
checking for sa_family_t... yes
checking for struct addrinfo... yes
checking for struct sockaddr_storage... yes
checking for struct in6_addr.s6_addr32... yes
checking for struct in6_addr.s6_addr16... yes
checking for struct sockaddr_in.sin_len... no
checking for struct sockaddr_in6.sin6_len... no
checking for struct sockaddr_storage.ss_family... yes
checking for struct sockaddr_storage.__ss_family... no
checking for struct linger... yes
checking for socklen_t... yes
checking whether our compiler supports __func__... yes
checking whether our compiler supports __FUNCTION__... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking size of pthread_t... 8
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating libevent.pc
config.status: creating libevent_openssl.pc
config.status: creating libevent_pthreads.pc
config.status: creating libevent_core.pc
config.status: creating libevent_extra.pc
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: creating evconfig-private.h
config.status: evconfig-private.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
make  all-am
make[1]: Entering directory '/userhome/cs/sangwen/app/src/libevent'
make[1]: Leaving directory '/userhome/cs/sangwen/app/src/libevent'
make  install-am
make[1]: Entering directory '/userhome/cs/sangwen/app/src/libevent'
make[2]: Entering directory '/userhome/cs/sangwen/app/src/libevent'
 /bin/mkdir -p '/userhome/cs/sangwen/app/bin'
 /usr/bin/install -c event_rpcgen.py '/userhome/cs/sangwen/app/bin'
 /bin/mkdir -p '/userhome/cs/sangwen/app/lib'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libevent.la libevent_core.la libevent_extra.la libevent_pthreads.la '/userhome/cs/sangwen/app/lib'
libtool: install: /usr/bin/install -c .libs/libevent-2.1.so.7.0.0 /userhome/cs/sangwen/app/lib/libevent-2.1.so.7.0.0
libtool: install: (cd /userhome/cs/sangwen/app/lib && { ln -s -f libevent-2.1.so.7.0.0 libevent-2.1.so.7 || { rm -f libevent-2.1.so.7 && ln -s libevent-2.1.so.7.0.0 libevent-2.1.so.7; }; })
libtool: install: (cd /userhome/cs/sangwen/app/lib && { ln -s -f libevent-2.1.so.7.0.0 libevent.so || { rm -f libevent.so && ln -s libevent-2.1.so.7.0.0 libevent.so; }; })
libtool: install: /usr/bin/install -c .libs/libevent.lai /userhome/cs/sangwen/app/lib/libevent.la
libtool: install: /usr/bin/install -c .libs/libevent_core-2.1.so.7.0.0 /userhome/cs/sangwen/app/lib/libevent_core-2.1.so.7.0.0
libtool: install: (cd /userhome/cs/sangwen/app/lib && { ln -s -f libevent_core-2.1.so.7.0.0 libevent_core-2.1.so.7 || { rm -f libevent_core-2.1.so.7 && ln -s libevent_core-2.1.so.7.0.0 libevent_core-2.1.so.7; }; })
libtool: install: (cd /userhome/cs/sangwen/app/lib && { ln -s -f libevent_core-2.1.so.7.0.0 libevent_core.so || { rm -f libevent_core.so && ln -s libevent_core-2.1.so.7.0.0 libevent_core.so; }; })
libtool: install: /usr/bin/install -c .libs/libevent_core.lai /userhome/cs/sangwen/app/lib/libevent_core.la
libtool: install: /usr/bin/install -c .libs/libevent_extra-2.1.so.7.0.0 /userhome/cs/sangwen/app/lib/libevent_extra-2.1.so.7.0.0
libtool: install: (cd /userhome/cs/sangwen/app/lib && { ln -s -f libevent_extra-2.1.so.7.0.0 libevent_extra-2.1.so.7 || { rm -f libevent_extra-2.1.so.7 && ln -s libevent_extra-2.1.so.7.0.0 libevent_extra-2.1.so.7; }; })
libtool: install: (cd /userhome/cs/sangwen/app/lib && { ln -s -f libevent_extra-2.1.so.7.0.0 libevent_extra.so || { rm -f libevent_extra.so && ln -s libevent_extra-2.1.so.7.0.0 libevent_extra.so; }; })
libtool: install: /usr/bin/install -c .libs/libevent_extra.lai /userhome/cs/sangwen/app/lib/libevent_extra.la
libtool: install: /usr/bin/install -c .libs/libevent_pthreads-2.1.so.7.0.0 /userhome/cs/sangwen/app/lib/libevent_pthreads-2.1.so.7.0.0
libtool: install: (cd /userhome/cs/sangwen/app/lib && { ln -s -f libevent_pthreads-2.1.so.7.0.0 libevent_pthreads-2.1.so.7 || { rm -f libevent_pthreads-2.1.so.7 && ln -s libevent_pthreads-2.1.so.7.0.0 libevent_pthreads-2.1.so.7; }; })
libtool: install: (cd /userhome/cs/sangwen/app/lib && { ln -s -f libevent_pthreads-2.1.so.7.0.0 libevent_pthreads.so || { rm -f libevent_pthreads.so && ln -s libevent_pthreads-2.1.so.7.0.0 libevent_pthreads.so; }; })
libtool: install: /usr/bin/install -c .libs/libevent_pthreads.lai /userhome/cs/sangwen/app/lib/libevent_pthreads.la
libtool: install: /usr/bin/install -c .libs/libevent.a /userhome/cs/sangwen/app/lib/libevent.a
libtool: install: chmod 644 /userhome/cs/sangwen/app/lib/libevent.a
libtool: install: ranlib /userhome/cs/sangwen/app/lib/libevent.a
libtool: install: /usr/bin/install -c .libs/libevent_core.a /userhome/cs/sangwen/app/lib/libevent_core.a
libtool: install: chmod 644 /userhome/cs/sangwen/app/lib/libevent_core.a
libtool: install: ranlib /userhome/cs/sangwen/app/lib/libevent_core.a
libtool: install: /usr/bin/install -c .libs/libevent_extra.a /userhome/cs/sangwen/app/lib/libevent_extra.a
libtool: install: chmod 644 /userhome/cs/sangwen/app/lib/libevent_extra.a
libtool: install: ranlib /userhome/cs/sangwen/app/lib/libevent_extra.a
libtool: install: /usr/bin/install -c .libs/libevent_pthreads.a /userhome/cs/sangwen/app/lib/libevent_pthreads.a
libtool: install: chmod 644 /userhome/cs/sangwen/app/lib/libevent_pthreads.a
libtool: install: ranlib /userhome/cs/sangwen/app/lib/libevent_pthreads.a
libtool: finish: PATH="/userhome/cs/sangwen/app/bin:/userhome/cs/sangwen/anaconda3/bin:/userhome/cs/sangwen/anaconda3/condabin:/userhome/cs/sangwen/app/bin:/usr/local/slurm/bin:/usr/local/slurm/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/sbin" ldconfig -n /userhome/cs/sangwen/app/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /userhome/cs/sangwen/app/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/userhome/cs/sangwen/app/include'
 /usr/bin/install -c -m 644 include/evdns.h include/event.h include/evhttp.h include/evrpc.h include/evutil.h '/userhome/cs/sangwen/app/include'
 /bin/mkdir -p '/userhome/cs/sangwen/app/include/event2'
 /usr/bin/install -c -m 644 include/event2/buffer.h include/event2/buffer_compat.h include/event2/bufferevent.h include/event2/bufferevent_compat.h include/event2/bufferevent_struct.h include/event2/dns.h include/event2/dns_compat.h include/event2/dns_struct.h include/event2/event.h include/event2/event_compat.h include/event2/event_struct.h include/event2/http.h include/event2/http_compat.h include/event2/http_struct.h include/event2/keyvalq_struct.h include/event2/listener.h include/event2/rpc.h include/event2/rpc_compat.h include/event2/rpc_struct.h include/event2/tag.h include/event2/tag_compat.h include/event2/thread.h include/event2/util.h include/event2/visibility.h '/userhome/cs/sangwen/app/include/event2'
 /bin/mkdir -p '/userhome/cs/sangwen/app/include/event2'
 /usr/bin/install -c -m 644 include/event2/event-config.h '/userhome/cs/sangwen/app/include/event2'
 /bin/mkdir -p '/userhome/cs/sangwen/app/lib/pkgconfig'
 /usr/bin/install -c -m 644 libevent.pc libevent_core.pc libevent_extra.pc libevent_pthreads.pc '/userhome/cs/sangwen/app/lib/pkgconfig'
make[2]: Leaving directory '/userhome/cs/sangwen/app/src/libevent'
make[1]: Leaving directory '/userhome/cs/sangwen/app/src/libevent'
libevent installed on /userhome/cs/sangwen/app


(base) sangwen@gpu2-comp-101:~/setup$ ./zztmux.sh
tmux will be installed in /userhome/cs/sangwen/app
hey, install libevent first
downloads/tmux.tar.gz exist
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for bison... no
checking for byacc... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking bitstring.h usability... no
checking bitstring.h presence... no
checking for bitstring.h... no
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking pty.h usability... yes
checking pty.h presence... yes
checking for pty.h... yes
checking for stdint.h... (cached) yes
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/tree.h usability... no
checking sys/tree.h presence... no
checking for sys/tree.h... no
checking util.h usability... no
checking util.h presence... no
checking for util.h... no
checking for library containing flock... none required
checking for dirfd... yes
checking for flock... yes
checking for prctl... yes
checking for sysconf... yes
checking for asprintf... yes
checking for cfmakeraw... yes
checking for closefrom... no
checking for explicit_bzero... yes
checking for fgetln... no
checking for freezero... no
checking for getdtablecount... no
checking for getprogname... no
checking for memmem... yes
checking for recallocarray... no
checking for reallocarray... yes
checking for setenv... yes
checking for setproctitle... no
checking for strcasestr... yes
checking for strlcat... no
checking for strlcpy... no
checking for strndup... yes
checking for strsep... yes
checking for strtonum... no
checking for working strnlen... yes
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"

shwnyao avatar Mar 07 '22 05:03 shwnyao

Hello, shwnyao: I met the same problem in the same condition(when installing tumx), have you solve it?

wujianP avatar Mar 10 '22 13:03 wujianP

@wujianP no I did not. I just went back to use screen instead. btw I came across other suggestion on the web but it did not work for me. maybe you could take a look. https://unix.stackexchange.com/questions/17907/why-cant-gcc-find-libevent-when-building-tmux-from-source

shwnyao avatar Mar 10 '22 13:03 shwnyao

@wujianP no I did not. I just went back to use screen instead. btw I came across other suggestion on the web but it did not work for me. maybe you could take a look. https://unix.stackexchange.com/questions/17907/why-cant-gcc-find-libevent-when-building-tmux-from-source

Thanks for your hint, I'll still working on it.

wujianP avatar Mar 10 '22 13:03 wujianP

Hi, @shwnyao : I solved this problem by modifying one line in zztmux.sh as bellow: replace: LINE29: ./configure --prefix="$ROOTDIR" with: LINE29: ./configure --prefix="$ROOTDIR" CFLAGS="-I$ROOTDIR/include" LDFLAGS="-L$ROOTDIR/lib"

You can have a try.

wujianP avatar Mar 11 '22 03:03 wujianP

base on @wujianP, an extra works in my case,

PKG_CONFIG_PATH=${ROOTDIR}/lib/pkgconfig

yingfhu avatar Oct 27 '22 11:10 yingfhu