example/memcached_light.o] Error 1

CXXLD libmemcached-1.0/t/cc_test
CC libmemcached-1.0/t/c_sasl_test.o
CCLD libmemcached-1.0/t/c_sasl_test
CXX example/t/example_t_memcached_light-memcached_light.o
CXX tests/libmemcached-1.0/example_t_memcached_light-memcached_get.o
CXX tests/libmemcached-1.0/example_t_memcached_light-print.o
CXX tests/libmemcached-1.0/example_t_memcached_light-setup_and_teardowns.o
CXX example/byteorder.o
CXX example/interface_v0.o
CXX example/interface_v1.o
CXX example/memcached_light.o
example/memcached_light.cc:40:19: error: event.h: No such file or directory
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]: Leaving directory `/usr/src/memcache-2.1.2/libmemcached-1.0.12′
make: *** [all] Error 2

ini solusinya…
herewith the solution

make clean
download previous version
wget https://launchpad.net/libmemcached/1.0/1.0.2/+download/libmemcached-1.0.2.tar.gz
tar zxvf libmemcached-1.0.2.tar.gz
cd libmemcached-1.0.2
./configure –prefix=/usr/local/libmemcached
make && make install

should be ok now.

hopefully can help you a lot. semoga berhasil

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s