Compiling google’s mod_pagespeed for nginx

This post is intended mainly to Zyxel NSA310 users. Prerequisites See first https://adrhc.go.ro/blog/common-commands-when-building/ for building environment, x.sh script and other things not defined here. Before starting do declare the environment variables specified to the link above. Environment & other preparations […]

Compiling protobuf-2.5.0 on synology

# repairing some system bugs mkdir -p ~/temp/opt/i686-linux-gnu/lib mv -v /opt/i686-linux-gnu/lib/libpthread-0.10.so ~/temp/opt/i686-linux-gnu/lib ln -s /lib/libpthread.so.0 /opt/i686-linux-gnu/lib/libpthread-0.10.so mkdir -p /usr/local/i686-linux-gnu/i686-linux-gnu/lib ln -s /opt/lib/libstdc++.la /usr/local/i686-linux-gnu/i686-linux-gnu/lib/libstdc++.la export CPPFLAGS=”-march=i686″ export CXXFLAGS=”-march=i686″ cd ~/compile wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz tar xvzf protobuf-2.5.0.tar.gz cd ~/compile/protobuf-2.5.0 ~/x.sh ffpg-no-m4 ./configure –prefix=$HOME/apps […]

Compiling PHP 7.0.0RC2

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=php NEW_BUILD_VER1=7.0.0RC2 NEW_BUILD_VER=$NEW_BUILD_VER1-zts MYSQL_BUILD_NAME_AND_VER=mysql-5.6.25 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$MYSQL_BUILD_NAME_AND_VER-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 sed -i s/”HAVE_GD_XPM\s1″/”HAVE_GD_XPM […]

Compiling Perl 5.22.0

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. #search http://search.cpan.org/ for modules #see http://www.thegeekstuff.com/2008/09/how-to-install-perl-modules-manually-and-using-cpan-command/ #Installing Perl modules from CPAN (didn’t work): http://perl.about.com/od/packagesmodules/qt/perlcpan.htm #environment […]

Compiling mysql 5.6.24

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting declare the environment variables specified at the link above. NEW_BUILD_NAME=mysql #NEW_BUILD_VER=5.6.24.large NEW_BUILD_VER=5.6.24.small+innodb NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd $HOME/compile rm -r $HOME/compile/$NEW_BUILD_NAME_AND_VER […]

Compiling nginx 1.9.2

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=nginx NEW_BUILD_VER=1.9.1 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd /ffp/home/root/compile/$NEW_BUILD_NAME_AND_VER ~/x.sh ffpg-all ./configure […]

Compiling boost 1.46.0

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=boost NEW_BUILD_VER=1.46.0 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd ~/compile wget http://sourceforge.net/projects/boost/files/boost/1.46.0/boost_1_46_0.tar.gz/download tar […]

Compiling LuaJIT-2.0.3

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=LuaJIT NEW_BUILD_VER=2.0.3 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd /ffp/home/root/compile/LuaJIT-2.0.3 ~/x.sh ffpg sed […]

Compiling and using luarocks

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=luarocks NEW_BUILD_VER=2.2.2 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd /ffp/home/root/compile/luarocks-2.2.2 ~/x.sh ffpg ./configure […]

Compiling nginx 1.9.0

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=nginx NEW_BUILD_VER=1.9.0 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=1 cd /ffp/home/root/compile/nginx-1.9.0 ~/x.sh ffpg ./configure […]

Compiling boost 1.49.0

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=boost NEW_BUILD_VER=1.49.0 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd ~/compile wget http://sourceforge.net/projects/boost/files/boost/1.49.0/boost_1_49_0.tar.gz/download tar […]

Compiling anyterm-1.1.29

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. cd ~/compile wget http://anyterm.org/download/anyterm-1.1.29.tbz2 tar jxf anyterm-1.1.29.tbz2 cd anyterm-1.1.29 ~/x.sh ffpg NEW_BUILD_NAME=anyterm NEW_BUILD_VER=1.1.29 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls […]

Compiling mysql 5.6.23

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=mysql NEW_BUILD_VER=5.6.23 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd $HOME/compile rm -r $HOME/compile/mysql-5.6.23 […]

Compiling PHP 5.6.x

#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=php NEW_BUILD_VER1=5.6.13 NEW_BUILD_VER=$NEW_BUILD_VER1-zts MYSQL_BUILD_NAME_AND_VER=mysql-5.6.25 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$MYSQL_BUILD_NAME_AND_VER-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd ~/compile wget […]

Compiling serf

#necesar lui SVN client NEW_BUILD_NAME=serf NEW_BUILD_VER=1.3.6 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME-* ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME-* NEW_BUILD_NR=0 cd ~/compile svn co http://serf.googlecode.com/svn/tags/1.3.6/ $NEW_BUILD_NAME_AND_VER cd $NEW_BUILD_NAME_AND_VER #~/x.sh ffpg find . -type f \( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/g {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/g […]