Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

CPAN module getting Killed

by moxliukas (Curate)
on Nov 20, 2002 at 13:03 UTC ( #214426=perlquestion: print w/replies, xml ) Need Help??
moxliukas has asked for the wisdom of the Perl Monks concerning the following question:

hello, monks!

I have a Slackware 8.0 server with perl 5.8.0 and I am unable to use CPAN module, as it gets killed in the process.

I really have no idea what is happening. I am using it while being root. Here is a log of things:

root@mfondas:~# perl -MCPAN -e "install 'DBI'" CPAN: Storable loaded ok Going to read /root/.cpan/sources/authors/01mailrc.txt.gz Going to read /root/.cpan/sources/modules/02packages.details.txt.gz Database was generated on Wed, 20 Nov 2002 02:24:06 GMT CPAN: HTTP::Date loaded ok Killed

Can anyone provide any pointers to what is happening? And how can I solve this problem? If i download modules first and do perl Makefile.PL && make && make install it works OK. It is only CPAN module that I am having problems with.

Thank you in advance

PS. Oh, I have tried to upgrade my CPAN module (it is now version 1.63) but the problem still remains

Replies are listed 'Best First'.
Re: CPAN module getting Killed
by RMGir (Prior) on Nov 20, 2002 at 13:12 UTC
    Wierd... I don't have 5.8.0 installed here, but the word "Killed" doesn't show up anywhere in my installed modules for 5.6.1.

    I can think of 2 things you can try.

    First, try running that with the -d option to invoke the perl debugger; maybe the debugger will catch whatever's doing the "Kill" and let you get a stack trace.

    Second, type perldoc -l CPAN, and note down the directory where CPAN is installed. Then do (assuming /usr/lib/perl5/5.8.0 is that directory):

    find /usr/lib/perl5/5.8.0 | xargs grep -w Killed
    and see if you can find out if the "Killed" is from a module...

    Yes, I know I could have used File::Find to do that, but for some things, find/xargs is just simpler.

    (Edit: I downloaded the 5.8.0 source tree. The word /killed/i does not appear anywhere in the tree, at least, not where it would print out like that...)

      I think that it is not the part of CPAN itself, but rather the OS sends the SIGKILL. Now I wonder why it does that.
Re: CPAN module getting Killed
by mikeirw (Pilgrim) on Nov 20, 2002 at 14:06 UTC

    I've seen this problem before. In my case, it had to do with resource limits. CPAN takes a lot more resources than does a perl Makefile.PL && make && make install.

    If this is your box, then you may want to take a look to see if you've unknowingly set any restrictive limits on processes. If this is someone else's machine, you should probably ask the admin or tech support.

Re: CPAN module getting Killed
by moxliukas (Curate) on Nov 21, 2002 at 10:39 UTC

    I would like to say thank you for everyone who has helped me to solve this problem.

    It was indeed a problem with an operating system: swap was misbehaving, so doing swapoff && mkswap /dev/hda2 && swapon /dev/hda2 solved it all.

    Thank you again for your help.

    Petras "happily-compiling-CPAN-modules" Kudaras

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://214426]
Approved by RMGir
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-06-27 05:44 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (598 votes). Check out past polls.