How can I install libevent on Windows? Tryed to make this via PECL but got an error "WARNING: php_bin C:\PHP\php.exe appears to have a suffix .exe, but config variab le php_suffix does not match"
Asked
Active
Viewed 1,502 times
2 Answers
1
I find this url quite helpful:
http://code.jellycan.com/memcached/
The author made a modified version of libevent and memcached. According to the author, "These projects are based on the existing win32 builds of the two projects. Just fixed so that they work. Neither library has been modified from the respective released version other than to add win32 required changes."
It can be built using Visual Studio.
![](../../users/profiles/92667.webp)
EdwardBadBoy
- 11
- 2
0
You can compile libevent from source using Visual Studio command line tools.
You should extract libevent sources somewhere, the cd to that folder and type nmake Makefile.nmake
there.
![](../../users/profiles/69133.webp)
Alex
- 7,789
- 4
- 36
- 51
-
I've got an error: **NMAKE: fatal error U1073: don't know how to make 'Makefile.nmake'** – Chvanikoff Feb 04 '11 at 17:16
-
That's quite odd. It is in a `libevent-2.0.10-stable` folder if you use the latest sources from that site. Could you pls check it again. – Alex Feb 04 '11 at 17:26
-
Oh.. My bad - I tryed make this with libevent-0.0.4 from [pecl page](http://pecl.php.net/package/libevent) – Chvanikoff Feb 04 '11 at 17:30
-
Ok, what's next after nmake finished it's job? – Chvanikoff Feb 04 '11 at 17:31