!!!!SOLVED!!!!! See below.

Hi all,

I just got a new notebook: Lenovo T61, dual-core 64bit. I am running Ubuntu 8.04 64bit. Part of migrating over from my old notebook to this one is installing the CPAN modules I already had previously.

I have attempted to install a few modules, and all end in failure. Running "perl Makefile.PL" works fine, but it's the make && make install that fail. Here's a snippet of the failure from trying to install List::MoreUtils:

MoreUtils.c:1797: warning: cast to pointer from integer of different s +ize MoreUtils.c:1798: error: invalid type argument of ‘unary *’ MoreUtils.c:1798: warning: cast to pointer from integer of different s +ize MoreUtils.c:1799: error: invalid type argument of ‘unary *’ MoreUtils.c:1799: warning: cast to pointer from integer of different s +ize MoreUtils.c:1811: error: invalid type argument of ‘unary *’ MoreUtils.c:1811: warning: cast to pointer from integer of different s +ize MoreUtils.c:1811: error: invalid type argument of ‘unary *’ MoreUtils.c:1811: warning: cast to pointer from integer of different s +ize MoreUtils.c:1811: error: invalid type argument of ‘unary *’ MoreUtils.c:1811: warning: cast to pointer from integer of different s +ize MoreUtils.c:1811: error: invalid type argument of ‘unary *’ MoreUtils.c:1811: warning: cast to pointer from integer of different s +ize make: *** [MoreUtils.o] Error 1

I have tried using make -j3, but this hasn't worked. I also tried installing modules by using:

perl -MCPAN -e 'install List::MoreUtils'

But no dice. Anyone have any ideas why I can't build CPAN modules, and how should I go about resolving this?

Thanks for the help!

UPDATE:Got it! Since this was a fresh install of Ubuntu, I didn't install build-essentials, which contains some libraries that I suppose gcc needs to make stuff. Running this made everything work fine:

sudo apt-get install build-essential

Thanks for everyone's help!


In reply to [SOLVED] Cannot install CPAN modules by azredwing

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.