EulerianTechnologies / eredis

Fast and light Redis C client library built over Hiredis, thread-safe, write replication, auto-reconnect, sync pool, async libev.
BSD 3-Clause "New" or "Revised" License
81 stars 38 forks source link

Does it can build on Centos #15

Closed stonecool closed 6 years ago

stonecool commented 6 years ago

OS:CentOS release 6.9 when I type

cmake .

output:

-- Could NOT find libev (missing: LIBEV_INCLUDE_DIR LIBEV_LIBRARY) CMake Error at src/CMakeLists.txt:90 (MESSAGE): Could not find required package libev

I install "libev-devel.x86_64" , then "cmake ." again output:

-- Could NOT find libev (missing: LIBEV_INCLUDE_DIR) CMake Error at src/CMakeLists.txt:90 (MESSAGE): Could not find required package libev

I check the "CMakeError.log", find

/usr/bin/ld: cannot find -lpthreads collect2: ld returned 1 exit status

which step I do was wrong, and what should I do to resolve the problem. Thanks!

stonecool commented 6 years ago

fix! I had add

# -Wno-strict-aliasing for hiredis libev (eredis libev is fine) SET( LIBEV_INCLUDE_DIR "/usr/include/libev/")

to ./CMakeLists.txt