[Solaris 9] PHP 5 compileerprobleem

Pagina: 1
Acties:

  • cashewnut
  • Registratie: Januari 2002
  • Laatst online: 09-11-2025
Mensen,

Ik heb Apache 2.0.53 gecompileerd en geinstalleerd op een Solaris 9 machine. Ging allemaal perfect. Nu wil ik ook PHP 5.0.3 compileren, maar steeds als ik dit doe:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-pgsql

krijg ik deze foutmelding:

checking for Apache 2.0 handler-module support via DSO through APXS... expr: non-numeric argument
configure: error: You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)

Apache staat toch echt in /usr/local/apache2 en is gecompileerd met --enable-mods-shared=all en --enable-so. /usr/local/apache2/bin/apxs bestaat ook.. waarom denkt PHP dan toch dat ik Apache 1.3 heb?

  • igmar
  • Registratie: April 2000
  • Laatst online: 31-01 23:50

igmar

ISO20022

De melding van 'expr: non-numeric argument' suggereert dat de solaris expr iets niet snapt. Ik zou in dit geval even een bugreport indienen, want het is duidelijk geen probleem wat jij veroorzaakt.

  • cashewnut
  • Registratie: Januari 2002
  • Laatst online: 09-11-2025
Ok, ik ben er uit. In het script stond onder andere dit:

code:
1
2
3
4
5
6
7
8
9
10
APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`

  if test "$APACHE_VERSION" -le 2000000; then
    { echo "configure: error: You have enabled Apache 2 support while your server is 
Apache 1.3.  Please use the appropiate switch --with-apxs
 (without the 2)" 1>&2; exit 1; }
  elif test "$APACHE_VERSION" -lt 2000040; then
    { echo "configure: error: Please note that Apache version >= 2.0.40 is required." 
1>&2; exit 1; }
  fi


Dus ik ga kijken wat $4, $5 en $6 dan mogen zijn:
echo $4 $5 $6

output:
usr local apache2

Na de check uit-gecommend te hebben liep configure zonder problemen door. Maar wel heel irri, je verwacht dit soort fouten niet in een stabiele PHP-versie.

  • usr-local-dick
  • Registratie: September 2001
  • Niet online
5.0.3 is inderdaad nogal buggy