LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-04-2006, 03:30 PM   #1
gravesb
Member
 
Registered: May 2005
Distribution: Suse 9.3, Gentoo
Posts: 87

Rep: Reputation: 15
install XML::Parser error 255


I am trying to install some software from source on OS X 10.4.7. It requires XML::Parser. I typed the following:
# perl -MCPAN -e shell
cpan> install XML::Parser

This is the output:
CPAN: Storable loaded ok
Going to read /Users/brandongraves/.cpan/Metadata
Database was generated on Fri, 04 Aug 2006 08:32:56 GMT
Running install for module XML::Parser
Running make for M/MS/MSERGEANT/XML-Parser-2.34.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /Users/brandongraves/.cpan/sources/authors/id/M/MS/MSERGEANT/XML-Parser-2.34.tar.gz ok
Scanning cache /Users/brandongraves/.cpan/build for sizes
XML-Parser-2.34
XML-Parser-2.34/Changes
XML-Parser-2.34/Expat
XML-Parser-2.34/Expat/encoding.h
XML-Parser-2.34/Expat/Expat.pm
XML-Parser-2.34/Expat/Expat.xs
XML-Parser-2.34/Expat/Makefile.PL
XML-Parser-2.34/Expat/typemap
XML-Parser-2.34/Makefile.PL
XML-Parser-2.34/MANIFEST
XML-Parser-2.34/Parser
XML-Parser-2.34/Parser/Encodings
XML-Parser-2.34/Parser/Encodings/big5.enc
XML-Parser-2.34/Parser/Encodings/euc-kr.enc
XML-Parser-2.34/Parser/Encodings/iso-8859-2.enc
XML-Parser-2.34/Parser/Encodings/iso-8859-3.enc
XML-Parser-2.34/Parser/Encodings/iso-8859-4.enc
XML-Parser-2.34/Parser/Encodings/iso-8859-5.enc
XML-Parser-2.34/Parser/Encodings/iso-8859-7.enc
XML-Parser-2.34/Parser/Encodings/iso-8859-8.enc
XML-Parser-2.34/Parser/Encodings/iso-8859-9.enc
XML-Parser-2.34/Parser/Encodings/Japanese_Encodings.msg
XML-Parser-2.34/Parser/Encodings/README
XML-Parser-2.34/Parser/Encodings/windows-1250.enc
XML-Parser-2.34/Parser/Encodings/windows-1252.enc
XML-Parser-2.34/Parser/Encodings/x-euc-jp-jisx0221.enc
XML-Parser-2.34/Parser/Encodings/x-euc-jp-unicode.enc
XML-Parser-2.34/Parser/Encodings/x-sjis-cp932.enc
XML-Parser-2.34/Parser/Encodings/x-sjis-jdk117.enc
XML-Parser-2.34/Parser/Encodings/x-sjis-jisx0221.enc
XML-Parser-2.34/Parser/Encodings/x-sjis-unicode.enc
XML-Parser-2.34/Parser/LWPExternEnt.pl
XML-Parser-2.34/Parser/Style
XML-Parser-2.34/Parser/Style/Debug.pm
XML-Parser-2.34/Parser/Style/Objects.pm
XML-Parser-2.34/Parser/Style/Stream.pm
XML-Parser-2.34/Parser/Style/Subs.pm
XML-Parser-2.34/Parser/Style/Tree.pm
XML-Parser-2.34/Parser.pm
XML-Parser-2.34/README
XML-Parser-2.34/samples
XML-Parser-2.34/samples/canonical
XML-Parser-2.34/samples/canontst.xml
XML-Parser-2.34/samples/ctest.dtd
XML-Parser-2.34/samples/REC-xml-19980210.xml
XML-Parser-2.34/samples/xmlcomments
XML-Parser-2.34/samples/xmlfilter
XML-Parser-2.34/samples/xmlstats
XML-Parser-2.34/t
XML-Parser-2.34/t/astress.t
XML-Parser-2.34/t/cdata.t
XML-Parser-2.34/t/decl.t
XML-Parser-2.34/t/defaulted.t
XML-Parser-2.34/t/encoding.t
XML-Parser-2.34/t/ext.ent
XML-Parser-2.34/t/ext2.ent
XML-Parser-2.34/t/external_ent.t
XML-Parser-2.34/t/file.t
XML-Parser-2.34/t/finish.t
XML-Parser-2.34/t/foo.dtd
XML-Parser-2.34/t/namespaces.t
XML-Parser-2.34/t/parament.t
XML-Parser-2.34/t/partial.t
XML-Parser-2.34/t/skip.t
XML-Parser-2.34/t/stream.t
XML-Parser-2.34/t/styles.t
Removing previously used /Users/brandongraves/.cpan/build/XML-Parser-2.34

CPAN.pm: Going to build M/MS/MSERGEANT/XML-Parser-2.34.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for XML::Parser::Expat
Writing Makefile for XML::Parser
cp Parser/Encodings/x-sjis-cp932.enc blib/lib/XML/Parser/Encodings/x-sjis-cp932.enc
cp Parser/Encodings/iso-8859-7.enc blib/lib/XML/Parser/Encodings/iso-8859-7.enc
cp Parser/Style/Tree.pm blib/lib/XML/Parser/Style/Tree.pm
cp Parser/Encodings/iso-8859-9.enc blib/lib/XML/Parser/Encodings/iso-8859-9.enc
cp Parser/Encodings/x-euc-jp-unicode.enc blib/lib/XML/Parser/Encodings/x-euc-jp-unicode.enc
cp Parser/Encodings/README blib/lib/XML/Parser/Encodings/README
cp Parser/Encodings/euc-kr.enc blib/lib/XML/Parser/Encodings/euc-kr.enc
cp Parser/Encodings/windows-1250.enc blib/lib/XML/Parser/Encodings/windows-1250.enc
cp Parser/Encodings/windows-1252.enc blib/lib/XML/Parser/Encodings/windows-1252.enc
cp Parser/Encodings/big5.enc blib/lib/XML/Parser/Encodings/big5.enc
cp Parser/Encodings/iso-8859-3.enc blib/lib/XML/Parser/Encodings/iso-8859-3.enc
cp Parser/Encodings/Japanese_Encodings.msg blib/lib/XML/Parser/Encodings/Japanese_Encodings.msg
cp Parser/Style/Subs.pm blib/lib/XML/Parser/Style/Subs.pm
cp Parser/Encodings/iso-8859-4.enc blib/lib/XML/Parser/Encodings/iso-8859-4.enc
cp Parser/Encodings/iso-8859-8.enc blib/lib/XML/Parser/Encodings/iso-8859-8.enc
cp Parser/Encodings/x-euc-jp-jisx0221.enc blib/lib/XML/Parser/Encodings/x-euc-jp-jisx0221.enc
cp Parser/Encodings/iso-8859-2.enc blib/lib/XML/Parser/Encodings/iso-8859-2.enc
cp Parser/Encodings/x-sjis-jdk117.enc blib/lib/XML/Parser/Encodings/x-sjis-jdk117.enc
cp Parser/Encodings/x-sjis-unicode.enc blib/lib/XML/Parser/Encodings/x-sjis-unicode.enc
cp Parser/LWPExternEnt.pl blib/lib/XML/Parser/LWPExternEnt.pl
cp Parser/Style/Objects.pm blib/lib/XML/Parser/Style/Objects.pm
cp Parser.pm blib/lib/XML/Parser.pm
cp Parser/Style/Debug.pm blib/lib/XML/Parser/Style/Debug.pm
cp Parser/Encodings/x-sjis-jisx0221.enc blib/lib/XML/Parser/Encodings/x-sjis-jisx0221.enc
cp Parser/Style/Stream.pm blib/lib/XML/Parser/Style/Stream.pm
cp Parser/Encodings/iso-8859-5.enc blib/lib/XML/Parser/Encodings/iso-8859-5.enc
cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
/usr/bin/perl /System/Library/Perl/5.8.6/ExtUtils/xsubpp -noprototypes -typemap /System/Library/Perl/5.8.6/ExtUtils/typemap -typemap typemap Expat.xs > Expat.xsc && mv Expat.xsc Expat.c
cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -O3 -DVERSION=\"2.34\" -DXS_VERSION=\"2.34\" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" Expat.c
Running Mkbootstrap for XML::Parser::Expat ()
chmod 644 Expat.bs
rm -f ../blib/arch/auto/XML/Parser/Expat/Expat.bundle
LD_RUN_PATH="/usr/local/lib" env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib Expat.o -o ../blib/arch/auto/XML/Parser/Expat/Expat.bundle -lexpat
chmod 755 ../blib/arch/auto/XML/Parser/Expat/Expat.bundle
cp Expat.bs ../blib/arch/auto/XML/Parser/Expat/Expat.bs
chmod 644 ../blib/arch/auto/XML/Parser/Expat/Expat.bs
Manifying ../blib/man3/XML::Parser::Expat.3pm
Manifying blib/man3/XML::Parser::Style::Objects.3pm
Manifying blib/man3/XML::Parser::Style:ebug.3pm
Manifying blib/man3/XML::Parser.3pm
Manifying blib/man3/XML::Parser::Style::Subs.3pm
Manifying blib/man3/XML::Parser::Style::Tree.3pm
Manifying blib/man3/XML::Parser::Style::Stream.3pm
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/astress.........ok
t/cdata...........ok
t/decl............ok
t/defaulted.......ok
t/encoding........"my" variable $p masks earlier declaration in same scope at t/encoding.t line 94.
t/encoding........ok
t/external_ent....Couldn't load LWP based external entity handler
Switching to file-based external entity handler
(To avoid this message, use NoLWP option to XML::Parser)
t/external_ent....ok
t/file............ok
t/finish..........ok
t/namespaces......ok
t/parament........Couldn't load LWP based external entity handler
Switching to file-based external entity handler
(To avoid this message, use NoLWP option to XML::Parser)
t/parament........ok
t/partial.........ok
t/skip............ok
t/stream..........ok
t/styles..........ok
All tests successful.
Files=14, Tests=130, 1 wallclock secs ( 0.60 cusr + 0.17 csys = 0.77 CPU)
/usr/bin/make test -- OK
Running make install
mkdir /usr/local/man/man3: Permission denied at /System/Library/Perl/5.8.6/ExtUtils/Install.pm line 112
make: *** [pure_site_install] Error 255
/usr/bin/make install -- NOT OK


Does anyone know how to resolve this permission error? I am already logged in as root.
 
Old 08-05-2006, 02:58 AM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Perhaps in OS X when you mkdir a directory already present it gives a "Permission denied" error?

I would probably compile from source manually, without using CPAN.

EDIT: I just checked on an iBook running 10.1, and it returns "mkdir: Whatever: File Exists". This might be interpreted by the makefile as "Permission denied"

Last edited by ciotog; 08-05-2006 at 03:02 AM.
 
Old 08-05-2006, 10:05 AM   #3
gravesb
Member
 
Registered: May 2005
Distribution: Suse 9.3, Gentoo
Posts: 87

Original Poster
Rep: Reputation: 15
I figured it out. You have to use sudo when you enter CPAN, which I didn' realize because I was already logged in as root
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for XML::Parser... configure: error: XML::Parser perl module is required for kornerr Linux - General 11 11-16-2008 07:24 AM
Error - XML::Parser perl module is required for intltool Rudy Linux - General 7 06-15-2006 11:43 AM
Why wont XML::Parser install correctly? erisco Linux - Software 3 10-22-2005 09:32 AM
XML::Parser perl mod is req 4 intltool error BorisMcHack Slackware 4 06-23-2004 07:51 AM
Logs full of hits to 255.255.255.255; how to stop logging? mac_phil Mandriva 2 02-23-2004 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration