Installing Bio::DB::Sam from CPAN

Bio::DB::Sam is Lincoln Stein's BioPerl API to the SamTools package.

Installing via CPAN might skip a necessary question that will cause it to fail.

cpan> install Bio::DB::Sam
...
...
DIED. FAILED tests 1-93
Failed 93/93 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/01sam.t 2 512 93 186 200.00% 1-93
Failed 1/1 test scripts, 0.00% okay. 93/93 subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 2
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force


Navigate to where CPAN has downloaded the gz ffile
A closer examination reveals that Build.PL file wants to know where the SamTools header files are located.

Please enter the location of the bam.h and compiled libbam.a files:

I have no idea how to pass these arguments using CPAN. I would just avoid this method of installation. Do the local build instead.

Comments

  1. Hey Jerm,

    Mark Jensen figured out a way to install Bio::DB::Sam via CPAN.
    Here's his writeup.

    Not sure it's that much easier than doing the local build you suggest, but I thought it might be worth passing on nonetheless...

    ReplyDelete
  2. Its just a shame that 3 years later same problem arise..

    ReplyDelete

Post a Comment

Popular Posts