I’m currently running Fedora 17 and last night while trying to debug some code I ran into a goofy issue. The package required that libev be installed. OK, I thought, not a problem. yum install libev-devel and I’m good to go. Obviously that didn’t work or I wouldn’t be writing this. Thus in a futile attempt to somehow I correct my problem I thought, “Oh, must have the wrong ev. Let’s try this one.” Somewhere around five to six -devel packages later it still didn’t work. What on earth was going on? Why was ev.h still not being found?
My next step was to see if all my yum installs had actually produced what I wanted. A
grep -r ev.h
inside of /usr/include returned what I wanted. There it was inside of /usr/include/libev. So why wasn’t it being picked up? Honestly I still don’t know, but I figured out how to make gcc see it.
Add this to your bashrc:
export C_INCLUDE_PATH=/usr/include/libev