Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Instalacja php-5.0.3 na apache 1.3.33
Forum PHP.pl > Forum > Serwery WWW > Apache
slammer
gdy wpisuje komenda

# make

wywala mi takie coś
Kod
gcc  -Iext/libxml/ -I/root/php-5.0.0/ext/libxml/ -DPHP_ATOM_INC -I/root/php-5.0.0/include -I/root/php-5.0.0/main -I/root/php-5.0.0 -I/root/php-5.0.0/Zend -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/pgsql/include  -I/root/php-5.0.0/TSRM  -g -O2  -c /root/php-5.0.0/ext/libxml/libxml.c -o ext/libxml/libxml.o  && echo > ext/libxml/libxml.lo
In file included from /root/php-5.0.0/Zend/zend_API.h:26,
                 from /root/php-5.0.0/main/php.h:38,
                 from /root/php-5.0.0/ext/libxml/libxml.c:28:
/root/php-5.0.0/Zend/zend_modules.h:34: error: array type has incomplete element type
/root/php-5.0.0/Zend/zend_modules.h:35: error: array type has incomplete element type
/root/php-5.0.0/Zend/zend_modules.h:36: error: array type has incomplete element type
/root/php-5.0.0/Zend/zend_modules.h:37: error: array type has incomplete element type
/root/php-5.0.0/Zend/zend_modules.h:38: error: array type has incomplete element type
make: *** [ext/libxml/libxml.lo] Błąd 1


Macie może jakiś pomysł? Używam Fedora Core 5, pgsql... jeśli komuś pomoże to instalacje przeprowadzam wg książki "PHP5 zaawansowane programowanie" winksmiley.jpg
dr_bonzo
5.0.0 czy 5.0.3? wez najnowza 5.0.4 lub nawet 5.1.2

Jak wyglada ./configure?
slammer
Instalacje rozpoczynam od zainstalowania PostgreSQL-8.1.3 następnie instaluje biblioteki:
ZLib-1.2.3
libJPEG-6b
libPNG-1.2.10
Expat-2.0.0
Freetype-2.1.10
LibXML-2.6.23
LibXSLT-1.1.15
do tej pory wszystko ok. Następnie daje # ./configure w katalogu apache_1.3.33 nic więcej z nim nie robię tylko wchodze do katalogu php-5.0.3 wpisuje:
# ./configure -with-apache=../apache_1.3.33 -with-libxml-dir=/usr/local/lib -with-gd -with-gettext -without-mysql -with-pgsql -enable-sockets -with-jpeg-dir=/usr/local/lib -with-png-dir=/usr/local/lib -with-zlib-dir=/usr/local/lib -enable-gd-native-ttf -with-freetype-dir=/usr/local/lib -with-xmlrpc -with-dom -enable-xslt -with-expat-dir=/usr/local/lib -with-xsl
nie wywala błędu i dopiero jak daje make to wyskakuje to:
Kod
gcc  -Iext/libxml/ -I/root/php-5.0.0/ext/libxml/ -DPHP_ATOM_INC -I/root/php-5.0.0/include -I/root/php-5.0.0/main -I/root/php-5.0.0 -I/root/php-5.0.0/Zend -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/pgsql/include  -I/root/php-5.0.0/TSRM  -g -O2  -c /root/php-5.0.0/ext/libxml/libxml.c -o ext/libxml/libxml.o  && echo > ext/libxml/libxml.lo
In file included from /root/php-5.0.0/Zend/zend_API.h:26,
                from /root/php-5.0.0/main/php.h:38,
                from /root/php-5.0.0/ext/libxml/libxml.c:28:
/root/php-5.0.0/Zend/zend_modules.h:34: error: array type has incomplete element type
/root/php-5.0.0/Zend/zend_modules.h:35: error: array type has incomplete element type
/root/php-5.0.0/Zend/zend_modules.h:36: error: array type has incomplete element type
/root/php-5.0.0/Zend/zend_modules.h:37: error: array type has incomplete element type
/root/php-5.0.0/Zend/zend_modules.h:38: error: array type has incomplete element type
make: *** [ext/libxml/libxml.lo] Błąd 1
dr_bonzo
Wystarczylo poguglowac 2 min:
http://forums.fedoraforum.org/archive/index.php/t-59224.html

1. masz gcc w wersji 4?

2. uzyj NAJNOWSZEJ wersji php.
slammer
hehe no racja użyłem nowszej wersji ale nie najnowszej... dziwne na 5.1.2 miałem to samo, a na 5.1.0 wszystko działa. Teraz mam kolejny juz chyba ostatni problem bo to ostatnia czynność. Gdy zainstaluje php wchodze do katalogu apache_1.3.33 i wpisuje:
# ./configure -prefix=/usr/local/apache -activate-module=src/modules/php5/libphp5.a
po czym wywala mi błąd:
Kod
Configuring for Apache, Version 1.3.33
+ using installation path layout: Apache (config.layout)
configure:Error: invalid option '-prefix=/usr/local/apache'






EDIT:
nieaktualne juz wiem gdzie robiłem błąd winksmiley.jpg miało być
# ./configure --prefix=/usr/local/apache --activate-module=src/modules/php5/libphp5.a


EDIT2:
Super zainstalowałem to nareszcie winksmiley.jpg jak to mówią do trzech razy sztuka!
DZIKI ZA POMOC!

pozdrawiam
slammer
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.