| Author |
Message |
Daniel Okely
| | Posted on Friday, February 20, 2004 - 3:45 pm: | |
Information on trying to install XML::LibXML manually becuase perl -MCPAN -e "install XML::LibXML" fails. OS: Windows XP Professional Perl: ActiveState ActivePerl 5.8 As far as I can tell the XML::LibXML package/module is a Perl 'wrapper' for the LibXML library that is written in C. So, having downloaded the win32 binary LibXML from http://xmlsoft.org (as the error message tells me to) and extracting all the dlls and header files into a PATH directory, "perl Makefile.PL" still fails. Inside Makefile.PL you can see that it is looking for \bin\xml2-config to test the installation of the LibXML library before it creates the Makefile. The problem is that the win32 download I got doesn't have a bin\ directory or an xml2-config program. Anyway, if anyone has had success installing LibXML please post your story. In the mean time I'll be having another look at LibXML... If you're having trouble installing XML::DOM see the topic about that in this forum. Post there if you have more questions about XML::DOM - I managed to install that fine (eventually). Cheers, Daniel Okely |
Daniel Okely
| | Posted on Tuesday, February 24, 2004 - 4:16 pm: | |
OK. Success installing LibXML! (and an easier way to install XML::DOM) Run PPM from the start menu. type: rep add theoryx5 http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn :/PPMServer58 then type install XML::LibXML if it asks you which match to install type: install XML::LibXML 1 There is one question about the libxml2.dll. Answer it 'yes' if you need it download the newest version for you. Sit back and wait...and it should be done! The same works for XML::DOM like this: install XML::DOM install XML::DOM 1 Hope this helps! To test try the following two lines, from the normal command prompt. (Not the ppm command prompt) perl -MXML::DOM -e 1 perl -MXML::LibXML -e 1 Apparently if there are no error messages, then they are installed properly. I'll try to find out some stuff about the other library we need "Bundle::LWP". I have never used Perl before -- all the info in these instructions I've found using Google. These instructions are for ActivePerl on Windows. Post here if this works/doesn't work for you. Cheers, Daniel Okely |
H.L. Hiew Board Administrator Username: admin
| | Posted on Tuesday, February 24, 2004 - 6:21 pm: | |
Great work, Daniel. FYI: The test "perl -MXML::DOM -e 1" only tests whether it can load the module. Doesn't guarantee everything in the module works. The command actually means: load the XML::DOM module and run the script contain text "1" (meaning "TRUE", or a script-guaranteed-to-work in perl). PPM is the perl package manager for ActivePerl under Windows. I was under the impression there were still no PPMs for XML::DOM and XML::LibXML because the Windows ports is still not complete (that's why you get the "test failed" messages when you installed them using "perl -MCPAN ..."). It looks to me like they have forced created PPMs for them anyway. Cut a long story short: if it installs, you'll have enough in the two modules to do this unit. So good work. If I can get some confirmation from other students what you said works as you stated, can I archive your message and use it as instructions for the unit in the future (with your name and everything exactly as it appears above)? It'll save me typing out a new set of instructions. Hiew. |
Daniel Okely
| | Posted on Wednesday, February 25, 2004 - 10:31 am: | |
Hiew, If it works, I have no problem with you using these instructions as they appear above. Hope they can help other students. I've managed to get part of the LWP to install using: perl Makefile.PL nmake install but this only works in 3 of the six unzipped .tar.gz files that are part of the bundle. The main libwww-perl one works though. Cheers, Daniel Okely |
Zdravic, Milos
| | Posted on Wednesday, February 25, 2004 - 1:54 pm: | |
worked for me. thanks mate!!! milos 30177005 |
Chinnery, Simon
| | Posted on Sunday, March 07, 2004 - 4:00 pm: | |
I just successfully installed XML-DOM and XML-LibXML using ppm. However, I had to run ppm from a command prompt (which used shell version 2.2.0) not from the start menu (which used shell version 3.0.1). When using the ppm from Start menu, issuing any search or install command just resulting in the app waiting, and waiting, and in the end nothing. I had to do a ctrl + c to terminate. Using ppm from the command line however worked great! The only difference is when installing XML-LibXML, the syntax for adding a repository is different: set repository theoryx5 http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn :/PPMServer Note: set repository rather than add rep . Basically, I had major problems installing any XML packages using CPAN, but using ppm from the command line in the end was so easy. |
Daniel Okely
| | Posted on Monday, March 08, 2004 - 11:00 am: | |
The start menu item runs a batch file "ppm3-bin.bat" which runs a complicated script before running ppm. Whereas running ppm straight from the command line just runs the program. I think this must be part of the difference. Good to hear you got it to install. Cheers, Daniel Okely |
|