Perlnika
Perlnika

Reputation: 5066

automatic response to cpanm prompt

I am installing perl module Bio::DB::Sam.

Shortly, installer asks me to locate bam.h and libbam.a files:

--> Working on Bio::DB::Sam
Fetching http://www.cpan.org/authors/id/L/LD/LDS/Bio-SamTools-1.39.tar.gz ... OK
Configuring Bio-SamTools-1.39 ... Please enter the location of the bam.h and compiled libbam.a files: 

I know where these files are beforehand and I would like to automatize the process. Something like:

echo "/Users/al/programs/samtools-0.1.19" | cpanm Bio::DB::Sam

or

echo "/Users/alice/programs/samtools-0.1.19" | xargs cpanm Bio::DB::Sam

Basically, I want to install this module without any interaction with user. Thanks for suggestions. Everything I have tried so far still asks for location of these files.

Upvotes: 1

Views: 138

Answers (1)

tobyink
tobyink

Reputation: 13664

It looks like you can use the SAMTOOLS environment variable to specify a location. See the Build.PL file that handles the module's installation.

Upvotes: 3

Related Questions