Compiling libmemcached

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="-L/ffp/lib -lintl"
export CPPFLAGS="-I/ffp/include -I/ffp/include/readline -DLINUX"
export CXXFLAGS="-I/ffp/include -I/ffp/include/readline"
export CFLAGS="-march=armv5te -mtune=xscale -mfloat-abi=soft -mabi=aapcs-linux -pthread -O2 -lintl -Wall"
export LC_ALL=POSIX
export PKG_CONFIG=/ffp/bin/pkg-config
./configure --help > configure.help.txt
#ERROR1:
	./libtest/cmdline.h:39:19: fatal error: spawn.h: No such file or directory
#SOLUTION1:
	Modify Makefile.am and comment any lines with: 
		include libtest/include.am
		include tests/include.am
	Then run:
		aclocal -I m4
		autoconf
		automake
./configure --prefix=/ffp --enable-libmemcachedprotocol --disable-sasl --with-mysql=/ffp/bin/mysql_config --with-memcached=/ffp --with-sanitize
nohup /ffp/bin/make -C $HOME/compile/libmemcached-1.0.18
renice -14 `pidof python` -p `pidof svn`
tail -f nohup.out
make install DESTDIR=$HOME/temp/libmemcached-1.0.18
cd $HOME/temp/libmemcached-1.0.18
#makepkg memcached version buildnumber
makepkg libmemcached 1.0.18 0
cp -v /tmp/libmemcached-1.0.18-arm-0.txz $HOME/ffp_0.7_armv5/packages
funpkg -i /ffp/home/root/ffp_0.7_armv5/packages/libmemcached-1.0.18-arm-0.txz

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.