libgd and GD problem (installing Circos)

clear explaination

1. install libgd-2.1.0

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
wget https://github.com/libgd/libgd/releases/download/gd-2.1.0/libgd-2.1.0.tar.gz
tar zxvf libgd-2.1.0.tar.gz
cd libgd-2.1.0
./configure
...
** Configuration summary for libgd 2.1.0:
Support for Zlib: yes
Support for PNG library: yes
Support for JPEG library: yes
Support for VPX library: no
Support for TIFF library: yes
Support for Freetype 2.x library: yes
Support for Fontconfig library: yes
Support for Xpm library: no
Support for pthreads: yes
...

If Freetype and Fontconfig are missing, you would have to download, configure, make and install them like this:

1
2
3
4
5
6
7
8
9
10
11
12
13
curl -O http://www.ijg.org/files/jpegsrc.v8d.tar.gz
tar -xzvf jpegsrc.v8d.tar.gz
cd jpeg-8d
./configure --prefix=/path/to/jpeg-8d
make
make install (or "sudo make install")
curl -O ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.2.tar.gz
tar -xzvf libpng-1.6.2.tar.gz
cd libpng-1.6.2.tar.gz
./configure --prefix=/path/to/jpeg-8d
make
make install (or "sudo make install")

Finish install libgd

1
2
3
./configure --prefix=/path/to/jpeg-8d
make
make install(or "sudo make install")

2. install GD manually (perl module)

1
2
3
4
5
6
curl -O http://www.cpan.org/authors/id/L/LD/LDS/GD-2.49.tar.gz (if curl fails copy and past on your browser)
tar -xzvf GD-2.49.tar.gz
cd GD-2.49
GD-2.49$ perl Makefile.PL
GD-2.49$ make
GD-2.49$ sudo make install