Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Citrus Perl: problems trying to load additional modules

by HelenCr (Monk)
on May 18, 2013 at 15:18 UTC ( #1034103=note: print w/replies, xml ) Need Help??


in reply to Re: Citrus Perl: problems trying to load additional modules
in thread Citrus Perl: problems trying to load additional modules

stefbv, syphilis, Anne and AM: Thank you for you time and interest. Your posts helped a lot.

Here is how I got it solved: although CPANPLUS version was not that far back-dated, I decided to try to update it to the latest (0.9136). It's not simple to update it, so I used this incantation:

cpan -fi BINGOS/CPANPLUS-0.9136.tar.gz

as Khen1950fx suggested here: perlmonks.org/?node_id=1031040.
This got installed with no problems; I then went: cpanp (invoked CPANPLUS) and entered: i DateTime. It asked me about required dependencies, I answered [3] (Yes to all).

Turned out that wasn't such a good decision, since it got stuck for more than an hour in trying to install DateTime::TimeZone.
I noticed it was eating up 13% of joint cpu power ( which is quite a lot - the PC is quite powerful, 8-core i7 processor).

I Googled a bit and realized it got into a "required dependency loop". I killed the perl.exe process (had to, since it ignored Ctrl-C), and installed the required dependencies manually.

So all looks fine right now.

Many thanks to all who chipped-in for help - Helen

NB for the benefit of the PerlMonks community: some "lessons learned":

  1. It is possible (and documented) to run several Perl installations on your system. You have to manage the PATH carefully though (either manually or, if you have Citrus Perl, using the citrusvars.bat utility)
  2. CPANPLUS works fine in a multi-installation environment - in fact, it's by design. It creates a "module archive tree" with entries for each Perl version it finds.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1034103]
help
Chatterbox?
[marto]: I crashed the ScotLUG Christmas night, having never actually been to ScotLUG
[choroba]: Corion yeah, I probably already told you about how Bjarne Stroustrup was asked whether he still watched the new tech trends and what really impressed him
[choroba]: His reply was "I watch them, but I haven't been impressed in the last 10 years. There's been nothing new". That was 2 years ago :)
[ambrus]: Ok, the docs is somewhat unclear. It does say that when an object is garbage collected, it will get cleaned up, and eventually can no longer get messages. It's not clear how long this takes, eg. I think it's kept alive until its queued events are handled
[ambrus]: in the loop, and I'm not sure if that's ok for AnyEvent. Also, it's not clear if a Timer or File object you free really is garbage collected, i.e. that Prima doesn't keep some references to it, but I hope so.
[Corion]: choroba: No, I don't remember that story, but yes, it matches my experience ;))
[ambrus]: Hopefull the object isn't kept alive, the events are processed immediately, but you'd have to read a lot of source code to be sure about that.
[Corion]: ambrus: I think both of AnyEvent and Prima are pretty tight in their memory management because they both are cooperative multitasking and (I think) both use the Perl memory management for managing things
[Corion]: ambrus: And for Windows, I don't think that Prima knows if there still are messages queued for an object (in the Windows message loop). Finding that out would take lots of effort for little gain
[ambrus]: And even if this works, I'm still not sure you can't get double timeouts from a Timer.

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2016-12-09 10:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (150 votes). Check out past polls.