NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

mfe_'s avatar
mfe_
Tutor
Dec 05, 2012

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 found in the readynas duo was located in /c/home/admin/support/apxs.

But when viewing the content of apxs I seems that the paths are set wrong. Anyway, when using "../php-5.3.10/configure --with-apxs2=/c/home/admin/support/apxs --host=sparc-linux I'll get

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


Have I to correct all paths? Is there a newer apxs file available? Or is there an other workaround to get the php compiled with using the apache version of the readynas duo? greetings

14 Replies

Replies have been turned off for this discussion

NETGEAR Academy

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

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More