Question

I was wondering if there were instructions somewhere on how to compile libev-dev on Linux (CentOS) 64 bit. I was not able to locate the dev package associated with libev nor any tutorials on its compilation. p.s: no package managers please - since I am installing on the cloud with no previliges.

Was it helpful?

Solution

First, download the source package and unzip it to somewhere. And then try this:

cd /path/to/libev
./autogen.sh
./configure
make
sudo make install

It works for me. Hope it also works for you :)

OTHER TIPS

If you not have privilege to root, you may make it but not install it. Just simply cp *.o file to your program and use something like gcc -o test test.c ev.o.

Since today libev is using cmake for the compilation, then here is a bit more updated answer:

cmake .
make
sudo make install

And if you don't have privileges you can the installation directory by:

cmake -DCMAKE_INSTALL_PREFIX=${INSTALLATION_DIR}/usr
make
make install
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top