Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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"

share|improve this question

2 Answers 2

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.

share|improve this answer

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.

share|improve this answer
    
I've got an error: NMAKE: fatal error U1073: don't know how to make 'Makefile.nmake' –  Chvanikoff Feb 4 '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 4 '11 at 17:26
    
Oh.. My bad - I tryed make this with libevent-0.0.4 from pecl page –  Chvanikoff Feb 4 '11 at 17:30
    
Ok, what's next after nmake finished it's job? –  Chvanikoff Feb 4 '11 at 17:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.