LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2012, 09:43 AM   #1
karnal
LQ Newbie
 
Registered: Jan 2012
Location: Pretoria -SA
Distribution: Ubuntu
Posts: 2

Rep: Reputation: Disabled
Unhappy Installing a Perl Module Time::HiRes (Please Help)


Hey guys i have searched high and low on the internet but i cannot find a way to install this module. Its called Time::HiRes I have tried a few things with no joy. the README from the tarball say i should "implement usleep, ualarm, and gettimeofday for Perl, as well as wrappers to implement time, sleep, and alarm that know non-integral seconds."

Can anyone help plz?

Thanks.
 
Old 01-27-2012, 10:01 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,802

Rep: Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354Reputation: 3354
sudo cpan

cpan > Time::HiRes
 
Old 01-27-2012, 10:51 AM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
Code:
cpan
cpan> install Bundle::CPAN
cpan> reload cpan
cpan> install Time::HiRes
cpan> exit
 
Old 01-27-2012, 01:17 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,403

Rep: Reputation: 4526Reputation: 4526Reputation: 4526Reputation: 4526Reputation: 4526Reputation: 4526Reputation: 4526Reputation: 4526Reputation: 4526Reputation: 4526Reputation: 4526
Quote:
Originally Posted by karnal View Post
Hey guys i have searched high and low on the internet but i cannot find a way to install this module. Its called Time::HiRes I have tried a few things with no joy. the README from the tarball say i should "implement usleep, ualarm, and gettimeofday for Perl, as well as wrappers to implement time, sleep, and alarm that know non-integral seconds."

Can anyone help plz?

Thanks.
Spell out your words. And most Perl modules install the same way:
  1. perl Makefile.PL
  2. make
  3. make test
  4. make install
But the CPAN options given are easier. And since you searched "high and low", it's hard to believe you didn't come across lots of information on how to do this. First hit in Google for "linux how to install perl modules":
http://www.thegeekstuff.com/2008/09/...-cpan-command/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Perl Module DiscoDave86 Linux - Software 9 07-20-2013 04:11 PM
list perl module & install perl module DBD::mysql linson_85 Linux - Newbie 4 06-22-2009 11:42 AM
Trouble in installing Perl module GD-2.41 kim,jw Linux - Newbie 3 12-18-2008 09:49 AM
installing perl module vickr1z Linux - Newbie 1 09-22-2004 08:12 AM
TIME::HiRes Mike_the_Man Programming 2 02-07-2001 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration