PDA

Показать полную графическую версию : Установка GD.pm


saimoz
22-01-2010, 11:47
Добрый день, всем!

Не могли бы вы помочь?
У меня возникла проблема с установкой модуля GD.pm
Установил все необходимые библиотеки для этого, а именно: libgd, libpng, freetype, zlib.
При инсталляции модуля GD.pm, возникли ошибки. Они приведены ниже в текстовом файле.

BuGfiX
22-01-2010, 13:05
4. The %&#&#! thing doesn't compile at all! I'm getting lots of compile errors!

Does "make" fail with messages like these?

GD.xs: In function 'newDynamicCtx':
GD.xs:440: error: 'gdIOCtx' has no member named 'gd_free'
GD.xs: In function 'gd_cloneDim':
GD.xs:460: error: 'struct gdImageStruct' has no member named 'alpha'
GD.xs:460: error: 'struct gdImageStruct' has no member named 'alpha'
GD.xs:466: error: 'struct gdImageStruct' has no member named 'thick'
GD.xs:466: error: 'struct gdImageStruct' has no member named 'thick'

If so, then you may have an old gd.h include file located somewhere
in your system include path. Please find it and remove it. A typical
location is /usr/include/gd.h. The way to make sure you are removing
the correct gd.h is to run "gdlib-config --cflags" to find out where
the current gd.h lives:

% gdlib-config --cflags
-I/usr/local/include

This tells you that /usr/local/include/gd.h is the correct gd.h. Please
find and remove any other gd.h.


http://cpansearch.perl.org/src/LDS/GD-2.44/README




© OSzone.net 2001-2012