memaslap cannot be found after when do "configure --enable-memaslap" , compile and install
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libmemcached |
New
|
Undecided
|
Unassigned |
Bug Description
Hi, all,
I just downloaded the latest version "libmemcached-
After "configure --enable-memaslap; make; make install", I cannot find the memaslap in the client folder and no errors ever appeared.
It takes me lot of time to search online the possible reason and solution.
The real reason you cannot get memaslap is the missing of libevent library. If you run "configure --enable-memaslap" and the following "checking test for a working libevent... no" appears, memaslap will not show up. However, the configure file does not give any hints when you configure with option --enable-memaslap.
1, [possible solution]
in my centos 6.6, execute "yum install libevent libevent-devel". Then the following "checking test for a working libevent... yes" appears, memaslap will appear.
2, [modification to configure file]
in order to let configure file to remind missing library when compile with memaslap, some modifications need to be added into configure file.
original configure file in libmemcached-1.0.18 from line 21667:
--------------
21667# Finally, execute ACTION-
21668 if test "x$ax_cv_libevent" = xyes; then :
21669
21670 fi
--------------
modified into new configure file from line 21667:
--------------
21667 # Finally, execute ACTION-
21668 if test "x$ax_cv_libevent" = xyes; then :
21669 + # add by Tony
21670 + elif test "$ac_cv_
21671 + as_fn_error $? "Unable to find libevent" "$LINENO" 5
21672 + # end by Tony
21673 fi
--------------
after this modification, when you execute "configure --enable-memaslap" without libevent, the following error reminder will appear in the terminal:
--------------
checking checking for cxx_gcc_
checking test for a working libevent... no
configure: error: Unable to find libevent
--------------
if you do not have the option "--enable-
then, what you need is just to install the corresponding missing library.
Hope this information is helpful for new tryers of memaslap. :-)
Tony S.
Ph.D student of UCCS
it works...thx.very much...