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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |