Search code examples
compilationmakefilememcachedconfigurelibmemcache

How can I compile memcached-1.4.7's source code if I made some change?


I modified the source code of memcached-1.4.7, but I got stuck when I tried to compile the new code.

I add two files (test.c and test.h) to the source. I modified items.c to call some function provided by test.c. Now I would like to compile the new code. What should I do?

Thanks!


Solution

  • Before you try to modify any open-source package, you should always try to build a "pritisine" copy first. Usually that's achieved by

    ./configure && make
    

    So make another copy of the original source, and build that. Then you can try your modifications.