[Bioperl-l] Bioperl version string not picked up by MakeMaker

Jason Stajich jason.stajich at duke.edu
Mon Aug 8 15:24:54 EDT 2005


VERSION_FROM tries to parse the file for the version information, I  
am pretty sure the Bio::Root::Version stuff is for run-time  
initialization of $VERSION variable for each package.  I am guessing  
that is what PREREQ_PM is also doing to determine a version for the  
dependancy.

If you make it depend on Bio::Root::Version and it will be able to  
parse it but I assume Bio::Perl is a clearer dependancy.  Otherwise  
what you've done for Bio::Perl makes and including the $VERSION  
variable makes the most sense.

-jason
On Aug 8, 2005, at 3:02 PM, <lstein at cshl.edu> <lstein at cshl.edu> wrote:

> Hi,
>
> Sadly, the Bio::Root::Version system does not play nicely with
> MakeMaker. I have a WriteMakefile() routine in the gbrowse Makefile.PL
> which looks like this:
>
> WriteMakefile(
>           'NAME'         => 'Generic-Genome-Browser',
>           'VERSION'      => $VERSION,
>           'PREREQ_PM'    => {
>                  Bio::Perl         => 1.5,
>                  GD                => 2.07,
>                  IO::String        => 0,
>                  Text::Shellwords  => 1.0,
>                 }, # e.g., Module::Name => 1.1
>         ...);
>
>
> But when I run perl Makefile.PL I get:
>
>    Warning: prerequisite Bio::Perl 1.5 not found. We have unknown
>             version.
>
> I have added a "use Bio::Root::Version '$VERSION'" to Bio/Perl.pm and
> this seems to fix the problem, but someone who understands MakeMaker
> better had better confirm that this is the right solution.
>
> Lincoln
>
> -- 
> Lincoln D. Stein
> Cold Spring Harbor Laboratory
> 1 Bungtown Road
> Cold Spring Harbor, NY 11724
> FOR URGENT MESSAGES & SCHEDULING,
> PLEASE CONTACT MY ASSISTANT,
> SANDRA MICHELSEN, AT michelse at cshl.edu
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at portal.open-bio.org
> http://portal.open-bio.org/mailman/listinfo/bioperl-l
>

--
Jason Stajich
jason.stajich at duke.edu
http://www.duke.edu/~jes12/




More information about the Bioperl-l mailing list