FreeBSD 9.2: problem installing gd for directadmin requirement (with solution)

hejazee

New member
Joined
Jan 28, 2012
Messages
1
I tries to install directadmin with custombuild 2 on a fresh FreeBSD 9.2.
PHP can not compile due to miss of gd library.
In fact, in freebsd 9, we can not install gd using this command:
pkg_add -r gd
As described in this page:
http://help.directadmin.com/item.php?id=354

(It returns a not found error. the file is not available on freebsd mirrors.)

Instead I tried to compile gd using ports system and I was successful (I think).

cd /usr/ports/graphics/fpc-libgd
make install
 
I tries to install directadmin with custombuild 2 on a fresh FreeBSD 9.2.
PHP can not compile due to miss of gd library.
In fact, in freebsd 9, we can not install gd using this command:
pkg_add -r gd
As described in this page:
http://help.directadmin.com/item.php?id=354

(It returns a not found error. the file is not available on freebsd mirrors.)

Instead I tried to compile gd using ports system and I was successful (I think).

cd /usr/ports/graphics/fpc-libgd
make install

I know I'm late to reply, but for future reference, don't install graphics/fpc-libgd as that will install more junk than needed. "fpc" stands for Free Pascal Compiler, which is not used or needed on a web server.

Instead, do the following to install graphics/gd properly (assuming your /usr/ports is up to date):
Code:
# cd /usr/ports/graphics/gd && make install clean

Note: Starting with FreeBSD 10.x, you will be required to use pkgng as pkg_tools is deprecated as of September 1st, 2014.
Code:
# pkg install graphics/gd
 
Back
Top