| 1 | == Installation: libxml2 and Perl bindings (LibXML) == |
| 2 | |
| 3 | Follow the steps below to download and install the required softwares. Create a local install directory 'xmllibs'[[BR]] |
| 4 | (or any other convenient name) in your home directory or anywhere.We will use ''''$HOME/xmllibs'''' as an example here for local install.[[BR]] |
| 5 | All of the following installations will be done in the same base local directory i.e ''$HOME/xmllibs''. |
| 6 | |
| 7 | A. '''Libxml2:'''[[BR]] |
| 8 | Libxml2 is the XML C parser and toolkit. It is free software available under the [http://www.opensource.org/licenses/mit-license.html MIT License]. For more information visit [http://xmlsoft.org/][[BR]] |
| 9 | |
| 10 | 1. Download libxml2 version 2.6.28: ftp://xmlsoft.org/libxml2/libxml2-2.6.28.tar.gz |
| 11 | |
| 12 | 2. Unzip and untar the file to a tmp directory. |
| 13 | |
| 14 | 3. Run ''configure'' as shown below. Specify the local install directory as ''$HOME/xmllibs'' |
| 15 | {{{ |
| 16 | $ ./configure --prefix=$HOME/xmllibs |
| 17 | }}} |
| 18 | 4. Run |
| 19 | {{{ |
| 20 | $ make |
| 21 | }}} |
| 22 | 5. Run ''make install''. This will install the required libs and executables into ''$HOME/xmllibs''. |
| 23 | {{{ |
| 24 | $ make install |
| 25 | }}} |
| 26 | 6. Add ''''$HOME/xmllibs/bin'''' to the system PATH. |
| 27 | {{{ |
| 28 | export PATH=$HOME/xmllibs/bin:$PATH |
| 29 | or |
| 30 | setenv PATH $HOME/xmllibs/bin:$PATH |
| 31 | }}} |
| 32 | [[BR]] |
| 33 | |
| 34 | B. '''XML::LibXML::Common-0.13''': |
| 35 | |
| 36 | |
| 37 | 1. Download ''XML-LibXML-Common'' version 0.13: http://search.cpan.org/CPAN/authors/id/P/PH/PHISH/XML-LibXML-Common-0.13.tar.gz |
| 38 | |
| 39 | 2. Unzip and untar the file to a tmp directory. |
| 40 | |
| 41 | 3. Generate ''Makefile'' as shown below. Specify the local install directory as ''$HOME/xmllibs'' |
| 42 | {{{ |
| 43 | $ perl Makefile.PL INSTALLSITEARCH=$HOME/xmllibs |
| 44 | }}} |
| 45 | 4. Run |
| 46 | {{{ |
| 47 | $ make |
| 48 | }}} |
| 49 | 5. Run ''make test''. This will test the install. |
| 50 | {{{ |
| 51 | $ make test |
| 52 | }}} |
| 53 | 6. Run ''make install''. This will install the required libs and executables into ''$HOME/xmllibs.'' |
| 54 | {{{ |
| 55 | $ make install |
| 56 | }}} |
| 57 | [[BR]] |
| 58 | |
| 59 | C. '''XML::LibXML: 1.65:''' |
| 60 | |
| 61 | 1. Download ''XML-LibXML'' version 1.65: http://search.cpan.org/CPAN/authors/id/P/PA/PAJAS/XML-LibXML-1.65.tar.gz |
| 62 | |
| 63 | 2. Unzip and untar the file to a tmp directory. |
| 64 | |
| 65 | 3. Generate ''Makefile'' as shown below. Specify the local install directory as ''$HOME/xmllibs'' |
| 66 | {{{ |
| 67 | $ perl Makefile.PL INSTALLSITEARCH=$HOME/xmllibs |
| 68 | }}} |
| 69 | 4. Run |
| 70 | {{{ |
| 71 | $ make |
| 72 | }}} |
| 73 | 5. Run ''make test''. This will test the install. |
| 74 | {{{ |
| 75 | $ make test |
| 76 | }}} |
| 77 | 6. Run ''make install''. This will install the required libs and executables into ''$HOME/xmllibs.'' |
| 78 | {{{ |
| 79 | $ make install |
| 80 | }}} |
| 81 | [[BR]] |
| 82 | |