Daniel Veillard | e62d36c | 2001-05-15 08:53:16 +0000 | [diff] [blame] | 1 | Extracted from the documentation: |
| 2 | http://xmlsoft.org/FAQ.html#Compilatio |
| 3 | |
| 4 | Compilation |
| 5 | |
| 6 | 1.What is the process to compile libxml ? |
| 7 | |
| 8 | As most UNIX libraries libxml follows the "standard": |
| 9 | |
| 10 | gunzip -c xxx.tar.gz | tar xvf - |
| 11 | |
| 12 | cd libxml-xxxx |
| 13 | |
| 14 | ./configure --help |
| 15 | |
| 16 | to see the options, then the compilation/installation proper |
| 17 | |
| 18 | ./configure [possible options] |
| 19 | |
| 20 | make |
| 21 | |
| 22 | make install |
| 23 | |
| 24 | At that point you may have to rerun ldconfig or similar utility to |
| 25 | update your list of installed shared libs. |
| 26 | |
Daniel Veillard | 6d473ed | 2001-06-17 10:32:52 +0000 | [diff] [blame] | 27 | At this point you can check that the library is properly functionning |
| 28 | by running |
| 29 | |
| 30 | make tests |
| 31 | |
Daniel Veillard | e62d36c | 2001-05-15 08:53:16 +0000 | [diff] [blame] | 32 | 2.What other libraries are needed to compile/install libxml ? |
| 33 | |
| 34 | Libxml does not requires any other library, the normal C ANSI API |
| 35 | should be sufficient (please report any violation to this rule you |
| 36 | may find). |
| 37 | |
| 38 | However if found at configuration time libxml will detect and use |
| 39 | the following libs: |
| 40 | |
| 41 | libz: a highly portable and available widely compression library |
| 42 | http://www.info-zip.org/pub/infozip/zlib/ |
| 43 | iconv: a powerful character encoding conversion library. It's |
| 44 | included by default on recent glibc libraries, so it doesn't |
| 45 | need to be installed specifically on linux. It seems it's |
| 46 | now part of the official UNIX specification. Here is one |
| 47 | implementation of the library which source can be found here. |
| 48 | http://clisp.cons.org/~haible/packages-libiconv.html |
| 49 | ftp://ftp.ilog.fr/pub/Users/haible/gnu/ |
| 50 | |
Daniel Veillard | 2a8c4c4 | 2006-03-24 14:02:54 +0000 | [diff] [blame] | 51 | 3.make tests may fail on some platforms |
Daniel Veillard | e62d36c | 2001-05-15 08:53:16 +0000 | [diff] [blame] | 52 | |
| 53 | Sometime the regression tests results don't completely match the |
| 54 | value produced by the parser, and the makefile uses diff to print |
| 55 | the delta. On some platforms the diff return breaks the compilation |
| 56 | process, if the diff is small this is probably not a serious problem |
| 57 | |
| 58 | Daniel |
| 59 | veillard@redhat.com |
| 60 | |
| 61 | $Id$ |