[pgh-pm] Time::HighRes

Greg Akins angrygreg at gmail.com
Sat Apr 17 09:07:13 PDT 2010


Thanks every one.  I wasn't sure about the standard way to install
modules on the Mac

It's 'cpan'  Other than spelling HiRes wrong the first time, I got it
installed but now I get this error (Haven't googled yet)

Can't locate Time/HighRes.pm in @INC (@INC contains:
/Library/Perl/Updates/5.10.0/darwin-thread-multi-2level
/Library/Perl/Updates/5.10.0
/System/Library/Perl/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/5.10.0
/Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0
/Network/Library/Perl/5.10.0/darwin-thread-multi-2level
/Network/Library/Perl/5.10.0 /Network/Library/Perl
/System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.10.0 .) at cmdWhistle.pl line 5.
BEGIN failed--compilation aborted at cmdWhistle.pl line 5.


On Sat, Apr 17, 2010 at 10:28 AM, Jason Campbell <jasonc at jasonc.com> wrote:
> One of the most useful things you can learn about when using perl is how to
> access and install CPAN packages from your platform.  This is because there
> are so many useful packages available via CPAN.  As Malcom points out,
> there's PPM on Active State's distribution, but that is Windows-specific.  I
> haven't used Perl on a Mac, so I don't know specifics for your case.  If the
> Mac works like Perl on other Unixes you can just use the CPAN module to
> fetch Time::HiRes:
>
>   perl -MCPAN -e 'install Time::HiRes'
>
> Or you can start an interactive session with CPAN:
>   perl -MCPAN -e shell
>
> then enter 'install Time::HiRes'.
>
> Note that CPAN.pm fetches source, so unlike PPM which is a binary module
> system, CPAN.pm may require you to have working build tools on your system
> if you install packages which aren't pure Perl.  (compiler, make, maybe even
> automake & autoconf)
>
> Jason.
>
>
> On Sat, 17 Apr 2010 08:48:11 -0400, Malcolm Nooning <m.nooning at comcast.net>
> wrote:
>
>> I went to a Windows prompt box and entered "ppm", which popped up the
>> ActiveState Perl Package Manager.  It took a long time, but eventually the
>> scroll window with a long list of packages loaded up.  I scrolled down to
>> "Time::HighRes", so, for my Perl 5.10 at least, it is available as a
>> prepackaged, um, package.  I already had it installed but I clicked on the
>> little green (mark for install) icon anyway, as there is a slightly newer
>> version available.  I then clicked on the green arrow to install it, etc.
>>
>> The only real pain is that the ppm seems to freeze the part of my screen
>> when it is doing something, and it seems to take numbers of minutes.
>>  Eventually it finished.
>>
>> If your Perl is from ActiveState, but a different version, well, it should
>> still work the same way.
>>
>> Good luck.
>>
>> Greg Akins wrote:
>>>
>>> Trying to setup Whistle control on my Mac following this blog entry
>>> http://www.mostlymaths.net/2009/09/whistle-control-your-computer.html
>>>
>>> There is a suggestion to use Time::HighRes, but I get the following
>>> error:
>>>
>>> Can't locate Time/HighRes.pm in @INC (@INC contains:
>>> /Library/Perl/Updates/5.10.0
>>> /System/Library/Perl/5.10.0/darwin-thread-multi-2level
>>> /System/Library/Perl/5.10.0
>>> /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0
>>> /Network/Library/Perl/5.10.0/darwin-thread-multi-2level
>>> /Network/Library/Perl/5.10.0 /Network/Library/Perl
>>> /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level
>>> /System/Library/Perl/Extras/5.10.0 .) at cmdWhistle.pl line 5.
>>> BEGIN failed--compilation aborted at cmdWhistle.pl line 5.
>>>
>>> I suspect the library just isn't installed.. But I'm very inexperience
>>> at Perl.. Is this just a matter of going to CPAN and finding it?  Any
>>> other pointers before I screw up my Perl installation?
>>>
>>>
>> _______________________________________________
>> pgh-pm mailing list
>> pgh-pm at pm.org
>> http://mail.pm.org/mailman/listinfo/pgh-pm
>
>
>



-- 
Greg Akins

http://insomnia-consulting.org
http://www.pghcodingdojo.org
http://pittjug.dev.java.net
http://twitter.com/akinsgre
http://www.linkedin.com/in/akinsgre


More information about the pgh-pm mailing list