Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Администрирование *NIX систем > php, gd, libjpeg


Автор: Chuck 23.10.2004, 13:57
Привет!
У меня проблема с библиотекой Jpeg в GD!! В пхп, в линуксе!
Ставлю libjpeg
./configure --enable-static --enable-shared --prefix=/usr
Make
Make test (тест проходит успешно)
Make install

Ставлю libpng
./configure
Make
Make install


Ставлю freetype
./configure
Make
Make install

Затем GD
./configure –-prefix=/usr/local/gd/ --with-jpeg –with-png –with-freetype
make
make install

GD говорит, что jpeg enable, png enable, freetype enable!
Ну и ПХП 4.3.7
./configure --with-mysql --with-gd=/usr/local/gd/ --with-apxs=/usr/local/apache/bin/apxs --with-jpeg-dir --with-png-dir --with-freetype-dir --with-zlib-dir
make
make install

Перегружаю апачу!!!
Говорю phpinfo();

И вот что!
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
WBMP Support enabled

Как видите, jpeg –ом и не пахнет, вопрос, почему???

Автор: Chuck 23.10.2004, 14:51
РАЗОБРАЛСЯ!!!!
Привет!
У меня проблема с библиотекой Jpeg в GD!! В пхп, в линуксе!
Ставлю libjpeg
./configure --enable-static --enable-shared --prefix=/usr
Make
Make test (тест проходит успешно)
Make install

Ставлю libpng
./configure
Make
Make install


Ставлю freetype
./configure
Make
Make install

Затем GD
./configure –-prefix=/usr/local/gd/ --with-jpeg –with-png –with-freetype
make
make install

GD говорит, что jpeg enable, png enable, freetype enable!
Ну и ПХП 4.3.7
Код
Обязательно надо
rm -rfR config.cache

./configure --with-mysql --with-gd=/usr/local/gd/ --with-apxs=/usr/local/apache/bin/apxs --with-jpeg-dir --with-png-dir --with-freetype-dir --with-zlib-dir
make
make install

Перегружаю апачу!!!

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)