NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
mfe_
Dec 05, 2012Tutor
Advice compiling php
Hello, I'm trying to compile php from source by using gcc 4.6.0 on the readynas duo sparc. I read the php.net manual which says I have to set the parameter --with-apxs2= The only apxs file I fou...
mfe_
Jan 13, 2013Tutor
Thanks Stefan.
I successfully compiled php-5.4.9 with your apxs2 btw. the unpacked apache2-prefork-dev_2.2.6-2.netgear2_sparc.
I used the following configure
../php-5.4.9/configure '--with-config-file-path=/etc/php5/cli/php.ini' '--with-config-file-scan-dir=/etc/php5/cli/conf.d' '--enable-calendar' '--enable-bcmath' '--with-pgsql=/usr/local/pgsql' '--exec-prefix=/usr/lib/apache2' '--with-apxs2=/c/home/admin/support/apxs2' '--host=sparc-linux' '--build=sparc-linux' '--with-gnu-ld' '--prefix=/usr' '--mandir=/usr/share/man' '--without-iconv' 'build_alias=sparc-linux' 'host_alias=sparc-linux'
I also had to create a symlink in /etc/apache2/httpd.conf -> /etc/frontview/apache2.httpd.conf
greetings
[Edit]
If you want to compile an older version of php for example 5.3.10 you run into the issue, that configure will include ieefph.h into main/php_config.h and unix.h which results in an compiler error because this files doesn't exists on the readynas duo. Just uncomment unix.h and ieeefph.h in nano main/php_config.h and it should work.
I successfully compiled php-5.4.9 with your apxs2 btw. the unpacked apache2-prefork-dev_2.2.6-2.netgear2_sparc.
I used the following configure
../php-5.4.9/configure '--with-config-file-path=/etc/php5/cli/php.ini' '--with-config-file-scan-dir=/etc/php5/cli/conf.d' '--enable-calendar' '--enable-bcmath' '--with-pgsql=/usr/local/pgsql' '--exec-prefix=/usr/lib/apache2' '--with-apxs2=/c/home/admin/support/apxs2' '--host=sparc-linux' '--build=sparc-linux' '--with-gnu-ld' '--prefix=/usr' '--mandir=/usr/share/man' '--without-iconv' 'build_alias=sparc-linux' 'host_alias=sparc-linux'
I also had to create a symlink in /etc/apache2/httpd.conf -> /etc/frontview/apache2.httpd.conf
greetings
[Edit]
If you want to compile an older version of php for example 5.3.10 you run into the issue, that configure will include ieefph.h into main/php_config.h and unix.h which results in an compiler error because this files doesn't exists on the readynas duo. Just uncomment unix.h and ieeefph.h in nano main/php_config.h and it should work.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!