By Guus , 7 April 2007

Drupal uses GD, a library to manipulate images. The operating system of my webserver is OpenBSD, and I recently upgraded to OpenBSD 4.0. The upgrade went fine, except for GD: I couldn't upgrade it. I would always get the following error message: lib not found freetype.13.1.

It turns out that OpenBSD now comes with a new version of GD, which requires the freetype library. The only supported way to install that on OpenBSD is by installing xbase.tgz, the X-Windows libraries. I don't use X-Windows and it's not exactly a clean solution to install 10 MB of code to get a single library to work, but it helped. After a reboot of the server GD now works under OpenBSD 4.0.

Here's the error message I used to get:

pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/php5-gd-5.1.4-no_x11.tgz
Can't install ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/php5-gd-5.1.4-no_x11.tgz: lib not found freetype.13.1
Even by looking in the dependency tree:
gettext-0.14.5p1, jpeg-6bp3, expat-2.0.0, t1lib-5.1.0p0, php5-core-5.1.4p1, libiconv-1.9.2p3, png-1.2.12p0, libxml-2.6.26
Maybe it's in a dependent package, but not tagged with @lib ?
(check with pkg_info -K -L)
If you are still running 3.6 packages, update them.

Topic
By Guus , 6 April 2007

a classic Americanism for a know-all who, like others of his type, often knows less than he thinks he does or would like us to think he does

By Guus , 6 April 2007

A double-wide manufactured home (also called mobile home).

By Guus , 6 April 2007

used (informally) to mean a small amount of liquid, especially Scotch whisky

By Guus , 6 April 2007

rugged and uneven

By Guus , 6 April 2007

a chimera is an animal that has two or more different populations of genetically distinct cells that originated in different zygotes

By Guus , 5 April 2007

an iron-bearing, high-silica, flint-like rock

By Guus , 5 April 2007

money (slang)