wget http://memcached.org/latest
tar -zxvf memcached-1.x.x.tar.gz
cd memcached-1.x.x
./configure
make && make test
sudo make install

Here's the step to build/install memcached,but how to build it with debug symbols so that I can use gdb ?

link|improve this question

57% accept rate
1  
if you run ./configure --help does it give any hint to a --debug argument? – Tom O'Connor Mar 30 '11 at 8:47
Failing that, you could always set -ggdb as one of your CFLAGS before compiling... – Tom O'Connor Mar 30 '11 at 8:48
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.