problem gdlib no_ttf

101 views
Skip to first unread message

Abraham C

unread,
May 6, 2016, 3:53:52 AM5/6/16
to Circos
Hi, I write this because I have try all that have reed in this foro and in others, I just try many thing and I still can make circos run well 

I just install the folder of CIRCOS in /usr/local/gentools/circos-0.69-2/ and the path were added in .bash_profile, then I install all modules, when I test it, all looks well:

$ circos -modules 

ok       1.38 Carp

ok       0.38 Clone

ok       2.61 Config::General

ok       3.62 Cwd

ok      2.154 Data::Dumper

ok       2.55 Digest::MD5

ok       2.85 File::Basename

ok       3.62 File::Spec::Functions

ok     0.2304 File::Temp

ok       1.51 FindBin

ok       0.39 Font::TTF::Font

ok       2.56 GD

ok        0.2 GD::Polyline

ok       2.45 Getopt::Long

ok       1.14 IO::File

ok      0.415 List::MoreUtils

ok       1.45 List::Util

ok       0.01 Math::Bezier

ok     1.9997 Math::BigFloat

ok       0.07 Math::Round

ok       0.08 Math::VecStat

ok       1.03 Memoize

ok    1.53_01 POSIX

ok       1.23 Params::Validate

ok       1.68 Pod::Usage

ok       2.01 Readonly

ok 2016020301 Regexp::Common

ok       2.64 SVG

ok       1.19 Set::IntSpan

ok     1.6611 Statistics::Basic

ok       2.51 Storable

ok       1.20 Sys::Hostname

ok       2.03 Text::Balanced

ok       0.59 Text::Format

ok     1.9733 Time::HiRes



so I just download an example circos-tutorials-0.67


and a move to /Users/mynamecount/Downloads/circos-tutorials-0.67/tutorials/2/2/


and the try: 


$ circos -conf circos.conf


*** CIRCOS ERROR ***


      cwd: /Users/mynamecount/Downloads/circos-tutorials-0.67/tutorials/2/2


      command: /usr/local/gentools/circos-0.69-2/bin/circos -conf circos.conf


  There was a problem with True Type font support. Circos could not render text

  from the font file


      /usr/local/gentools/circos-0.69-2/bin/../fonts/modern/cmunbi.otf


  Please check that gd (system graphics library) and GD (Perl's interface to gd)

  are compiled with True Type support.


  On UNIX systems, try


      gdlib-config --all


  and look for GD_FREETYPE in the 'features' line and -lfreetype in the 'libs'

  line. If these are there, it's likely that your Perl GD module needs

  recompiling.


  For help in installing libgd and/or GD, see


      http://www.perlmonks.org/?node_id=621579


  If you are having trouble debugging this error, first read the best practices

  tutorial for helpful tips that address many common problems


      http://www.circos.ca/documentation/tutorials/reference/best_practices


  The debugging facility is helpful to figure out what's happening under the

  hood


      http://www.circos.ca/documentation/tutorials/configuration/debugging


  If you're still stumped, get support in the Circos Google Group. Please

  include this error and all your configuration and data files.


      http://groups.google.com/group/circos-data-visualization


  Stack trace:

 at /usr/local/genetools/circos-0.69-2/bin/../lib/Circos/Error.pm line 423.

Circos::Error::fatal_error("font", "no_ttf", "/usr/local/genetools/circos-0.69-2/bin/../fonts/modern/cmunbi"...) called at /usr/local/genetools/circos-0.69-2/bin/../lib/Circos/Font.pm line 192

Circos::Font::get_label_size("font_file", "/usr/local/genetools/circos-0.69-2/bin/../fonts/modern/cmunbi"..., "size", 10, "text", "abc123") called at /usr/local/genetools/circos-0.69-2/bin/../lib/Circos/Font.pm line 243

Circos::Font::sanity_check() called at /usr/local/genetools/circos-0.69-2/bin/../lib/Circos.pm line 721

Circos::run("Circos", "_argv", "-conf circos.conf", "configfile", "circos.conf", "_cwd", "/Users/Abraham/Downloads/circos-tutorials-0.67/tutorials/2/2") called at /usr/local/genetools/circos-0.69-2/bin/circos line 529



then I try:



gdlib-config --all


GD library  2.0.35

includedir: /usr/local/include

cflags:     -I/usr/local/include

ldflags:     -L/usr/local/lib  -L/opt/local/lib  -L/usr/X11/lib

libs:       -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng -lz  -liconv

libdir:     /usr/local/lib

features:   GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON

dhcp-udb31:2 Abraham$ circos -conf circos.conf 




well maybe I have not a some correct libs, I just have try many times with different options and for me it is no posible just to make a test with one examples that come with circos-0.69-2/examples



$ ./run

at /usr/local/gentools/circos-0.69-2/bin/../lib/Circos/Error.pm line 423.

Circos::Error::fatal_error("font", "no_ttf", "/usr/local/genetools/circos-0.69-2/example/../fonts/modern/cm"...) called at /usr/local/gentools/circos-0.69-2/bin/../lib/Circos/Font.pm line 192

Circos::Font::get_label_size("font_file", "/usr/local/gentools/circos-0.69-2/example/../fonts/modern/cm"..., "size", 10, "text", "abc123") called at /usr/local/gentools/circos-0.69-2/bin/../lib/Circos/Font.pm line 243

Circos::Font::sanity_check() called at /usr/local/gentools/circos-0.69-2/bin/../lib/Circos.pm line 721

Circos::run("Circos", "configfile", "etc/circos.conf", "debug_group", "summary,timer", "_cwd", "/usr/local/genetools/circos-0.69-2/example", "_argv", ...) called at ../bin/circos line 529





some advice ??????!!!!!!!



Xinshuai Qi

unread,
Sep 2, 2016, 9:30:50 PM9/2/16
to Circos
exactly same error here. Any suggestions?

exactly same error here. Any suggestions? 

miao cai

unread,
Dec 14, 2020, 5:19:11 AM12/14/20
to Circos
I got the same error here. Is there any suggestions for this error? Thanks.
Reply all
Reply to author
Forward
0 new messages