Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./configure: libevent not found #1084

Closed
dajuno opened this issue Sep 20, 2017 · 4 comments
Closed

./configure: libevent not found #1084

dajuno opened this issue Sep 20, 2017 · 4 comments

Comments

@dajuno
Copy link

dajuno commented Sep 20, 2017

I am trying to compile tmux 2.5 on OpenSUSE 3.16.53, via this bash script, with libevent 2.1.8 and ncurses 5.9.

libevent is configured with:

./configure --prefix=$HOME/local --disable-shared

ncurses ./configure:

./configure --prefix=$HOME/local

tmux ./configure:

./configure CFLAGS="-I$HOME/local/include -I$HOME/local/include/ncurses" \
LDFLAGS="-L$HOME/local/lib -L$HOME/local/include/ncurses -L$HOME/local/include" \
CPPFLAGS="-I$HOME/local/include -I$HOME/local/include/ncurses" \
LDFLAGS="-static -L$HOME/local/include -L$HOME/local/include/ncurses -L$HOME/local/lib" make

The tmux configuration fails due to libevent issues:

checking for LIBEVENT... no
checking for library containing event_init... no
checking event.h usability... yes
checking event.h presence... no
configure: WARNING: event.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: event.h: proceeding with the compiler's result
checking for event.h... yes
configure: error: "libevent not found"

Thanks in advance!

@nicm
Copy link
Member

nicm commented Sep 22, 2017

config.log?

@dajuno
Copy link
Author

dajuno commented Sep 22, 2017

Sorry, my bad. There was -L$HOME/local/lib64 missing in LDFLAGS for libevent.

@dajuno dajuno closed this as completed Sep 22, 2017
@the7threvival
Copy link

For anyone who came here like me and still didn't understand:

https://stackoverflow.com/questions/21926202/libevent-not-found-error-in-tmux

@lock
Copy link

lock bot commented Mar 11, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants