I don't run ubuntu but I too have had problems installing XML::Parser. A couple of general suggestions. 1. XPAT may not be instlled on your system. You may have to get it via the Ubuntu Linux package manager. 2. Try installing the Heavy.pm module by itself, then retry the XML::Parser install. Sometimes CPAN barfs when it tries to install everything in one go. 3. Say "no" to installing optional modules unless you know you need them. It just complicates the XML::Parser install.

Thanks Larry, I actually got it right by installing a new Ubuntu server. I think my old install went corrupt and that is why I coldn't install any module or package without getting errors. My server is running like a dream. Thank you once again.