0
我有用於libmemcached make命令的一個問題
,它引發了所有這些錯誤附近的命令Libmemcached做出錯誤
CXX example/memcached_light.o
example/memcached_light.cc:40:19: error: event.h: No such file or directory
CXX example/storage.o
CXX util/daemon.o
example/memcached_light.cc:62: error: field 'event' has incomplete type
example/memcached_light.cc: In function 'void drive_client(memcached_socket_t, short int, void*)':
example/memcached_light.cc:130: error: 'EV_WRITE' was not declared in this scope
example/memcached_light.cc:135: error: 'EV_READ' was not declared in this scope
example/memcached_light.cc:138: error: 'struct connection' has no member named 'event'
example/memcached_light.cc:138: error: 'event_set' was not declared in this scope
example/memcached_light.cc:139: error: 'struct connection' has no member named 'event'
example/memcached_light.cc:139: error: 'event_base_set' was not declared in this scope
example/memcached_light.cc:141: error: 'struct connection' has no member named 'event'
example/memcached_light.cc:141: error: 'event_add' was not declared in this scope
example/memcached_light.cc: In function 'void accept_handler(memcached_socket_t, short int, void*)':
example/memcached_light.cc:187: error: 'struct connection' has no member named 'event'
example/memcached_light.cc:187: error: 'EV_READ' was not declared in this scope
example/memcached_light.cc:187: error: 'event_set' was not declared in this scope
example/memcached_light.cc:188: error: 'struct connection' has no member named 'event'
example/memcached_light.cc:188: error: 'event_base_set' was not declared in this scope
example/memcached_light.cc:189: error: 'struct connection' has no member named 'event'
example/memcached_light.cc:189: error: 'event_add' was not declared in this scope
example/memcached_light.cc: In function 'int main(int, char**)':
example/memcached_light.cc:596: error: 'event_init' was not declared in this scope
example/memcached_light.cc:608: error: 'struct connection' has no member named 'event'
example/memcached_light.cc:608: error: 'EV_READ' was not declared in this scope
example/memcached_light.cc:608: error: 'EV_PERSIST' was not declared in this scope
example/memcached_light.cc:608: error: 'event_set' was not declared in this scope
example/memcached_light.cc:610: error: 'struct connection' has no member named 'event'
example/memcached_light.cc:610: error: 'event_base_set' was not declared in this scope
example/memcached_light.cc:611: error: 'struct connection' has no member named 'event'
example/memcached_light.cc:611: error: 'event_add' was not declared in this scope
example/memcached_light.cc:629: error: 'event_base_loop' was not declared in this scope
make[1]: *** [example/memcached_light.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/opt/hiphop/libmemcached-1.0.13'
make: *** [all] Error 2
我想在Debian擠壓64位安裝phphiphop年底按these說明我找到了。我使用的是比指令更新的版本,但老版本也一樣,phphiphop說它支持0.39+。任何幫助將是偉大的,謝謝。
謝謝,libevent的-DEV正確安裝,但libevent的無法找到 E:無法找到包的libevent – boundless08
哎呀,複製和粘貼和編輯與愚蠢的錯誤,對不起;-) – VolkerK
沒有問題,它似乎是工作,仍然安裝,但沒有錯誤呢。雖然我認爲你在那裏作爲一個聰明的詭計欺騙了我,但是我還是扮演了先生!再次感謝。 – boundless08