in reply to Trying to install a module with CPAN segfaults

What am I doing wrong?

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

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.

Replies are listed 'Best First'.
Re: Re: Trying to install a module with CPAN segfaults
by Sameet (Beadle) on May 02, 2004 at 19:12 UTC
    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.