УкраїнськаEnglishmRussian
Вхід/Новий
У темі багато повідомлень

Webvision problem in Debian and Ubuntu


Автор Повідомлення
Повідомлення створено: 05. 08. 2009 [16:52]
roman
Roman Savochenko
Moderator
Contributor
Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 3750
This problem early detected on Debian and libgd2. LibGD2 use fontconfig for fonts search but can not open base fonts 'Arial' and 'Times'. Perhaps fontconfig configuration broken. In this case image not draw. I am corrected this for draw only trends without text, but text write it is Debian system bug.

Learn, learn and learn better than work, work and work.
Повідомлення створено: 06. 08. 2009 [14:23]
Unaie
Unai Ezta
Автор теми
Зареєстрован(а) с: 30.06.2009
Повідомлення: 42
roman wrote:

This problem early detected on Debian and libgd2. LibGD2 use fontconfig for fonts search but can not open base fonts 'Arial' and 'Times'. Perhaps fontconfig configuration broken. In this case image not draw. I am corrected this for draw only trends without text, but text write it is Debian system bug.



SOLVED

The problem in Debian and Ubuntu is that libgd2 is built without fontconfig.

How to solve:

>apt-get source libgd2-noxpm //Download the source
>cd libgd2-2.0.36~rc1~dfsg //Enter Source Dir
>apt-get build-dep ligd2-noxpm //Download Dependencies

Edit debian/rules
delete --whithout-fontconfig in line:
DEB_CONFIGURE_FLAGS_noxpm = --without-x --without-xpm --without-fontconfig

And then built the new packages:

dpkg-buildpackage -rsudo -uc -b


And that's all, trends and text in webvision are OK in Debian and Ubuntu (Debian Based and the most popular Linux in western Europe I think).






2402