{"id":2128,"date":"2015-09-08T23:53:55","date_gmt":"2015-09-08T21:53:55","guid":{"rendered":"https:\/\/adrhc.go.ro\/wordpress\/?p=2128"},"modified":"2017-10-07T17:26:47","modified_gmt":"2017-10-07T15:26:47","slug":"compiling-php-7-0-0rc2","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/compiling-php-7-0-0rc2\/","title":{"rendered":"Compiling PHP 7.0.0RC2"},"content":{"rendered":"<pre class=\"brush:bash shell\">\r\n#See https:\/\/adrhc.go.ro\/wordpress\/common-commands-when-building\/ for building environment, x.sh script and other things not defined here.\r\n#Before starting do declare the environment variables specified to the link above.\r\n\r\nNEW_BUILD_NAME=php\r\nNEW_BUILD_VER1=7.0.0RC2\r\nNEW_BUILD_VER=$NEW_BUILD_VER1-zts\r\nMYSQL_BUILD_NAME_AND_VER=mysql-5.6.25\r\nNEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$MYSQL_BUILD_NAME_AND_VER-$NEW_BUILD_VER\r\nls -l \/tmp\/$NEW_BUILD_NAME-*\r\nls -l ~\/ffp_0.7_armv5\/packages\/$NEW_BUILD_NAME-*\r\nNEW_BUILD_NR=0\r\n\r\nsed -i s\/\"HAVE_GD_XPM\\s1\"\/\"HAVE_GD_XPM 0\"\/g configure\r\nsed -i s\/\"lxmlrpc\\s\"\/\"lxmlrpc-epi \"\/g configure\r\n\r\n.\/configure --prefix=\/ffp --enable-re2c-cgoto=shared,\/ffp --with-apxs2=\/ffp\/opt\/apache-2.2.29-worker\/bin\/apxs --enable-fpm --with-config-file-path=\/ffp\/etc\/php.ini --with-config-file-scan-dir=\/ffp\/etc --with-libxml-dir=\/ffp --with-openssl=shared,\/ffp --with-pcre-regex=\/ffp --with-zlib=shared,\/ffp --enable-bcmath --with-bz2=shared,\/ffp --enable-calendar --with-curl=shared,\/ffp --with-enchant=shared,\/ffp --enable-exif --enable-ftp --with-gd=shared,\/ffp --with-jpeg-dir=\/ffp --with-png-dir=\/ffp --with-freetype-dir=\/ffp --enable-gd-native-ttf --enable-gd-jis-conv --with-gettext=shared,\/ffp --with-gmp=shared,\/ffp --with-mhash=shared,\/ffp --enable-intl --with-icu-dir=\/ffp --enable-mbstring --with-mcrypt=shared,\/ffp --with-mysql-sock=\/ffp\/var\/run\/mysql\/mysql.sock --with-mysqli=shared,\/ffp\/bin\/mysql_config --enable-opcache --enable-pcntl --with-pdo-mysql=shared,\/ffp --with-readline=shared,\/ffp --enable-shmop --enable-soap --enable-sockets --enable-wddx --with-libexpat-dir=\/ffp --with-xmlrpc=shared,\/ffp --with-iconv=shared,\/ffp --with-xsl=\/ffp --enable-zip --with-pear --with-pcre-dir=\/ffp --with-openssl-dir=\/ffp --with-zlib-dir=\/ffp --with-iconv-dir=\/ffp --with-webp-dir=\/ffp --enable-opcache-file\r\n\r\nsed -i s\/\"lxmlrpc\\s\"\/\"lxmlrpc-epi \"\/g Makefile\r\nsed -i s\/\"define\\sHAVE_GD_XPM\\s0\"\/\"undef HAVE_GD_XPM\"\/g main\/php_config.h\r\n\r\n.\/Makefile\r\nBUILD_PHPDBG = $(LIBTOOL) --mode=link $(CC) -export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_PHPDBG_OBJS) $(EXTRA_LIBS) $(PHPDBG_EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -lreadline -o $(BUILD_BINARY)\r\nBUILD_CGI = $(LIBTOOL) --mode=link $(CC) -export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_FASTCGI_OBJS) $(PHP_CGI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -lreadline -o $(SAPI_CGI_PATH)\r\n\r\n#INSTALL\r\nrm -r $HOME\/temp\/$NEW_BUILD_NAME_AND_VER\r\nmkdir -p $HOME\/temp\/$NEW_BUILD_NAME_AND_VER\/ffp\/opt\/apache-2.2.29-worker\/conf\/\r\ncp -v \/ffp\/opt\/apache-2.2.29-worker\/conf\/httpd.conf $HOME\/temp\/$NEW_BUILD_NAME_AND_VER\/ffp\/opt\/apache-2.2.29-worker\/conf\/\r\nINSTALL_ROOT=$HOME\/temp\/$NEW_BUILD_NAME_AND_VER make install\r\n#if after make you are asked for running 'libtool --finish ...' then do it:\r\nlibtool --finish libs\r\n#You'll get something like this:\r\n#Libraries have been installed in:\r\n#   \/ffp\/home\/root\/compile\/$NEW_BUILD_NAME_AND_VER\/libs -> here you'll find libphp5.so and libphp5.la\r\nrm -vr $HOME\/temp\/$NEW_BUILD_NAME_AND_VER\/ffp\/opt\/apache-2.2.29-worker\/conf\/\r\ncd $HOME\/temp\/$NEW_BUILD_NAME_AND_VER\r\nls -l \/tmp\/php-*\r\nls -l ~\/ffp_0.7_armv5\/packages\/php-*\r\n#for the files found below remove the -n or\/and -q php's call options:\r\ngrep -nr \"\\s\\(-q\\|-n\\)\\s\" ffp\/bin\/\r\nsed -i s\/\"\\s-q\"\/\"\"\/ ffp\/bin\/peardev\r\nsed -i s\/\"\\s-q\"\/\"\"\/ ffp\/bin\/pear\r\nsed -i s\/\"\\s-q\"\/\"\"\/ ffp\/bin\/pecl\r\nsed -i s\/\"\\s-n\"\/\"\"\/ ffp\/bin\/pecl\r\nsed -i s\/\"\\!\\\/bin\"\/\"\\!\\\/ffp\\\/bin\"\/ ffp\/bin\/pecl\r\nsed -i s\/\"\\!\\\/bin\"\/\"\\!\\\/ffp\\\/bin\"\/ ffp\/bin\/pear\r\nsed -i s\/\"\\!\\\/bin\"\/\"\\!\\\/ffp\\\/bin\"\/ ffp\/bin\/peardev\r\nmakepkg $NEW_BUILD_NAME-$MYSQL_BUILD_NAME_AND_VER $NEW_BUILD_VER 0\r\ncp -v \/tmp\/php-*.txz $HOME\/ffp_0.7_armv5\/packages\/\r\nfunpkg -i $HOME\/ffp_0.7_armv5\/packages\/$NEW_BUILD_NAME_AND_VER-arm-0.txz\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#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\/&#8221;HAVE_GD_XPM\\s1&#8243;\/&#8221;HAVE_GD_XPM [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/compiling-php-7-0-0rc2\/#more-2128\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Compiling PHP 7.0.0RC2<\/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":[112],"class_list":["post-2128","post","type-post","status-publish","format-standard","hentry","category-compiling-from-source","category-linux","category-nsa310","tag-php"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/2128","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=2128"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/2128\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=2128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=2128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=2128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}