PHP 4.4.7 i kompilacja

Konfiguracja serwerów, usług, itp.
Elber
Posty: 65
Rejestracja: 04 czerwca 2007, 14:41

PHP 4.4.7 i kompilacja

Post autor: Elber »

Rozpakowałem php 4.4.7, wchodze do katalogu, daje ./configure i mi wywala:

Kod: Zaznacz cały

Debian-40-etch-32-minimal:~/php-4.4.7# ./configure
loading cache ./config.cache
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking whether ln -s works... yes
checking for gawk... no
checking for mawk... mawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2554: lex: command not found
configure: error: cannot find output from lex; giving up
Czego mi tym razem brakuje ??
Rad
Member
Posty: 1208
Rejestracja: 28 czerwca 2006, 15:05

Post autor: Rad »

Elber
Posty: 65
Rejestracja: 04 czerwca 2007, 14:41

Post autor: Elber »

teraz mam:

Kod: Zaznacz cały

Configuring extensions
checking for OpenSSL support... yes
checking for Kerberos support... yes
checking for krb5-config... no
checking for pkg-config... no
checking for OpenSSL version... >= 0.9.6
checking for CRYPTO_free in -lcrypto... yes
checking for SSL_CTX_set_ssl_version in -lssl... yes
checking for PCRE support... yes
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... yes
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
Co mam zrobić?? :(
Rad
Member
Posty: 1208
Rejestracja: 28 czerwca 2006, 15:05

Post autor: Rad »

Przecież dokładnie jest napisane co musisz zrobić, pomyśl trochę...

Zainstaluj bzip2
Elber
Posty: 65
Rejestracja: 04 czerwca 2007, 14:41

Post autor: Elber »

Ale ja mam bzip2:

Kod: Zaznacz cały

Debian-40-etch-32-minimal:~# apt-get install bzip2
Reading package lists... Done
Building dependency tree... Done
bzip2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Debian-40-etch-32-minimal:~#
Rad
Member
Posty: 1208
Rejestracja: 28 czerwca 2006, 15:05

Post autor: Rad »

Spróbuj w takim razie libbz2-dev
Elber
Posty: 65
Rejestracja: 04 czerwca 2007, 14:41

Post autor: Elber »

A teraz:

Kod: Zaznacz cały

checking for the location of libXpm... no
checking for FreeType 1.x support... /usr/lib
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
configure: error: libjpeg.(a|so) not found.
:( :( :(
Rad
Member
Posty: 1208
Rejestracja: 28 czerwca 2006, 15:05

Post autor: Rad »

Może powiem ci, jak się postępuje w takich przypadkach :)
1. Patrzymy, jaki wyskoczył błąd - w tym przypadku brak libjpeg
2. Wpisujemy aptitude search libjpeg.
3. Patrzymy co nam wyskoczyło - w wynikach jest kilka libjpeg. Nas interesują pakiety -dev.
4. O! Jest pakiet libjpeg-dev, instalujemy go.
Rad
Member
Posty: 1208
Rejestracja: 28 czerwca 2006, 15:05

Post autor: Rad »

I dodam jeszcze, że jak nie potrafisz sobie poradzić z kompilacją to przecież zawsze możesz zainstalować php (w innej wersji, ale zawsze) z repozytorium.
Elber
Posty: 65
Rejestracja: 04 czerwca 2007, 14:41

Post autor: Elber »

Hmm dobra dzięki znalazłem tego libjpeg i zainstalowałem ale dajej jest ten błąd:

Kod: Zaznacz cały

configure: error: libpng.(a|so) not found.
Zainstalowałem wszystko co tam znalazło i daje :( A z repo nie chce chce ręcznie :)
ODPOWIEDZ