jaime11:
Your post is pretty difficult to read. I'd suggest putting code tags (<c> your installation output </c>) around it to make it easier to read.
It also seems like you've left out a good bit of detail that would make it possible to help you:
- $PERL5LIB, $LD_LIBRARY_PATH, pointing to various directories where I have write and reading permissions
OK, what directories are shown?
- $PERL_MM_OPT pointed to another perl installation in a directory where I have write and reading permissions
Do you possibly have your environment mangled? Is it possible that your directories are inconsistent, confusing the installer?
- What is the complete output of cpan HTML::TreeBuilder? It looks like you've cut out all the parts where cpan tells us what the problem(s) are.
For example, you mention that you try another gcc, but I don't see anything in your post showing that there were any gcc errors or that gcc was used at all.
...roboticus
When your only tool is a hammer, all problems look like your thumb.