Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Module confusion
Howdy Folks,
I'm not really a beginner to perl, but I do have a problem which is plaguing
 me due to
changes in (a) my server and (b) my host company. In the past they gleefully
installed any module I requested of them. No longer. In a recent move to a n
ew
server I lost a module I needed. Time::HiRes, they claim that I can use the 
module
locally, and lord knows I've tried. But the problem is EVERY file I can find
 concerning
the installation of modules to a nonstandard directory assumes you can telne
t into
the server to install the module using the makefile. Well guess what, they t
ook away
my telnet access also with this new server. I've downloaded and unpacked the
module from cpan, but when I tried moving the HiRes.pm into a modules direct
ory
and pointing to it using a "use lib", I'm getting a not found message. I am 
unsure as
to what should be in that modules directory. There's plenty online about ins
talling
modules, but little about what is in a module tar and what should be online 
to use
them.

This can't be a rare problem, hosting companies are closing down telnet all 
over the
place for security reasons. If someone has over come this, or knows a docume
nt
online which explains how to over come this, I'd appreciate knowing about it
.

Regards
Bob Minnick, Northern WebsBob Minnick, President, Northern Webs
208.265.0474                                                           |
Mainpage:      http://www.northernwebs.com
Meta Medic:    http://www.northernwebs.com/set/setsimjr.html
SpiderView LC: http://www.northernwebs.com/set/spider_view.html
SpiderView DA: http://www.northernwebs.com/set/spider_view_da.html


Report this thread to moderator Post Follow-up to this message
Old Post
bobmin@imbris.net
02-08-05 01:55 AM


Re: Module confusion
Keep in mind two things: 1) you may need to build the module locally on a
similar box (linux, same basic version of Perl), and 2) since the module is
Time::HiRes, there needs to be a Time directory in your modules directory,
and the HiRes.pm file need to be in that directory.
EG:
~bobmin/perlmodules/Time/HiRes.pm

use lib "~bobmin/perlmodules";
use Time::HiRes;

HTH,

Paul

1:21pm, bobmin@imbris.net wrote:

> Howdy Folks,
> I'm not really a beginner to perl, but I do have a problem which is plagui
ng me due to
> changes in (a) my server and (b) my host company. In the past they gleeful
ly
> installed any module I requested of them. No longer. In a recent move to a
 new
> server I lost a module I needed. Time::HiRes, they claim that I can use th
e module
> locally, and lord knows I've tried. But the problem is EVERY file I can fi
nd concerning
> the installation of modules to a nonstandard directory assumes you can tel
net into
> the server to install the module using the makefile. Well guess what, they
 took away
> my telnet access also with this new server. I've downloaded and unpacked t
he
> module from cpan, but when I tried moving the HiRes.pm into a modules dire
ctory
> and pointing to it using a "use lib", I'm getting a not found message. I a
m unsure as
> to what should be in that modules directory. There's plenty online about i
nstalling
> modules, but little about what is in a module tar and what should be onlin
e to use
> them.
>
> This can't be a rare problem, hosting companies are closing down telnet al
l over the
> place for security reasons. If someone has over come this, or knows a docu
ment
> online which explains how to over come this, I'd appreciate knowing about 
it.
>
> 	Regards
> 	Bob Minnick, Northern WebsBob Minnick, President, Northern Webs
> 208.265.0474                                                           |
> Mainpage:      http://www.northernwebs.com
> Meta Medic:    http://www.northernwebs.com/set/setsimjr.html
> SpiderView LC: http://www.northernwebs.com/set/spider_view.html
> SpiderView DA: http://www.northernwebs.com/set/spider_view_da.html
>
>
> --
> To unsubscribe, e-mail: beginners-cgi-unsubscribe@perl.org
> For additional commands, e-mail: beginners-cgi-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>

------------------------------------------------------------------------
Jan Lewis, one of Microsoft's earliest employees, provides this
helpful translation of Judge Jackson's 43-page opinion into "Windowese":

You have performed an illegal operation and will be shut down.
------------------------------------------------------------------------

Report this thread to moderator Post Follow-up to this message
Old Post
Paul Archer
02-08-05 01:55 AM


Re: Module confusion
On Mon, 07 Feb 2005 13:21:31 -0800, bobmin@imbris.net wrote:

>Howdy Folks,
> I'm not really a beginner to perl, but I do have a problem which is plagui
ng me due to
>changes in (a) my server and (b) my host company. In the past they gleefull
y
>installed any module I requested of them. No longer. In a recent move to a 
new
>server I lost a module I needed. Time::HiRes, they claim that I can use the
 module
>locally, and lord knows I've tried. But the problem is EVERY file I can fin
d concerning
>the installation of modules to a nonstandard directory assumes you can teln
et into
>the server to install the module using the makefile. Well guess what, they 
took away
>my telnet access also with this new server. I've downloaded and unpacked th
e
>module from cpan, but when I tried moving the HiRes.pm into a modules direc
tory
>and pointing to it using a "use lib", I'm getting a not found message. I am
 unsure as
>to what should be in that modules directory. There's plenty online about in
stalling
>modules, but little about what is in a module tar and what should be online
 to use
>them.
>
>This can't be a rare problem, hosting companies are closing down telnet all
 over the
>place for security reasons. If someone has over come this, or knows a docum
ent
>online which explains how to over come this, I'd appreciate knowing about it.[/colo
r]

Your big problem is that Time::HiRes has a c component. So if you try to
compile it on a linux machine with different libc version, it won't be
compatible when you try to upload it.  Even if you do get it to go,
you will have an additional problem of the autoloader trying to find the
.so file to load.  So you have to worry about that too, and you may have
to fiddle with the module build paths, to account for it being on
another machine.
Any module with a c component, will be tricky to use, if compiled
on a different machine. Then there is the problem of the ISP upgrading
Perl versions, leaving you stranded again with a non-working module.
Binary compatibility for modules between Perl  versions, only started
with a recent version.... 5.85?

The best thing is to tell your ISP, that if they don't install
Time::HiRes, which is widely used, that you will change ISPs.

Another alternative, is to get the Time::HiRes code out of your
scripts. The 4-arg select will give you microsecond delays, and
is part of all Perl's.

select(undef,undef,undef, .001);  1 microsecond delay



--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html

Report this thread to moderator Post Follow-up to this message
Old Post
Zentara
02-08-05 08:55 PM


Re: Module confusion
bobmin@imbris.net wrote:
> Howdy Folks,
>  I'm not really a beginner to perl, but I do have a problem which is plagu
ing me due to
> changes in (a) my server and (b) my host company. In the past they gleeful
ly
> installed any module I requested of them. No longer. In a recent move to a
 new
> server I lost a module I needed. Time::HiRes, they claim that I can use th
e module
> locally, and lord knows I've tried. But the problem is EVERY file I can fi
nd concerning
> the installation of modules to a nonstandard directory assumes you can tel
net into
> the server to install the module using the makefile. Well guess what, they
 took away
> my telnet access also with this new server. I've downloaded and unpacked t
he
> module from cpan, but when I tried moving the HiRes.pm into a modules dire
ctory
> and pointing to it using a "use lib", I'm getting a not found message. I a
m unsure as
> to what should be in that modules directory. There's plenty online about i
nstalling
> modules, but little about what is in a module tar and what should be onlin
e to use
> them.
>
> This can't be a rare problem, hosting companies are closing down telnet al
l over the
> place for security reasons. If someone has over come this, or knows a docu
ment
> online which explains how to over come this, I'd appreciate knowing about it.[/col
or]

No problem as long as they still provide secure-shell access via ssh.
It's completely sensible to close down the use of telnet. Too insecure
for today's environment, however ssh is a viable alternative.

--
Scott R. Godin
Laughing Dragon Services
www.webdragon.net

Report this thread to moderator Post Follow-up to this message
Old Post
Scott R. Godin
02-09-05 08:55 AM


RE: Module confusion
Scott R. Godin <nospam@webdragon.net> wrote:

: No problem as long as they still provide secure-shell access
: via ssh. It's completely sensible to close down the use of
: telnet. Too insecure for today's environment, however ssh is a
: viable alternative.

I resell server space and I have one provider which allows
shell access and one which doesn't. The one which does requires
an initial reason why such access is necessary. In the hands of
an inexperienced or malicious person, shell access can hurt all
users on that physical server. We have some controls in place,
but disallowing shell access is still the most secure route.


Charles K. Clarkson
--
Mobile Homes Specialist
254 968-8328


Report this thread to moderator Post Follow-up to this message
Old Post
Charles K. Clarkson
02-09-05 08:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL CGI Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:56 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.