I'm having major difficulties installing a module on OS X. I've followed the minimal instructions on http://developer.apple.com/internet/macosx/perl.html but am getting numerous errors. Since I am a beginner at this I was wondering if someone could follow through my process and see if I'm missing something obvious. Below are the 10 steps I've been banging my head against for the past 8 hours:
1) In order to install XML::Parser I first need to install expat. I downloaded 1.95.2.tar.gz from http://sourceforge.net/project/showfiles.php?group_id=10127 and unpacked it. 2) I then used a shell to move to the expat-1.95.2 directory and performed ./configure which seemed to work correctly 3) I then typed make and got the following results: cd lib && make make[1]: Nothing to be done for `all'. cd xmlwf && make cc -o xmlwf -static xmlwf.o xmlfile.o codepage.o unixfilemap.o -L../lib/.libs -lexpat /usr/bin/ld: can't locate file for: -lcrt0.o make[1]: *** [xmlwf] Error 1 make: *** [xmlwf] Error 2 4) hoping that these errors weren't too bad I performed make test which gave me this: make: *** No rule to make target `test'. Stop. 5) hoping that wasn't too bad I tried make install which gave me: for dir in lib xmlwf; do \ (cd $dir && make install); \ done /bin/sh ../conftools/mkinstalldirs /usr/local/lib /usr/local/include /bin/sh ../libtool --mode=install /usr/bin/install -c libexpat.la /usr/local/lib/libexpat.la /usr/bin/install -c .libs/libexpat.lai /usr/local/lib/libexpat.la /usr/bin/install: /usr/local/lib/libexpat.la: Permission denied make[1]: *** [install] Error 1 cc -o xmlwf -static xmlwf.o xmlfile.o codepage.o unixfilemap.o -L../lib/.libs -lexpat /usr/bin/ld: can't locate file for: -lcrt0.o make[1]: *** [xmlwf] Error 1 make: *** [install] Error 2 6) I then proceeded to install XML-Parser-2.30 (several times) using perl Makefile.pl make make test make install 7) and also tried CPAN.pm several times (plus got off on a three hour tangent trying to get that to work). 8) Ultimately somehow I got XML::Parser to sort of install so that a script with: use XML::Parser; actually finds the XML::Parser but fails because it... Can't locate XML/Parser/Expat.pm in @INC 9) The editor I'm using (BBEdit) listed the locations @INC contains and I manually went and found a file called Expat.pm in the original Expat folder (from step 1) and manually put it in one of the folders listed. 10) Attempting to run/check syntax still indicates same error as step 8. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
