bioconda-recipes: circos missing modules

Hi all - I have been trying to load up the circos package (which I know is notorious for its problems) and am running into some problems that I can’t fix.

Simply enough - after doing a standard conda install circos it installs everything it needs to, but the installed version of circos can’t find the GD package:

macintoshs-mbp:~ tosh$ circos -modules
ok       1.38 Carp
ok       0.38 Clone
ok       2.61 Config::General
ok       3.73 Cwd
ok      2.158 Data::Dumper
ok       2.54 Digest::MD5
ok       2.85 File::Basename
ok       3.73 File::Spec::Functions
ok     0.2304 File::Temp
ok       1.51 FindBin
ok       0.39 Font::TTF::Font
missing            GD
missing            GD::Polyline
ok       2.45 Getopt::Long
ok       1.16 IO::File
ok      0.428 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 POSIX
ok       1.26 Params::Validate
ok       1.64 Pod::Usage
ok       1.04 Readonly
ok 2016060801 Regexp::Common
ok       2.64 SVG
ok       1.19 Set::IntSpan
ok     1.6611 Statistics::Basic
ok       2.53 Storable
ok       1.20 Sys::Hostname
ok       2.03 Text::Balanced
ok       0.59 Text::Format
ok     1.9728 Time::HiRes

If you just run circos to see what the problem is - you get the following

macintoshs-mbp:~ tosh$ circos

*** REQUIRED MODULE(S) MISSING OR OUT-OF-DATE ***

You are missing one or more Perl modules, require newer versions, or some modules failed to load. Use CPAN to install it as described in this tutorial

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

missing GD
  error Can't load '/Users/tosh/miniconda3/lib/perl5/site_perl/5.22.0/darwin-thread-multi-2level/auto/GD/GD.bundle' for module GD: dlopen(/Users/tosh/miniconda3/lib/perl5/site_perl/5.22.0/darwin-thread-multi-2level/auto/GD/GD.bundle, 1): Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib  Referenced from: /Users/tosh/miniconda3/lib/perl5/site_perl/5.22.0/darwin-thread-multi-2level/auto/GD/GD.bundle  Reason: image not found at /Users/tosh/miniconda3/lib/perl5/5.22.0/darwin-thread-multi-2level/DynaLoader.pm line 197. at (eval 25) line 1.Compilation failed in require at (eval 25) line 1.
missing GD::Polyline
  error Attempt to reload GD.pm aborted.Compilation failed in require at /Users/tosh/miniconda3/lib/perl5/site_perl/5.22.0/darwin-thread-multi-2level/GD/Polyline.pm line 45.

I believe the issue occurs due to the fact that there is a line in there that still tries to search for a global element (/usr/local/opt/libpng/lib/libpng16.16.dylib) that is (correctly) not there.

Bioconda has been such a good tool - and I’m sure I could install circos from scratch and go from there, but it would be great if I could continue to have all of my packages in this pipeline come from bioconda.

Any ideas of how to fix this? Thanks a lot for your help

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (13 by maintainers)

Most upvoted comments

I’m having the same issue on Linux systems too.

On one of the systems, I fixed it by changing into $CONDA_PREFIX/lib and linking libwebp as follows:

ln -s libwebp.so.6 libwebp.so.7

For some reason libgd was expecting version 7 if this lib instead of 6.


Another linux system with this issue is Travis: https://travis-ci.org/umccr/umccrise/builds/453904242 Getting the same error output there:

circos -modules 
ok       1.38 Carp
ok       0.41 Clone
ok       2.61 Config::General
ok       3.73 Cwd
ok      2.167 Data::Dumper
ok       2.55 Digest::MD5
ok       2.85 File::Basename
ok       3.67 File::Spec::Functions
ok     0.2304 File::Temp
ok       1.51 FindBin
ok       0.39 Font::TTF::Font
missing            GD
missing            GD::Polyline
ok       2.49 Getopt::Long
ok       1.16 IO::File
ok      0.428 List::MoreUtils
ok     1.4602 List::Util
ok       0.01 Math::Bezier
ok   1.999806 Math::BigFloat
ok       0.07 Math::Round
ok       0.08 Math::VecStat
ok    1.03_01 Memoize
ok       1.76 POSIX
ok       1.26 Params::Validate
ok       1.69 Pod::Usage
ok       1.04 Readonly
ok 2017060201 Regexp::Common
ok       2.84 SVG
ok       1.19 Set::IntSpan
ok     1.6611 Statistics::Basic
ok       2.62 Storable
ok       1.20 Sys::Hostname
ok       2.03 Text::Balanced
ok       0.59 Text::Format
ok     1.9741 Time::HiRes

circos -v
*** REQUIRED MODULE(S) MISSING OR OUT-OF-DATE ***
You are missing one or more Perl modules, require newer versions, or some modules failed to load. Use CPAN to install it as described in this tutorial
http://www.circos.ca/documentation/tutorials/configuration/perl_and_modules
missing GD
  error Can't load '/home/travis/miniconda/envs/umccrise_purple/lib/site_perl/5.26.2/x86_64-linux-thread-multi/auto/GD/GD.so' for module GD: libwebp.so.7: cannot open shared object file: No such file or directory at /home/travis/miniconda/envs/umccrise_purple/bin/../lib/5.26.2/x86_64-linux-thread-multi/DynaLoader.pm line 193. at (eval 27) line 1.Compilation failed in require at (eval 27) line 1.
missing GD::Polyline
  error Attempt to reload GD.pm aborted.Compilation failed in require at /home/travis/miniconda/envs/umccrise_purple/lib/site_perl/5.26.2/x86_64-linux-thread-multi/GD/Polyline.pm line 45.

The environment on Travis:

circos-0.69.6        | 25.9 MB   | ########## | 100% 
perl-dynaloader-1.25 | 3 KB      | ########## | 100% 
perl-try-tiny-0.30   | 16 KB     | ########## | 100% 
perl-set-intspan-1.1 | 22 KB     | ########## | 100% 
samtools-1.9         | 483 KB    | ########## | 100% 
perl-xml-parser-2.44 | 163 KB    | ########## | 100% 
r-base-3.4.1         | 23.0 MB   | ########## | 100% 
perl-exporter-tiny-1 | 21 KB     | ########## | 100% 
perl-carp-1.38       | 14 KB     | ########## | 100% 
perl-gd-2.69         | 112 KB    | ########## | 100% 
fontconfig-2.12.6    | 943 KB    | ########## | 100% 
perl-math-round-0.07 | 9 KB      | ########## | 100% 
xorg-libxfixes-5.0.3 | 16 KB     | ########## | 100% 
cairo-1.14.12        | 1.3 MB    | ########## | 100% 
perl-module-implemen | 9 KB      | ########## | 100% 
perl-config-general- | 39 KB     | ########## | 100% 
xorg-inputproto-2.3. | 18 KB     | ########## | 100% 
ldc-1.11.0           | 32.3 MB   | ########## | 100% 
perl-params-validate | 44 KB     | ########## | 100% 
perl-digest-perl-md5 | 11 KB     | ########## | 100% 
libgd-2.2.5          | 871 KB    | ########## | 100% 
libgcc-ng-7.2.0      | 6.1 MB    | ########## | 100% 
giflib-5.1.4         | 74 KB     | ########## | 100% 
perl-time-hires-1.97 | 24 KB     | ########## | 100% 
pcre-8.41            | 243 KB    | ########## | 100% 
perl-regexp-common-2 | 93 KB     | ########## | 100% 
perl-test-more-1.001 | 3 KB      | ########## | 100% 
xorg-recordproto-1.1 | 7 KB      | ########## | 100% 
perl-extutils-makema | 151 KB    | ########## | 100% 
gsl-2.2.1            | 2.6 MB    | ########## | 100% 
java-jdk-8.0.112     | 4 KB      | ########## | 100% 
openjdk-8.0.112      | 47.7 MB   | ########## | 100% 
perl-list-moreutils- | 43 KB     | ########## | 100% 
xorg-libxtst-1.2.3   | 30 KB     | ########## | 100% 
perl-exporter-5.72   | 13 KB     | ########## | 100% 
bioconductor-copynum | 1.7 MB    | ########## | 100% 
perl-module-runtime- | 14 KB     | ########## | 100% 
libpng-1.6.34        | 304 KB    | ########## | 100% 
perl-parent-0.236    | 5 KB      | ########## | 100% 
perl-font-ttf-1.06   | 200 KB    | ########## | 100% 
perl-scalar-list-uti | 36 KB     | ########## | 100% 
perl-data-dumper-2.1 | 34 KB     | ########## | 100% 
perl-io-string-1.08  | 10 KB     | ########## | 100% 
r-rcurl-1.95_4.11    | 765 KB    | ########## | 100% 
perl-autoloader-5.74 | 4 KB      | ########## | 100% 
readline-7.0         | 381 KB    | ########## | 100% 
perl-clone-0.41      | 14 KB     | ########## | 100% 
perl-math-vecstat-0. | 9 KB      | ########## | 100% 
perl-pathtools-3.73  | 49 KB     | ########## | 100% 
tk-8.6.8             | 3.1 MB    | ########## | 100% 
harfbuzz-1.7.6       | 807 KB    | ########## | 100% 
glib-2.56.2          | 4.6 MB    | ########## | 100% 
perl-number-format-1 | 20 KB     | ########## | 100% 
sambamba-0.6.8       | 4.1 MB    | ########## | 100% 
perl-math-bezier-0.0 | 8 KB      | ########## | 100% 
perl-encode-2.88     | 2.1 MB    | ########## | 100% 
perl-list-moreutils- | 28 KB     | ########## | 100% 
xorg-libxi-1.7.9     | 44 KB     | ########## | 100% 
perl-statistics-basi | 32 KB     | ########## | 100% 
perl-svg-2.84        | 37 KB     | ########## | 100% 
perl-xsloader-0.24   | 8 KB      | ########## | 100% 
hmftools-purple-2.16 | 27.4 MB   | ########## | 100% 
libtiff-4.0.9        | 521 KB    | ########## | 100% 
hmftools-cobalt-1.5  | 13.9 MB   | ########## | 100% 
libwebp-0.5.2        | 688 KB    | ########## | 100% 
xorg-libxt-1.1.5     | 352 KB    | ########## | 100% 
pango-1.40.14        | 1012 KB   | ########## | 100% 
xorg-fixesproto-5.0  | 8 KB      | ########## | 100% 
perl-text-format-0.5 | 15 KB     | ########## | 100% 
ncurses-6.1          | 1.2 MB    | ########## | 100% 
perl-readonly-1.04   | 15 KB     | ########## | 100% 
freetype-2.8.1       | 789 KB    | ########## | 100% 

Vlad

its working on linux, I am guess you are on osx. osx builds of perl-gd are currently set to skip, so I am guessing the need to be re-built to pick up the new libs.