Hellihello Zusammnen,
cc1: out of memory allocating 64674804 bytes after a total of 3317760 bytes
make: *** [ext/date/lib/parse_date.lo] Error 1Tja, die Meldung sagt dir, dass das Kompilieren etwa 64 MB Speicher haben wollte, was scheiterte.
Nun habe ich das Ding nochmal versucht zu maken. Vielleicht, weil es sich um einen virtuellen Server handelt, hat es jetzt geklappt, weil aus irgendeinem Grund Speicherplatz frei war (RAM? SWAP?). Das make install (inkl. u.g. Befehle inkl. Fehlermeldungen) war insofern erfolgreich, als phpinfo() nun PHP 5.2.4 anzeigt und json_encode() funktioniert (Wahnsinn, ich weiß... (;-).
Warum die Einbindung der Extension nicht funktioniert hat, bleibt mir ein Rätsel, das mit der jetzigen Konfiguration aber nicht mehr ausgetestet werden kann, gelle?
Sollte hier einer vorbeidödeln, der mir Anhaltspunkte für folgende Medlungen geben könnte, wär ich dankbar, fürs Verständnis:
Don't forget to run 'make test'.
// mach ich also
h1028341:/robert/php-5.2.4 # make test
//ging dann aber nicht, kommt:
Build complete.
Don't forget to run 'make test'.
ERROR: Cannot run tests without CLI sapi.
//nun, also make install:
h1028341:/robert/php-5.2.4 # make install
Installing PHP SAPI module: apache2handler
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apache2/build/libtool' libphp5.la /usr/lib/apache2-prefork
/usr/share/apache2/build/libtool --mode=install cp libphp5.la /usr/lib/apache2-prefork/
cp .libs/libphp5.so /usr/lib/apache2-prefork/libphp5.so
cp .libs/libphp5.lai /usr/lib/apache2-prefork/libphp5.la
libtool: install: warning: remember to run `libtool --finish /robert/php-5.2.4/libs'
chmod 755 /usr/lib/apache2-prefork/libphp5.so
// alles gut, aber:
apxs:Error: Activation failed for custom /etc/apache2/httpd2-prefork.conf file..
apxs:Error: At least one `LoadModule' directive already has to exist..
make: *** [install-sapi] Error 1
// dies problem gabs sonst aber auch meine ich, bzw. diese fehlermeldung. scheint aber den apache2 nicht zu jucken, und das php auch nicht.
// weil das oben angesagt war, dann dieses mir rätselhafte libtool --finish etc.
h1028341:/robert/php-5.2.4 # libtool --finish /robert/php-5.2.4/libs
PATH="$PATH:/sbin" ldconfig -n /robert/php-5.2.4/libs
----------------------------------------------------------------------
Libraries have been installed in:
/robert/php-5.2.4/libs
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the -LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the
LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the LD\_RUN\_PATH' environment variable during linking - use the
-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
h1028341:/robert/php-5.2.4 #
was macht denn das?
Dank und Gruß,
frankx