{"id":221,"date":"2022-08-30T14:57:44","date_gmt":"2022-08-30T14:57:44","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/08\/28\/problem-about-memcache-record-and-share-programming-errors\/"},"modified":"2022-08-30T14:57:44","modified_gmt":"2022-08-30T14:57:44","slug":"problem-about-memcache-record-and-share-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-memcache-record-and-share-programming-errors\/","title":{"rendered":"problem about memcache-Record and share programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/NwaJd.jpg?s=32&amp;g=1\" \/><br \/>\nandufo<br \/>\nphp memcached php-extensions pecl memcache<br \/>\nyesterday i migrated to Rackspace (CentOS 5.5). Everything was already configured (apache, php, mysql, memcached) and working well.The only thing i forgot, and installed at last was the mail server (iRedMail). After that, for some reason, memcached got kind of screwed up:[root@mail php.d]# php -vPHP Warning: PHP Startup: memcache: Unable to initialize module Module compiled with module API=20050922, debug=0, thread-<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9881c968a8a9c4c94ab5338686c27a4a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRULE101<br \/>\nlinux centos memcached memcache<br \/>\nI get this while installing libmemcachedroot@server [\/libmemcached]# make make all-am make[1]: Entering directory `\/libmemcached&#8217; if \/bin\/sh .\/libtool &#8211;tag=CXX &#8211;mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -ggdb -DBUILDING_HASHKIT -MT libhashkit\/libhashkit_libhashkit_la-aes.lo -MD -MP -MF &#8220;libhashkit\/.deps\/libhashkit_libhashkit_la-aes.Tpo&#8221; -c -o libhashkit\/libhashkit_libhashkit_la-aes.lo `test -f &#8216;libhashkit\/aes.cc&#8217; || echo &#8216;.\/&#8217;`libhashkit\/aes.cc; \\then mv -f &#8220;libhashkit\/.deps\/libhashkit_libhashkit_la-aes.Tpo&#8221; &#8220;libhashkit\/.deps\/libhashkit_libhashkit_la-aes.Plo&#8221;; else rm -f &#8220;libhashkit\/.deps\/libhashkit_libhashkit_la-aes.Tpo&#8221;; exit 1; fi .\/libtool: line 866: X&#8211;tag=CXX: command not found .\/libtool: line 899: libtool: ignoring unknown tag : command not found .\/libtool: line 866: X&#8211;mode=compile: command not found .\/libtool: line 1032: *** Warning: inferring the mode of operation is deprecated.: command not found .\/libtool: line 1033: *** Future versions of Libtool will require &#8211;mode=MODE be specified.: command not found .\/libtool: line 1176: Xg++: command not found .\/libtool: line 1176: X-DHAVE_CONFIG_H: command not found .\/libtool: line 1176: X-I.: command not found .\/libtool: line 1176: X-I.: command not found .\/libtool: line 1176: X-I.: command not found .\/libtool: line 1176: X-I.: command not found .\/libtool: line 1176: X-I.: command not found .\/libtool: line 1176: X-ggdb: command not found .\/libtool: line 1176: X-DBUILDING_HASHKIT: command not found .\/libtool: line 1176: X-MT: command not found .\/libtool: line 1176: Xlibhashkit\/libhashkit_libhashkit_la-aes.lo: No such file or directory .\/libtool: line 1176: X-MD: command not found .\/libtool: line 1176: X-MP: command not found .\/libtool: line 1176: X-MF: command not found .\/libtool: line 1176: Xlibhashkit\/.deps\/libhashkit_libhashkit_la-aes.Tpo: No such file or directory .\/libtool: line 1176: X-c: command not found .\/libtool: line 1228: Xlibhashkit\/libhashkit_libhashkit_la-aes.lo: No such file or directory .\/libtool: line 1233: libtool: compile: cannot determine name of library object from `&#8217;: command not found make[1]: *** [libhashkit\/libhashkit_libhashkit_la-aes.lo] Error 1 make[1]: Leaving directory `\/libmemcached&#8217; make: *** [all] Error 2OUTPUT OF .\/configurechecking build system type&#8230; x86_64-unknown-linux-gnu checking host system type&#8230; x86_64-unknown-linux-gnu checking target system type&#8230; x86_64-unknown-linux-gnu checking for a BSD-compatible install&#8230; \/usr\/bin\/install -c checking whether build environment is sane&#8230; yes checking for gawk&#8230; gawk checking whether make sets $(MAKE)&#8230; yes checking for style of include used by make&#8230; GNU checking for gcc&#8230; gcc checking whether the C compiler works&#8230; yes checking for C compiler default output file name&#8230; a.out checking for suffix of executables&#8230; checking whether we are cross compiling&#8230; no checking for suffix of object files&#8230; o checking whether we are using the GNU C compiler&#8230; yes checking whether gcc accepts -g&#8230; yes checking for gcc option to accept ISO C89&#8230; none needed checking dependency style of gcc&#8230; gcc3 checking dependency style of gcc&#8230; (cached) gcc3 checking how to run the C preprocessor&#8230; gcc -E checking for grep that handles long lines and -e&#8230; \/bin\/grep checking for egrep&#8230; \/bin\/grep -E checking for ANSI C header files&#8230; yes checking for sys\/types.h&#8230; yes checking for sys\/stat.h&#8230; yes checking for stdlib.h&#8230; yes checking for string.h&#8230; yes checking for memory.h&#8230; yes checking for strings.h&#8230; yes checking for inttypes.h&#8230; yes checking for stdint.h&#8230; yes checking for unistd.h&#8230; yes checking minix\/config.h usability&#8230; no checking minix\/config.h presence&#8230; no checking for minix\/config.h&#8230; no checking whether it is safe to define __EXTENSIONS__&#8230; yes checking for isainfo&#8230; no checking for g++&#8230; g++ checking whether we are using the GNU C++ compiler&#8230; yes chec<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/364f22a947905d7d50285a0bba97bf88?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPetrus<br \/>\ninstallation redhat pecl memcache<br \/>\nI have installed memcached fine, and now I will need to install PECL extension memcache. Im running RedHat x86_64 es5. The installation gives me this:downloading memcache-2.2.6.tgz &#8230; Starting to download memcache-2.2.6.tgz (35,957 bytes) &#8230;&#8230;&#8230;.done: 35,957 bytes 11 source files, building running: phpize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 Enable memcache session handler support? [yes] : Notice: Use of undefined constant STDIN &#8211; assumed &#8216;STDIN&#8217; in PEAR\/Frontend\/CLI.php on line 304Warning: fgets() expects parameter 1 to be resource, string given in PEAR\/Frontend\/CLI.php on line 304Warning: fgets() expects parameter 1 to be resource, string given in \/usr\/lib\/php\/PEAR\/Frontend\/CLI.php on line 304 building in \/root\/tmp\/pear-build-root\/memcache-2.2.6 running: \/root\/tmp\/pear\/memcache\/configure &#8211;enable-memcache-session=yes checking for egrep&#8230; grep -E checking for a sed that does not truncate output&#8230; \/bin\/sed checking for cc&#8230; cc checking for C compiler default output file name&#8230; a.out checking whether the C compiler works&#8230; yes checking whether we are cross compiling&#8230; no checking for suffix of executables&#8230; checking for suffix of object files&#8230; o checking whether we are using the GNU C compiler&#8230; yes checking whether cc accepts -g&#8230; yes checking for cc option to accept ANSI C&#8230; none needed checking how to run the C preprocessor&#8230; cc -E checking for icc&#8230; no checking for suncc&#8230; no checking whether cc understands -c and -o together&#8230; yes checking for system library directory&#8230; lib checking if compiler supports -R&#8230; no checking if compiler supports -Wl,-rpath,&#8230; yes checking build system type&#8230; x86_64-unknown-linux-gnu checking host system type&#8230; x86_64-unknown-linux-gnu checking target system type&#8230; x86_64-unknown-linux-gnu checking for PHP prefix&#8230; \/usr checking for PHP includes&#8230; -I\/usr\/include\/php -I\/usr\/include\/php\/main -I\/usr\/include\/php\/TSRM -I\/usr\/include\/php\/Zend -I\/usr\/include\/php\/ext -I\/usr\/include\/php\/ext\/date\/lib checking for PHP extension directory&#8230; \/usr\/lib\/php\/extensions\/no-debug-non-zts-20090626 checking for PHP installed headers prefix&#8230; \/usr\/include\/php checking if debug is enabled&#8230; no checking if zts is enabled&#8230; no checking for re2c&#8230; re2c checking for re2c version&#8230; invalid configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk&#8230; gawk checking whether to enable memcache support&#8230; yes, shared checking whether to enable memcache session handler support&#8230; yes checking for the location of ZLIB&#8230; no checking for the location of zlib&#8230; \/usr checking for session includes&#8230; \/usr\/include\/php checking for memcache session support&#8230; enabled checking for ld used by cc&#8230; \/usr\/bin\/ld checking if the linker (\/usr\/bin\/ld) is GNU ld&#8230; yes checking for \/usr\/bin\/ld option to reload object files&#8230; -r checking for BSD-compatible nm&#8230; \/usr\/bin\/nm -B checking whether ln -s works&#8230; yes checking how to recognize dependent libraries&#8230; pass_all checking for ANSI C header files&#8230; yes checking for sys\/types.h&#8230; yes checking for sys\/stat.h&#8230; yes checking for stdlib.h&#8230; yes checking for string.h&#8230; yes checking for memory.h&#8230; yes checking for strings.h&#8230; yes checking for inttypes.h&#8230; yes checking for stdint.h&#8230; yes checking for unistd.h&#8230; yes checking dlfcn.h usability&#8230; yes checking dlfcn.h presence&#8230; yes checking for dlfcn.h&#8230; yes checking the maximum length of command line arguments&#8230; 98304 checking command to parse \/usr\/bin\/nm -B output from cc object&#8230; ok checking for objdir&#8230; .libs checking for ar&#8230; ar checking for ranlib&#8230; ranlib checking for strip&#8230; strip checking if cc supports -fno-rtti -fno-exceptions&#8230; no checking for cc option to produce PIC&#8230; -fPIC checking if cc PIC flag -fPIC works&#8230; yes checking if cc static flag -static works&#8230; yes checking if cc supports -c -o file.o&#8230; yes checking whether the cc link<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/81e1e18420e58cfee639a6ddb0b0eff2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nLuca Borrione<br \/>\nlamp xampp memcache<br \/>\nI need to use different versions of lampp (xampp for linux). I recently also need to use memcache with any version of lampp I might need to use. Everything is going right if I use the last lampp version 1.7.7 which contains PHP 5.3.8 I simply dosudo apt-get install php5-memcache sudo cp -av &#8216;\/usr\/lib\/php5\/20090626+lfs\/memcache.so&#8217; &#8216;\/opt\/lampp\/lib\/php\/extensions\/no-debug-non-zts-20090626\/mem<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-08-28 05:42:33. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>andufo php memcached php-extensions pecl memcache yesterday i migrated to Rackspace (CentOS 5.5). Everything was already configured (apache, php, mysql, memcached) and working well.The only thing i forgot, and installed at last was the mail server (iRedMail). After that, for some reason, memcached got kind of screwed up:[root@mail php.d]# php -vPHP Warning: PHP Startup: memcache: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,1],"tags":[],"class_list":["post-221","post","type-post","status-publish","format-standard","hentry","category-php-memcached","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=221"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/221\/revisions"}],"predecessor-version":[{"id":8995,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/221\/revisions\/8995"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}