[Bioperl-l] installing HTML::Parser
Barry Moore
barry.moore at genetics.utah.edu
Thu Dec 9 12:55:28 EST 2004
Xiaodong-
I had similar problems installing other perl modules on Redhat 9. In
the begining there was ASCII and Unix was happy. But the world spoke
more than just latin based languages and we got ISO-10646 and Unicode
and Unix was confused. ASCII is of course the old character set used by
early computer systems. ISO-10646 and Unicode are huge character sets
that support just about every language known (they're even working on
support for Tolkien's elvish Tengwar). UTF-8 is a character standard
that allows ASCII based Unix operating systems to maintain backward
compatibility with ASCII and forward compatibility to Unicode. RedHad 8
was the first major Linux distribution to use UTF-8 as the default
encoding for all locales, but unfortunately there was a major problem
with UTF-8 support in the perl that shipped with Redhat I've never read
anything that said what that problem was, but the solution Paulo gave
you seems to always solve all the problems. Try Googling "UTF-8 Redhat
Perl Makefile" if you want to read about this problem ad nauseum.
Barry
Xiaodong wrote:
>Thanks Paulo. Your way actually worked. Now I have it installed. But, I
>am still confused about why it happened in the first place. Any ideas?
>
>Xiaodong
>
>--- Paulo Almeida <paulo.david at netvisao.pt> wrote:
>
>
>
>>Hi,
>>
>>I'm not sure it's the same thing, but this might help you:
>>http://forums.devshed.com/t77648/s.html
>>
>>The part that interests you is:
>>
>>I made the change to /etc/sysconfig/i18n
>>
>>The default file reads
>>
>>LANG="en_US.UTF-8"
>>SUPPORTED="en_US.UTF-8:en_US:en"
>>SYSFONT="latarcyrheb-sun16"
>>
>>I change my file to read
>>
>>LANG="en_US"
>>SUPPORTED="en_US"
>>SYSFONT="latarcyrheb-sun16"
>>
>>If that doesn't help, you can google for "Malformed UTF-8 character
>>(unexpected" and see what else comes up.
>>
>>-Paulo Almeida
>>
>>
>>X wrote:
>>
>>
>>
>>>Hello there,
>>>
>>>I am new to BioPerl. As I was trying to install the module of
>>>HTML::Parser from CPAN. I got the following error messages when
>>>
>>>
>>testing
>>
>>
>>>the package. It seemed that my system was not correctly configured
>>>
>>>
>>or
>>
>>
>>>something. Could anybody give an explanation of the error messages
>>>
>>>
>>and
>>
>>
>>>how to fix the problem? Really appreciate it.
>>>
>>>
>>>...... (tests ok)
>>>t/entities ...........Malformed UTF-8 character (unexpected
>>>non-continuation byte 0x72, immediately after start byte oxe5) in
>>>substitution iterator at
>>>/root/.cpan/build/HTML-Parser-3.43/blib/lib/HTML/Entities.pm line
>>>
>>>
>>458.
>>
>>
>>>t/entities ...........ok 2/11Confused test output: test 2 answered
>>>after test 4
>>>t/entities............ok 3/11Confused test output: test 3 answered
>>>after test 5
>>>t/entities............NOK 4Confused test output: test 4 answered
>>>
>>>
>>after
>>
>>
>>>test 6
>>>t/entities............NOK 5Confused test output: test 5 answered
>>>
>>>
>>after
>>
>>
>>>test 7
>>>t/entities............NOK 6Confused test output: test 6 answered
>>>
>>>
>>after
>>
>>
>>>test 8
>>>t/entities............ok 7/11Confused test output: test 7 answered
>>>after test 9
>>>t/entities............ok 8/11Confused test output: test 8 answered
>>>after test 10
>>>t/entities............FAILED tests 1-3, 7-9
>>> Failed 6/11 tests, 45.45% okay
>>>...... (tests ok)
>>>t/headparser..........Parsing of undecoded UTF-8 will give garbage
>>>
>>>
>>when
>>
>>
>>>decoding entities at
>>>/root/.cpan/build/HTML-Parser-3.43/blib/lib/HTML/Parser.pm line 104.
>>># Test 3 got: 'Å være eller å ikke være' (t/headparser.t at line
>>>
>>>
>>137)
>>
>>
>>># Expected: 'Å være eller å ikke være'
>>># t/headparser.t line 137 is: ok($p->header("Title"), "Å være eller
>>>
>>>
>>å
>>
>>
>>>ikke være");
>>>t/headparser.........FAILED test 3
>>> Failed 1/6 tests, 83.33% okay
>>>...... (tests ok)
>>>t/uentities..........FAILED tests 2, 8
>>> Failed 2/14 tests, 85.71% okay
>>>...... (tests ok)
>>>
>>>Failed 3/44 test scripts, 93.18% okay. 9/355 subtests failed, 97.46%
>>>okay.
>>>make: *** [test_dynamic] Error 29
>>> /usr/bin/make test -- NOT OK
>>>
>>>
>>>Xiaodong
>>>
>>>
>>>
>>
>>
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Mail - Easier than ever with enhanced search. Learn more.
>http://info.mail.yahoo.com/mail_250
>_______________________________________________
>Bioperl-l mailing list
>Bioperl-l at portal.open-bio.org
>http://portal.open-bio.org/mailman/listinfo/bioperl-l
>
>
--
Barry Moore
Dept. of Human Genetics
University of Utah
Salt Lake City, UT
More information about the Bioperl-l
mailing list