Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Kompilacja PHP - problem
Forum PHP.pl > Forum > PHP
forke
Witam. Kompiluje php z takimi opcjami:
./configure 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-bz2' '--with-curl=' '--with-db3' '--with-dom' '--with-exec-dir=/usr/bin' '--with-gd' '--with-gdbm' '--with-gettext' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '--with-regex=system' '--with-ttf' '--with-zlib' '--with-layout=GNU' '--enable-debugger' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-wddx' '--with-mysql' '--with-unixODBC' '--without-oracle' '--without-oci8' '--with-xml'


potem wpisuje make
i chwile sie kompiluje, a potem wyskakuje blad:
ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam':
/usr/local/php/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam' is dangerous, better use `mkstemp'
i kompilacja sie konczy. Co zrobic questionmark.gif
kwiateek
1. htp://www.mysql.com - pobierz najnowsza wersje
2. zainstaluj /usr/local/mysql
3. zmien opcje konfiguracyjne na:
Kod
./configure --with-mysql=/usr/local/mysql --with-gd=/usr/local

--with-png-dir=/downloads/libpng-1.2.5

--with-zlib-dir=/downloads/zlib-1.1.4  

--with-apxs=/usr/local/apache/bin/apxs

--with-jpeg-dir=/downloads/jpeg-6b --with-mail --enable-track-vars
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.