{"id":614,"date":"2014-11-04T12:54:09","date_gmt":"2014-11-04T12:54:09","guid":{"rendered":"http:\/\/adrhc.go.ro\/wordpress\/?p=614"},"modified":"2017-10-07T17:25:55","modified_gmt":"2017-10-07T15:25:55","slug":"compiling-libmemcached","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/compiling-libmemcached\/","title":{"rendered":"Compiling libmemcached"},"content":{"rendered":"<pre class=\"brush:bash shell\">\r\ncd $HOME\/compile\r\nwget https:\/\/launchpad.net\/libmemcached\/1.0\/1.0.18\/+download\/libmemcached-1.0.18.tar.gz\r\ntar -xzf libmemcached-1.0.18.tar.gz\r\ncd $HOME\/compile\/libmemcached-1.0.18\r\nexport LDFLAGS=\"-L\/ffp\/lib -lintl\"\r\nexport CPPFLAGS=\"-I\/ffp\/include -I\/ffp\/include\/readline -DLINUX\"\r\nexport CXXFLAGS=\"-I\/ffp\/include -I\/ffp\/include\/readline\"\r\nexport CFLAGS=\"-march=armv5te -mtune=xscale -mfloat-abi=soft -mabi=aapcs-linux -pthread -O2 -lintl -Wall\"\r\nexport LC_ALL=POSIX\r\nexport PKG_CONFIG=\/ffp\/bin\/pkg-config\r\n.\/configure --help > configure.help.txt\r\n#ERROR1:\r\n\t.\/libtest\/cmdline.h:39:19: fatal error: spawn.h: No such file or directory\r\n#SOLUTION1:\r\n\tModify Makefile.am and comment any lines with: \r\n\t\tinclude libtest\/include.am\r\n\t\tinclude tests\/include.am\r\n\tThen run:\r\n\t\taclocal -I m4\r\n\t\tautoconf\r\n\t\tautomake\r\n.\/configure --prefix=\/ffp --enable-libmemcachedprotocol --disable-sasl --with-mysql=\/ffp\/bin\/mysql_config --with-memcached=\/ffp --with-sanitize\r\nnohup \/ffp\/bin\/make -C $HOME\/compile\/libmemcached-1.0.18\r\nrenice -14 `pidof python` -p `pidof svn`\r\ntail -f nohup.out\r\nmake install DESTDIR=$HOME\/temp\/libmemcached-1.0.18\r\ncd $HOME\/temp\/libmemcached-1.0.18\r\n#makepkg memcached version buildnumber\r\nmakepkg libmemcached 1.0.18 0\r\ncp -v \/tmp\/libmemcached-1.0.18-arm-0.txz $HOME\/ffp_0.7_armv5\/packages\r\nfunpkg -i \/ffp\/home\/root\/ffp_0.7_armv5\/packages\/libmemcached-1.0.18-arm-0.txz\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>cd $HOME\/compile wget https:\/\/launchpad.net\/libmemcached\/1.0\/1.0.18\/+download\/libmemcached-1.0.18.tar.gz tar -xzf libmemcached-1.0.18.tar.gz cd $HOME\/compile\/libmemcached-1.0.18 export LDFLAGS=&#8221;-L\/ffp\/lib -lintl&#8221; export CPPFLAGS=&#8221;-I\/ffp\/include -I\/ffp\/include\/readline -DLINUX&#8221; export CXXFLAGS=&#8221;-I\/ffp\/include -I\/ffp\/include\/readline&#8221; export CFLAGS=&#8221;-march=armv5te -mtune=xscale -mfloat-abi=soft -mabi=aapcs-linux -pthread -O2 -lintl -Wall&#8221; export LC_ALL=POSIX export PKG_CONFIG=\/ffp\/bin\/pkg-config .\/configure &#8211;help > configure.help.txt #ERROR1: .\/libtest\/cmdline.h:39:19: fatal error: [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/compiling-libmemcached\/#more-614\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Compiling libmemcached<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,11,163],"tags":[],"class_list":["post-614","post","type-post","status-publish","format-standard","hentry","category-compiling-from-source","category-linux","category-nsa310"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/614","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=614"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/614\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}