Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install GD library and freetype on Linux

I'm trying to use imagefttext. And I need to have GD library and/or freetype installed. I'm new to this kind of stuffs, How can I install GD library and freetype in Linux ?

like image 387
C A Mc Avatar asked Jan 19 '14 11:01

C A Mc


1 Answers

Installing GD :

For CentOS / RedHat / Fedora :

sudo yum install php-gd 

For Debian/ubuntu :

sudo apt-get install php5-gd 

Installing freetype :

For CentOS / RedHat / Fedora :

sudo yum install freetype* 

For Debian/ubuntu :

sudo apt-get install freetype* 

Don't forget to restart apache after that (if you are using apache):

CentOS / RedHat / Fedora :

sudo /etc/init.d/httpd restart 

Or

sudo service httpd restart 

Debian/ubuntu :

sudo /etc/init.d/apache2 restart 

Or

sudo service apache2 restart 
like image 59
Alireza Fallah Avatar answered Sep 19 '22 16:09

Alireza Fallah