Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Trying to install a module with CPAN segfaults

by Sameet (Beadle)
on May 02, 2004 at 13:31 UTC ( [id://349811]=perlquestion: print w/replies, xml ) Need Help??

Sameet has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks
I tried to install Statistics::ChiSquare using CPAN, however, i am getting the following error. What am I doing wrong?
CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Wed, 28 Apr 2004 19:00:38 GMT Going to read /root/.cpan/sources/authors/01mailrc.txt.gz CPAN: Compress::Zlib loaded ok Going to read /root/.cpan/sources/modules/02packages.details.txt.gz Database was generated on Sun, 02 May 2004 01:52:34 GMT CPAN: HTTP::Date loaded ok Segmentation fault

regards
Sameet

jdporter - changed title from 'Problems install Module Statistics with CPAN'

Replies are listed 'Best First'.
Re: Trying to install a module with CPAN segfaults
by grinder (Bishop) on May 02, 2004 at 15:54 UTC
    What am I doing wrong?

    Without wanting to be obnoxious, a number of things. You're not telling us:

    • What version of Perl? (perl -V (uppercase V)
    • What version of CPAN.pm (it's printed when it starts up)
    • What operating system? (uname -a if on Unix)
    • Do you have enough free RAM and disk space?
    • What has changed on your system and with Perl since the last time you successfully installed a module?

    You could run CPAN under the debugger and find out whereabouts the segfault is occurring: this should be enough for people to figure out what's going wrong.

    perl -MCPAN -d -e 'install Statistics::ChiSquare'

    The above will be enough to get the ball rolling. Use the n command to execute the code step by step and find out where it's failing and report back.

    In other words, I have no idea why it would do that. I have had similar experiences with 5.6.0 on Solaris, but that version of Perl was known to be buggy.

      Hi,
      I am really sorry for being 'obnoxious', but i will provide the following things
      1. My Operating system is RedHat Linux 9.0.
      2. My Perl version is 5.8.0, that came with the operating system.
      3. My RAM is 512MB
      4. My HardDisk is 120GB, of which 40GB is Windows Partition, Remaining is for Linux.
      The CPAN verstion is
      cpan shell -- CPAN exploration and modules installation (v1.76) ReadLine support enabled
      I actually typed the following at the command line
      install Statistics::ChiSquare

      I hope these answers all the questions
      Thank you again
      Sameet
        Is the LANG environment variable set to a UTF-8 locale? Try unsetting LANG then, because there are various problems with the LANG setting and the perls shipped with RedHat 8.0 and 9.0.
Re: Trying to install a module with CPAN segfaults
by tachyon (Chancellor) on May 02, 2004 at 16:28 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://349811]
Approved by kappa
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-20 01:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found