GNC-PRICES

linas@linas.org linas@linas.org
Fri, 23 Feb 2001 10:38:28 -0600 (CST)


It's been rumoured that Rob Browning said:
> 
> We could structure the optional bits, like gnc-prices, so that they
> check for what they need at runtime and print a useful diagnostic if
> those bits are not found.  i.e.:
> 
>   gnc-prices: You have attempted to run gnc-prices without
>   gnc-prices: installing all of the necessary perl dependencies.
>   gnc-prices: You must install...
>   gnc-prices: which can be found at...
> 
> 
>   Can't locate Foo/Bar.pm in @INC (@INC contains: /usr/lib/perl5/i386-linux /usr/lib/perl5 /usr/lib/perl5/5.6/i386-linux /usr/lib/perl5/5.6 /usr/local/lib/site_perl/i386-linux /usr/local/lib/site_perl /usr/lib/perl5/5.005/i386-linux /usr/lib/perl5/5.005 .) at - line 1.
>   BEGIN failed--compilation aborted at - line 1.
> 
> The dynamic diagnostics should be pretty easy, at least for perl
> modules if we use "eval" with a little snippet to check for modules at
> the top of the script (I think).

If you can do this in under an hour or tw, do it. We've alread blown
more time on the mailing list discussing this for everyone who gets this
problem.

btw, this will still be a problem for version 1.5 if I understand
correctly.

--linas