azredwing has asked for the wisdom of the Perl Monks concerning the following question:
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!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Cannot install CPAN modules
by ysth (Canon) on Aug 03, 2008 at 23:45 UTC | |
by azredwing (Sexton) on Aug 04, 2008 at 00:51 UTC | |
by Khen1950fx (Canon) on Aug 04, 2008 at 02:39 UTC | |
Re: Cannot install CPAN modules
by Illuminatus (Curate) on Aug 04, 2008 at 02:12 UTC | |
Re: Cannot install CPAN modules
by actualize (Monk) on Aug 04, 2008 at 03:11 UTC |