Compiling memcached

cd $HOME/compile
wget http://memcached.org/files/memcached-1.4.21.tar.gz
tar xvzf memcached-1.4.21.tar.gz
cd $HOME/compile/memcached-1.4.21
#export PATH=/ffp/sbin:/usr/sbin:/sbin:/ffp/bin:/usr/bin:/bin:/ffp/opt/ejre1.7.0_60/bin
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
./configure --prefix=/ffp --with-libevent=/ffp
nohup /ffp/bin/make -C $HOME/compile/memcached-1.4.21
make test
make install DESTDIR=$HOME/temp/memcached-1.4.21
cd $HOME/temp/memcached-1.4.21
#makepkg memcached version buildnumber
makepkg memcached 1.4.21 0
cp -v /tmp/memcached-1.4.21-arm-0.txz $HOME/ffp_0.7_armv5/packages
funpkg -i /ffp/home/root/ffp_0.7_armv5/packages/memcached-1.4.21-arm-0.txz
memcached -h
mkdir /ffp/var/memcached
chown -R nobody:nobody /ffp/var/memcached
chmod -R 777 /ffp/var/memcached
#memcached -u root -s /ffp/var/memcached/memcached.socket -A -m 48 -c 256 -P /ffp/var/memcached/memcached.pid -t 1 -vv
#Conform cu https://wordpress.org/support/topic/memcache-unix-socket-not-working:
#WP-FFPC settings -> Hosts = /ffp/var/memcached/memcached.socket:0
memcached -u root -A -m 48 -c 256 -P /ffp/var/memcached/memcached.pid -t 1 -vv

Leave a Reply

Your email address will not be published. Required fields are marked *

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