Estoy tratando de usar imagefttext. Y necesito tener instalada la biblioteca GD y/o freetype. Soy nuevo en este tipo de cosas, ¿cómo puedo instalar la biblioteca GD y freetype en Linux?
Para CentOS/RedHat/Fedora :
sudo yum install php-gdPara Debian/ubuntu :
sudo apt-get install php5-gdPara CentOS/RedHat/Fedora :
sudo yum install freetype*Para Debian/ubuntu :
sudo apt-get install freetype*No olvide reiniciar apache después de eso (si está usando apache):
CentOS/RedHat/Fedora :
sudo /etc/init.d/httpd restartO
sudo service httpd restartDebian/ubuntu :
sudo /etc/init.d/apache2 restartO
sudo service apache2 restartLas cosas son bastante más simples a menos que se hagan confusas.
Para instalar la biblioteca GD en Ubuntu
sudo apt-get install php5-gdPara instalar Freetype en Ubuntu
sudo apt-get install libfreetype6-dev:i386Para CentOS: al instalar php-gd, debe especificar la versión. Lo arreglé ejecutando: sudo yum install php55-gd