Trouble installing GD

4,373 views
Skip to first unread message

Circos 1

unread,
Jun 1, 2012, 11:50:43 AM6/1/12
to Circos
I have all perl modules installed and tested, with the exception of
GD, GD::Image and GD::Polyline. Here is the output when i try to
install GD:

cpan[1]> install GD
Reading '/Users/B/.cpan/Metadata'
Database was generated on Thu, 31 May 2012 16:39:03 GMT
Running install for module 'GD'
Running make for L/LD/LDS/GD-2.46.tar.gz
Checksum for /Users/B/.cpan/sources/authors/id/L/LD/LDS/GD-2.46.tar.gz
ok
Scanning cache /Users/B/.cpan/build for sizes
............................................................................DONE

CPAN.pm: Building L/LD/LDS/GD-2.46.tar.gz

Notice: Type perl Makefile.PL -h for command-line option summary.

**UNRECOVERABLE ERROR**
Could not find gdlib-config in the search path. Please install libgd
2.0.28 or higher.
If you want to try to compile anyway, please rerun this script with
the option --ignore_missing_gd.
Warning: No success on command[/Users/B/perl5/perlbrew/perls/
perl-5.14.2/bin/perl Makefile.PL]
LDS/GD-2.46.tar.gz
/Users/B/perl5/perlbrew/perls/perl-5.14.2/bin/perl Makefile.PL --
NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read metadata file. Falling back to other methods to
determine prerequisites
Failed during this command:
LDS/GD-2.46.tar.gz : writemakefile NO '/
Users/B/perl5/perlbrew/perls/perl-5.14.2/bin/perl Makefile.PL'
returned status 3328


I have gdlib-config installed because when I locate the file, I see
the following output:
/Users/B/config/gdlib-config
/Users/B/gd-2.0.28/config/gdlib-config.in

dhcpbsrb15-228:~ B$ echo $PATH
/Users/B/perl5/perlbrew/bin:/Users/B/perl5/perlbrew/perls/perl-5.14.2/
bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin




Any suggestions?

Paulo Nuin

unread,
Jun 1, 2012, 2:02:38 PM6/1/12
to circos-data-...@googlegroups.com
Is this Mac?

the config dir doesn't seem to be in your path. How did you install the GD library (not the Perl one). Is it compiled locally, does it have png, jpg support etc?

Cheers
Paulo
> --
> You received this message because you are subscribed to the Google Groups "Circos" group.
> To post to this group, send email to circos-data-...@googlegroups.com.
> To unsubscribe from this group, send email to circos-data-visual...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/circos-data-visualization?hl=en.
>

Circos 1

unread,
Jun 1, 2012, 2:16:37 PM6/1/12
to Circos
Sorry, I'm new to perl and learning through trial and error based on
the circos installation instructions and google.
Yes, it is a Mac.

I tried to copy the config dir to my path. This is the output when I
used echo $PATH:
/Users/B/perl5/perlbrew/bin:/Users/B/perl5/perlbrew/perls/perl-5.14.2/
bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/B/
config/gdlib-config

I'm still getting the same error message when trying to install GD:
Could not find gdlib-config in the search path. Please install libgd
2.0.28 or higher.

It does have png support, but not jpg (I thought circos doesn't
require jpg).

Paulo Nuin

unread,
Jun 1, 2012, 2:40:17 PM6/1/12
to circos-data-...@googlegroups.com
Hi

OK, thanks. The main question would be how you installed the GD library. Did you compile, used some other method (like Mac-ports, etc)? The gd library should be in your lib directory.

Another option before you try anything is install Perl's GD manually:

http://search.cpan.org/dist/GD/

download, unzip and type

perl Makefile.pl

and follow the instructions.

Cheers
Paulo

Circos 1

unread,
Jun 1, 2012, 3:01:30 PM6/1/12
to Circos
I just realized I wasn't in the GD-2.46 directory when I tried "perl
Makefile.pl."
After typing perl Makefile.pl in the GD-2.46 directory, here is my
output:

dhcpbsrb15-228:~ B$ cd GD-2.46
dhcpbsrb15-228:GD-2.46 B$ perl Makefile.pl

Circos 1

unread,
Jun 1, 2012, 2:56:20 PM6/1/12
to Circos
Thanks for your time and forgive my ignorance.

I went to the link you provided, downloaded GD-2.46. Here is my
output:

dhcpbsrb15-228:~ B$ tar xvfz /Users/B/Downloads/GD-2-2.46.tar.gz
x GD-2.46/
x GD-2.46/Makefile.PL
x GD-2.46/qd.pl
x GD-2.46/typemap
x GD-2.46/META.yml
x GD-2.46/GD/
x GD-2.46/GD/Simple.pm
x GD-2.46/GD/Image.pm.PLS
x GD-2.46/GD/Polyline.pm
x GD-2.46/GD/Group.pm
x GD-2.46/GD/Polygon.pm
x GD-2.46/bdf_scripts/
x GD-2.46/bdf_scripts/bdftogd
x GD-2.46/bdf_scripts/README
x GD-2.46/bdf_scripts/bdf2gdfont.PLS
x GD-2.46/README.QUICKDRAW
x GD-2.46/README
x GD-2.46/demos/
x GD-2.46/demos/fonttest
x GD-2.46/demos/brushes.pl
x GD-2.46/demos/transform.pl
x GD-2.46/demos/shapes.pl
x GD-2.46/demos/tile.png
x GD-2.46/demos/polyline.pl
x GD-2.46/demos/fills.pl
x GD-2.46/demos/ttf.pl
x GD-2.46/demos/font_list.png
x GD-2.46/demos/truetype_test
x GD-2.46/demos/copies.pl
x GD-2.46/demos/gd_example.cgi
x GD-2.46/demos/polys.pl
x GD-2.46/GD.pm
x GD-2.46/GD.xs
x GD-2.46/README.unix
x GD-2.46/MANIFEST
x GD-2.46/ChangeLog
x GD-2.46/t/
x GD-2.46/t/test.out.7.png
x GD-2.46/t/test.out.10.png-3
x GD-2.46/t/test.out.8.png-3
x GD-2.46/t/test.out.9.png-2
x GD-2.46/t/test.out.4.png-1
x GD-2.46/t/test.out.8.png-5
x GD-2.46/t/test.out.8.png
x GD-2.46/t/test.out.5.png-1
x GD-2.46/t/test.out.10.gif
x GD-2.46/t/test.out.10.jpeg
x GD-2.46/t/test.out.10.png
x GD-2.46/t/test.out.2.gif
x GD-2.46/t/test.out.1.png
x GD-2.46/t/test.out.9.png-1
x GD-2.46/t/Polyline.t
x GD-2.46/t/tile.png
x GD-2.46/t/test.out.2.png-1
x GD-2.46/t/test.out.8.png-4
x GD-2.46/t/test.out.8.png-1
x GD-2.46/t/test.out.10.png-1
x GD-2.46/t/test.out.3.gif
x GD-2.46/t/test.out.3.png-1
x GD-2.46/t/test.out.4.jpeg
x GD-2.46/t/test.out.3.jpeg
x GD-2.46/t/tile.gif
x GD-2.46/t/tile.jpeg
x GD-2.46/t/frog.jpg
x GD-2.46/t/test.out.4.png
x GD-2.46/t/test.out.9.png
x GD-2.46/t/test.out.7.gif
x GD-2.46/t/test.out.8.jpeg
x GD-2.46/t/test.out.5.jpeg
x GD-2.46/t/test.out.2.png
x GD-2.46/t/test.out.6.jpeg
x GD-2.46/t/test.out.3.png
x GD-2.46/t/test.out.7.jpeg
x GD-2.46/t/test.out.9.gif
x GD-2.46/t/test.out.4.gif
x GD-2.46/t/test.out.5.png
x GD-2.46/t/test.out.8.png-2
x GD-2.46/t/test.out.2.jpeg
x GD-2.46/t/palettemap.png
x GD-2.46/t/test.out.7.png-1
x GD-2.46/t/test.out.8.gif
x GD-2.46/t/test.out.9.jpeg
x GD-2.46/t/GD.t
x GD-2.46/t/test.out.4.png-2
x GD-2.46/t/test.out.8.png-6
x GD-2.46/t/test.out.6.png
x GD-2.46/t/test.out.5.gif
x GD-2.46/t/frog.xpm
x GD-2.46/t/Generic.ttf
x GD-2.46/t/test.out.10.png-2
x GD-2.46/t/test.out.6.gif
x GD-2.46/t/test.out.6.png-1
dhcpbsrb15-228:~ B$ perl Makefile.pl
Can't open perl script "Makefile.pl": No such file or directory

Not sure what to do now.

Paulo Nuin

unread,
Jun 1, 2012, 3:06:16 PM6/1/12
to circos-data-...@googlegroups.com
Hi

You now need to

./configure
make
sudo make install

this will install your GD in the correct location. Did you try this already?

Cheers
Paulo

Circos 1

unread,
Jun 1, 2012, 3:13:58 PM6/1/12
to Circos
Just tried your suggestion:

dhcpbsrb15-228:~ B$ cd GD-2.46
dhcpbsrb15-228:GD-2.46 B$ ./configure
-bash: ./configure: No such file or directory

Paulo Nuin

unread,
Jun 1, 2012, 3:18:17 PM6/1/12
to circos-data-...@googlegroups.com
Sorry, didn't notice that your list was the Perl's GD, and I might have overlooked your other message.


Follow the instructions here:

http://kempwire.com/tips/installing-gd-graphics-library-on-mac-os-x.html

and the install manually the Perl's version by using the

perl Makefile.pl

command.

Cheers
Paulo

Circos 1

unread,
Jun 1, 2012, 3:26:41 PM6/1/12
to Circos
Thanks again.

It looks like some of the packages to download from that page are not
working correctly:

dhcpbsrb15-228:~ B$ curl -O http://superb-east.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.20.tar.gz

curl: (6) Could not resolve host: superb-east.dl.sourceforge.net;
nodename nor servname provided, or not known
dhcpbsrb15-228:~ B$ curl -O ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
% Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total Spent
Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:01:15
--:--:-- 0
curl: (7) couldn't connect to host

The others work fine.

Paulo Nuin

unread,
Jun 1, 2012, 3:28:38 PM6/1/12
to circos-data-...@googlegroups.com
Hi

You will need libpng for it.

Try from here, don't know if it's the same

http://www.libpng.org/pub/png/libpng.html

Cheers
Paulo

Circos 1

unread,
Jun 1, 2012, 3:42:34 PM6/1/12
to Circos
It looks like I already have libpng.

dhcpbsrb15-228:~ B$ locate libpng
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.6.sdk/usr/X11/include/libpng12
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.6.sdk/usr/X11/include/libpng12/png.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.6.sdk/usr/X11/include/libpng12/pngconf.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib/libpng.3.44.0.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib/libpng.3.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib/libpng.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib/libpng12.0.44.0.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib/libpng12.0.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib/libpng12.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.7.sdk/usr/X11/include/libpng15
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.7.sdk/usr/X11/include/libpng15/png.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.7.sdk/usr/X11/include/libpng15/pngconf.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.7.sdk/usr/X11/include/libpng15/pnglibconf.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libpng.3.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libpng.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libpng12.0.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libpng15.15.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libpng15.dylib
/System/Library/Tcl/8.4/Img1.4/libpngtcl1.4.3.dylib
/System/Library/Tcl/8.5/Img1.4/libpngtcl1.4.3.dylib
/usr/X11/bin/libpng-config
/usr/X11/bin/libpng15-config
/usr/X11/include/libpng15
/usr/X11/include/libpng15/png.h
/usr/X11/include/libpng15/pngconf.h
/usr/X11/include/libpng15/pnglibconf.h
/usr/X11/lib/libpng.3.dylib
/usr/X11/lib/libpng.dylib
/usr/X11/lib/libpng12.0.dylib
/usr/X11/lib/libpng15.15.dylib
/usr/X11/lib/libpng15.dylib
/usr/X11/lib/pkgconfig/libpng.pc
/usr/X11/lib/pkgconfig/libpng15.pc
/usr/X11/share/man/man3/libpng.3.gz
/usr/X11/share/man/man3/libpngpf.3.gz

On Jun 1, 2:28 pm, Paulo Nuin <paulo.n...@gmail.com> wrote:
> Hi
>
> You will need libpng for it.
>
> Try from here, don't know if it's the same
>
> http://www.libpng.org/pub/png/libpng.html
>
> Cheers
> Paulo
>
> On 2012-06-01, at 3:26 PM, Circos 1 wrote:
>
>
>
>
>
>
>
> > Thanks again.
>
> > It looks like some of the packages to download from that page are not
> > working correctly:
>
> > dhcpbsrb15-228:~ B$ curl -Ohttp://superb-east.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.2...
>
> > curl: (6) Could not resolve host: superb-east.dl.sourceforge.net;
> > nodename nor servname provided, or not known
> > dhcpbsrb15-228:~ B$ curl -Oftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
> >>>>>>> To...
>
> read more »

Paulo Nuin

unread,
Jun 1, 2012, 3:48:25 PM6/1/12
to circos-data-...@googlegroups.com
You might, but make sure one of these are located by GD configure, otherwise you won't have png support. They also might not be compatible with the GD source you downloaded.

Paulo

Circos 1

unread,
Jun 1, 2012, 3:53:06 PM6/1/12
to Circos
How can I check for this?
> >>>>>>>>> used echo...
>
> read more »

Paulo Nuin

unread,
Jun 1, 2012, 3:56:30 PM6/1/12
to circos-data-...@googlegroups.com
When you run ./configure inside GD it will tell you. If not, you have to run

./configure --help

to see how can you point to the libs.

Paulo

Circos 1

unread,
Jun 1, 2012, 4:02:19 PM6/1/12
to Circos
Thanks.

What is the difference between gd-2.0.28 (which I have) and GD-2.46?
> >>>>>>>>>> OK, thanks. The main question would be how you installed the GD library. Did you...
>
> read more »

Paulo Nuin

unread,
Jun 1, 2012, 4:05:55 PM6/1/12
to circos-data-...@googlegroups.com
I guess one is a Perl module and the other the actual library.

Paulo

Martin Krzywinski

unread,
Jun 4, 2012, 5:22:53 PM6/4/12
to circos-data-...@googlegroups.com

You can check which options are compiled in your system's gd library by

> gdlib-config --all
GD library  2.0.33
includedir: /usr/include
cflags:     -I/usr/include
ldflags:    -L/usr/lib64
libs:       -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm 
libdir:     /usr/lib64
features:   GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF

Important in the 'features' line are GD_PNG and GD_FREETYPE. 

The Perl module GD is the interface to the system's gd library.

Martin Krzywinski
science + art




>
> read more »

Paulo Nuin

unread,
Jun 4, 2012, 5:24:30 PM6/4/12
to circos-data-...@googlegroups.com
Martin, I posted a short guide on my blog


Hope it is useful for other users in the future.

Paulo

-- 
Paulo Nuin

Martin Krzywinski

unread,
Jun 4, 2012, 5:45:35 PM6/4/12
to circos-data-...@googlegroups.com

Sweet. Thanks. 

I've linked to it from the installation pages



Martin Krzywinski
science + art




Caro

unread,
Mar 5, 2017, 1:44:52 PM3/5/17
to Circos
Hi there

I read all of the posts with problems installing GD.
came to the point:

So now

1
2
srctemp/pierrejoye-gd-libgd-5551f61978e3/src$ make
srctemp/pierrejoye-gd-libgd-5551f61978e3/src$ sudo make install
but I couldn't see either the pierrejoye-gd-libgd-5551f61978e3/src folder, so I tried to find the gd file to download.... the link has moved.
Have now Version GD-2.49

Well, when I type perl Makefile.PL this Error is coming up:

**UNRECOVERABLE ERROR**

Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher.

If you want to try to compile anyway, please rerun this script with the option --ignore_missing_gd.


already installed a version libgd 2.0.28 or higher (-> libgd-2.2.4) so I did it again and still nothing is working.

What do I have to do further? Or what I do wrong?


Would be really happy to finish the installation on my Mac (El Capitan V10.11.6)


To unsubscribe from this group, send email to circos-data-visualization+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Circos" group.
To post to this group, send email to circos-data-...@googlegroups.com.
To unsubscribe from this group, send email to circos-data-visualization+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Circos" group.
To post to this group, send email to circos-data-...@googlegroups.com.
To unsubscribe from this group, send email to circos-data-visualization+unsub...@googlegroups.com.

Martin Krzywinski

unread,
Mar 7, 2017, 6:55:51 PM3/7/17
to circos-data-...@googlegroups.com
When libgd is installed, it also provides gdlib-config, which is a binary that reports paths and installation features of gdlib.

On one of our systems,

> which gdlib-config
/usr/bin/gdlib-config

> gdlib-config --all
GD library  2.0.33
includedir: /usr/include
cflags:     -I/usr/include
ldflags:    -L/usr/lib64
libs:       -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm
libdir:     /usr/lib64
features:   GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF

It's possible that you do not have libgd correctly installed, in some unusual location that is not in your PATH, or are missing the gdlib-config binary.




Martin Krzywinski
science + art



To unsubscribe from this group, send email to circos-data-visualization+unsubsc...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Circos" group.
To post to this group, send email to circos-data-...@googlegroups.com.

To unsubscribe from this group, send email to circos-data-visualization+unsubsc...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Circos" group.
To post to this group, send email to circos-data-...@googlegroups.com.

To unsubscribe from this group, send email to circos-data-visualization+unsubsc...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Circos" group.
To unsubscribe from this group and stop receiving emails from it, send an email to circos-data-visualization+unsub...@googlegroups.com.
To post to this group, send email to circos-data-visualization@googlegroups.com.
Visit this group at https://groups.google.com/group/circos-data-visualization.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages