[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [GT] scan.pl error
Todd Turner wrote:
I went to install the libdate-manip-perl module and it turns out I
already had that package. Not sure why the test you had me do
indicated it wasn't installed. Maybe my environment is not set up
correctly.
aloha todd
based on your original command line (something like <prompt> perl scan.pl ...)
i have to assume you're not using a *nix like os, which means i'm not in
a position to give you much assistance (beyond recommending you install
one or buy a mac ;-) kidding kindasorta). much of the stuff below is very
novice user oriented -- ignore it if you're beyond that stage.
on *nix like os, Date::Manip is an ordinary perl module, much like the
myriad gt modules. on *nix like os they are accessed via the perl @INC
array which is pre-defined in some perl config file. @INC can be altered
in any number of ways, in fact gt does so in the scripts with the directive:
use lib '..'; which allows the scripts to find the gt modules.
you can 'see' the default content of @INC using (maybe)
ras [ 10384 ] % perl -e'print "@INC\n"'
/usr/local/lib/perl5/5.6.2/sun4-solaris /usr/local/lib/perl5/5.6.2 ...
you can alter @INC via command line with -I flag and argument
ras [ 10386 ] % perl -I/usr/perl5/site_perl/5.8.4 -e'print "@INC\n"'
/usr/perl5/site_perl/5.8.4 /usr/local/lib/perl5/5.6.2/sun4-solaris ...
you can read all about your perl install via perldoc ... try something like
ras [ 10388 ] % perldoc perl
if gt fails with date strings like --start '6 months ago' --end 'last friday'
you need to figure out where date::manip is and get that path into the
@INC used for gt.
and if you can figure out how to alter
perl -M"Date::Manip 99" -e 'exit;'
to work on your system and share it with me i will be better able to
assist others with similar issues in the future.
ras
Todd
On Sat, Mar 22, 2008 at 12:31 PM, Robert A. Schmied <ras
AT
acm.org> wrote:
Todd Turner wrote:
> I just checked...I do not have Date::Manip installed.
aloha todd
thanks for that reply -- this is interesting; thought you wrote
you're using beancounter? i'm seeing both beancounter and BeanCounter.pm
using Date::Manip as far back as beancounter-0.6.3 ???
todd and all other newer gt users -- don't know what platform you're
using so don't know if it's a big deal or worse to install perl modules.
but i believe if you find gt useful, you'll really like the date entry
flexibility the stems by adding Date::Manip to you're perl install.
as an example
% scan.pl --timeframe day --start '6 months ago' --end 'last friday' \
scan_symbol2 'last friday' scan_signal
instead of
% scan.pl --timeframe day --start 'heck -- you do the date math!
-- fellow hackers this suggests we cannot presume Date::Manip will
be available even for those users using beancounter. the only gt
module i know requires it is the new GT::DB:Text. but GT::Tools
will use it if available.
ras
>
> Todd
>
> On Fri, Mar 21, 2008 at 11:40 PM, Robert A. Schmied <ras
AT
acm.org> wrote:
>
>>Todd Turner wrote:
>> > Hi Robert,
>> >
>> > Your modified scan.pl works. Thanks!
>>
>> more correctly, my corrected scan.pl works.
>>
>> good to hear! again sorry for the screwup -- seems you
>> may have been the guinea pig for that one.
>>
>> a question if you don't mind:
>>
>> do you have perl module Date::Manip installed?
>> try perl -M"Date::Manip 99" -e 'exit;'
>> you'll get something like
>> Date::Manip version 99 required--this is only version 5.44.
>> BEGIN failed--compilation aborted.
>> if you do, and something like
>> Can't locate Date/Manip.pm in @INC (@INC contains: /usr/perl5....
>> if you do not.
>>
>> aloha
>>
>> ras
<< snip >>
- References:
- [GT] scan.pl error, Todd Turner (2008/03/21)
- Re: [GT] scan.pl error, Todd Turner (2008/03/21)
- Re: [GT] scan.pl error, Robert A. Schmied (2008/03/22)
- Re: [GT] scan.pl error, Todd Turner (2008/03/22)
- Re: [GT] scan.pl error, Robert A. Schmied (2008/03/22)
- Re: [GT] scan.pl error, Robert A. Schmied (2008/03/22)
- Re: [GT] scan.pl error, Todd Turner (2008/03/22)
- Re: [GT] scan.pl error, Robert A. Schmied (2008/03/22)
- Re: [GT] scan.pl error, Todd Turner (2008/03/22)
- Re: [GT] scan.pl error, Robert A. Schmied (2008/03/22)
- Re: [GT] scan.pl error, Todd Turner (2008/03/23)