tony2001 / pinba_engine

Pinba - MySQL plugin and storage engine
http://pinba.org
GNU General Public License v2.0
475 stars 41 forks source link

pinba not compile with libevent-2.0.22 #41

Open Aleks0305 opened 9 years ago

Aleks0305 commented 9 years ago

Hello! I try to compile plugin for centos 6 mysql 5.6. ./configure --with-mysql=/root/mysql-src/mysql-5.6.24 --with-judy=/usr/local/bin/judy-1.0.5 --with-event=/usr/local/bin/libevent-2.0.22 --with-libdir=/usr/lib64/mysql/plugin/ and see: checking for pthread_setaffinity_np in -lpthread... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for MySQL source code... /root/mysql-src/mysql-5.6.24 checking for MySQL version >= 5.1... ok checking libevent install prefix... /usr/local/bin/libevent-2.0.22 checking if libevent requires -lrt... configure: error: something went wrong - c annot link libevent, please report (attach you config.log)

What is wrong?

tony2001 commented 9 years ago

/usr/local/bin/libevent-2.0.22 - that doesn't look like a correct install prefix. Did you really specify --prefix=/usr/local/bin/libevent-2.0.22 when installing libevent? I guess it's /usr/local JFYI, current devel branch doesn't use libevent at all.