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_
Dec 12, 2012Tutor
Hi,
thanks for the replies. I'm able to compile php php-5.4.9 without the parameter --with-apxs2=/c/home/admin/support/apxs with my gcc 4.6.0 + upgraded tools.
Configuring php with ../php-5.3.10/configure --exec-prefix=/usr/lib/apache2 --with-apxs2=/c/home/admin/support/apxs --host=sparc-linux will break at:
As we know Perl is installed on the readynas duo. In addition I figured out that apache2 was compiled with enable-so (checked with apache2 -l). The message "sh: line 1: /usr/local/apache2/bin/envvars: No such file or directory" is confusing.
I edited /homes/admin/support/apxs and changed the paths to:
An other problem is that printing perl variables in the apxs file will be suppressed. So maybe I have to create a seperated perl script to dump "
The config.log last line is:
and doenst support any more information :(
Another idea whould be to create the missing folders and copy the apache files into these directories? But first I will try to dump the perl variables and look forward.
greetings and best regards
thanks for the replies. I'm able to compile php php-5.4.9 without the parameter --with-apxs2=/c/home/admin/support/apxs with my gcc 4.6.0 + upgraded tools.
Configuring php with ../php-5.3.10/configure --exec-prefix=/usr/lib/apache2 --with-apxs2=/c/home/admin/support/apxs --host=sparc-linux will break at:
[...]
checking for Apache 1.x module support... no
checking whether to enable Apache charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...
Sorry, I cannot run apxs. Possible reasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)
The output of /c/home/admin/support/apxs follows:
sh: line 1: /usr/local/apache2/bin/envvars: No such file or directory
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
apxs:Error: your server binary `/c/home/admin/'..
configure: error: Aborting
As we know Perl is installed on the readynas duo. In addition I figured out that apache2 was compiled with enable-so (checked with apache2 -l). The message "sh: line 1: /usr/local/apache2/bin/envvars: No such file or directory" is confusing.
I edited /homes/admin/support/apxs and changed the paths to:
my $installbuilddir = "/usr/sbin/apache2"; ##"/usr/local/apache2/build";so the paths should be correct. Why is it me telling that the path in "sh: line 1:" / is incorrect? This is a perl script and not a shell script. Is it possible that the error does not occour in the apxs file, because the error is in a shell script on line 1? 0o Or am I searching the error in the wrong file?
##get_config_vars("$installbuilddir/config_vars.mk",\%config_vars);
get_config_vars("/c/home/admin/build/config_vars.mk",\%config_vars);
An other problem is that printing perl variables in the apxs file will be suppressed. So maybe I have to create a seperated perl script to dump "
my $httpd = get_vars("sbindir") . "/" . get_vars("progname");
$httpd = eval qq("$httpd");
$httpd = eval qq("$httpd");
my $envvars = get_vars("sbindir") . "/envvars";
$envvars = eval qq("$envvars");
$envvars = eval qq("$envvars");
".
The config.log last line is:
configure:5271: checking whether to enable Apache charset compatibility option
configure:5438: checking for Apache 2.0 filter-module support via DSO through APXS
configure:6327: checking for Apache 2.0 handler-module support via DSO through APXS
and doenst support any more information :(
Another idea whould be to create the missing folders and copy the apache files into these directories? But first I will try to dump the perl variables and look forward.
greetings and best regards
Related Content
NETGEAR Academy

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