/ Forside / Teknologi / Operativsystemer / Linux / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Linux
#NavnPoint
o.v.n. 11177
peque 7911
dk 4814
e.c 2359
Uranus 1334
emesen 1334
stone47 1307
linuxrules 1214
Octon 1100
10  BjarneD 875
php --with-gd
Fra : John K. Jensen


Dato : 10-04-02 14:32

Hej

Nogen som har prøvet at compile php med gd?
(apache 1.3.24 & php 4.1.2)

../configure --with-mysql --with-apache=../apache_1.3.24/ --enable-track-vars
--with-gd=/usr/src/gd-1.8.4/ --with-jpeg-dir=/usr/src/jpeg-6b/ --with-png-d
ir=/usr/src/libpng-1.2.1/

giver følgende output i config.log:

configure:19310: checking whether to include GD support
configure:19508: checking whether to enable truetype string function in gd
configure:19561: checking for the location of libjpeg
configure:19610: checking for jpeg_read_header in -ljpeg
configure:19631: gcc -o conftest -g -O2 conftest.c -ljpeg
-L/lib
-lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt 1>&5
/usr/bin/ld: cannot find -ljpeg
collect2: ld returned 1 exit status
configure: failed program was:
#line 19620 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char jpeg_read_header();

int main() {
jpeg_read_header()
; return 0; }


Mvh

John



 
 
Dennis Hansen (10-04-2002)
Kommentar
Fra : Dennis Hansen


Dato : 10-04-02 16:50

John K. Jensen wrote:

> Hej
>
> Nogen som har prøvet at compile php med gd?
> (apache 1.3.24 & php 4.1.2)
>
> ./configure --with-mysql --with-apache=../apache_1.3.24/
> --enable-track-vars
> --with-gd=/usr/src/gd-1.8.4/ --with-jpeg-dir=/usr/src/jpeg-6b/
> --with-png-d
> ir=/usr/src/libpng-1.2.1/

Hej,

Hvis du er frisk på at hente en nyere version af GD, ( som du sikkert ikke
vil blive ked af ) virkede dette for mig PHP 4.1.2 og GD 2.0.1
------------------------------
GD-2.0.1 and PHP

0. Make sure you have libjpeg and libpng installed
1. Grab GD-2.0.1.
http://www.boutell.com/gd/http/gd-2.0.1.tar.gz
2. tar zxvf gd-2.0.1.tar.gz
3. cd gd-2.0.1
4. Edit the Makefile and change the LIBS line to be:
LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm
5. make libgd.a (don't need to do a make install)
6. Now build PHP using these flags:
--with-gd=/home/<you>/gd-2.0.1
--with-freetype-dir=/usr
--enable-gd-native-ttf (for PHP 4.0.6 leave off trailing 'f')
--enable-gd-imgstrttf
--with-jpeg-dir=/usr
--with-png-dir=/usr
--with-zlib
------------------------

Mvh
Dennis




John K. Jensen (10-04-2002)
Kommentar
Fra : John K. Jensen


Dato : 10-04-02 20:28

Hej Dennis

"Dennis Hansen" <dennis__hansen@hotmail.com> wrote in message
news:3cb45f62$0$58742$edfadb0f@dspool01.news.tele.dk...
> Hej,
>
> Hvis du er frisk på at hente en nyere version af GD, ( som du sikkert ikke
> vil blive ked af ) virkede dette for mig PHP 4.1.2 og GD 2.0.1
> ------------------------------
> GD-2.0.1 and PHP


../configure --with-mysql --with-apache=../apache_1.3.24/ --enable-track-vars
--with-gd=/usr/src/gd-2.0.1/ --with-jpeg-dir=/usr/src/jpeg-6b/ --with-png-d
ir=/usr/src/libpng-1.2.1/ --with-zlib

giver:

checking whether to include GD support... yes
checking whether to enable truetype string function in gd... no
checking for the location of libjpeg... yes
checking for jpeg_read_header in -ljpeg... no
configure: error: Problem with libjpeg.(a|so). Please check config.log for
more information.


selvom jeg laver --with-jpeg-dir=/usr/src/jpeg-6b/ hvori libjpeg.a findes.

config.log
---------------
configure:19610: checking for jpeg_read_header in -ljpeg
configure:19631: gcc -o conftest -g -O2 conftest.c -ljpeg
-L/lib
-lz -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt 1>&5
/usr/bin/ld: cannot find -ljpeg
collect2: ld returned 1 exit status
configure: failed program was:
#line 19620 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char jpeg_read_header();

int main() {
jpeg_read_header()
; return 0; }
--------------------



Mvh

John




Dennis Hansen (10-04-2002)
Kommentar
Fra : Dennis Hansen


Dato : 10-04-02 22:31

John K. Jensen wrote:

> ./configure --with-mysql --with-apache=../apache_1.3.24/
> --enable-track-vars
> --with-gd=/usr/src/gd-2.0.1/ --with-jpeg-dir=/usr/src/jpeg-6b/
> --with-png-d
> ir=/usr/src/libpng-1.2.1/ --with-zlib
>
> giver:
>
> checking whether to include GD support... yes
> checking whether to enable truetype string function in gd... no
> checking for the location of libjpeg... yes
> checking for jpeg_read_header in -ljpeg... no
> configure: error: Problem with libjpeg.(a|so). Please check config.log for
> more information.

Prøv at køre ./configure med de options som jeg skrev, hvad giver det af
output ?

MVh
Dennis


Søg
Reklame
Statistik
Spørgsmål : 177558
Tips : 31968
Nyheder : 719565
Indlæg : 6408893
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste