I am getting same error when using 'make install' :

Warning: You do not have permissions to install into 
/usr/perl5/site_perl/5.005/sun4-solaris at /usr/perl5/5.00503/ExtUtils/Install.pm line 
61.
mkdir /usr/perl5/site_perl/5.005/XML: Permission denied at 
/usr/perl5/5.00503/ExtUtils/Install.pm line 114

bottom posted full details:

-----Original Message-----
From: Wiggins d Anconia [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 08, 2004 2:58 PM
To: Jayakumar Rajagopal; Perl Beginners
Subject: Re: installing perl module without root permission


> Hi friends,
>       I am in this condition :
>               (1) I have to install XML::Simple or XML::Twig or such
XML module.
>               (2) Here Sys. administrator, does not install/ or allow
me to install (1). When I try to use within my user, it says 'no
permission' for wrting.
>               (3) my Unix System does not have internet connectivity,
so cannot use the module directly from net.
> 
>       Is there anyway installing/using these XML modules without su
permission?
> 

The normal installation procedure can be followed but you will need to
specify a prefix to install into, such as,

perl Makefile.pl PREFIX=/home/jay/perl5lib
make
make test
make install

Then in your scripts you would use,

use lib '/home/jay/perl5lib';

Alternatively,

perldoc FindBin

I assume you know how to download the source tar ball from CPAN over the
web and get it onto the machine yourself.  Note that XML::Simple has at
least one dependency of a base XML module, the same procedure should
work for most of today's modules.  Additionally some XML modules
(including potential dependencies of XML::Simple) rely on the expat c
libraries.  I leave that as an exercise for the reader, though if the
reader gives it an honest go and gets stuck, give us a ring and we will
get it sorted....

http://danconia.org

$$$>perl Makefile.PL PREFIX=/export/home2/jayaraj/JXML
Do you want to install 'xml_pp' (XML pretty printer)? [y] n
Do you want to install 'xml_grep' (XML grep - grep XML files using XML::Twig's subset 
of XPath)? [y] n
Do you want to install 'xml_spellcheck' (spellcheck XML files skipping tags)? [y] n
Writing Makefile for XML::Twig
$$$>make
echo "building Twig.pm"
building Twig.pm
/usr/bin/perl speedup Twig.pm.slow > Twig.pm
perl version is 5.00503 XML::Parser version is 2.31
/usr/bin/perl check_optional_modules
iconv: illegal option -- V
Usage: iconv -f fromcode -t tocode [file...]
Did not find iconv
Skip blib/lib/XML/Twig/XPath.pm (unchanged)
Skip blib/lib/XML/Twig.pm (unchanged)
Manifying blib/man3/XML::Twig.3
$$$>make test
echo "building Twig.pm"
building Twig.pm
/usr/bin/perl speedup Twig.pm.slow > Twig.pm
perl version is 5.00503 XML::Parser version is 2.31
/usr/bin/perl check_optional_modules
iconv: illegal option -- V
Usage: iconv -f fromcode -t tocode [file...]
Did not find iconv
Skip blib/lib/XML/Twig/XPath.pm (unchanged)
Skip blib/lib/XML/Twig.pm (unchanged)
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib 
-I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503 -e 'use Test::Harness 
qw(&runtests $verbose); $ver
bose=0; runtests @ARGV;' t/*.t
t/is_field..........ok
t/pod...............skipping, Test::Pod required
ok
t/test1.............ok
t/test2.............ok
t/test3.............ok
t/test4.............ok
t/test5.............ok
t/test_additional...Illegal hex digit ignored at t/test_additional.t line 1122.
Illegal hex digit ignored at t/test_additional.t line 1122.
Tie::IxHash not available: skipping 7 tests
need perl 5.8 or above to perform these tests (you have 5.00503): skipping 3 tests
require XML::Handler::YAWriter: skipping 3 tests
XML::SAX::Writer not available: skipping 5 tests
ok
t/test_attregexp_cond.ok
t/test_cdata........ok
t/test_class_methods.ok
t/test_comment_handler.ok
t/test_drop_comments.ok
t/test_entities.....ok
t/test_erase........ok
t/test_errors.......ok
t/test_expand_external_entities.ok
t/test_ignore_elts..ok
t/test_nav..........ok
t/test_need_io_scalar.skipping, need IO::Scalar
ok
t/test_need_use_bytes.skipping, need to be able to use bytes
ok
t/test_pi_handler...ok
t/test_pos..........ok
t/test_simplify.....Name "XML::Simple::PREFERRED_PARSER" used only once: possible typo 
at t/test_simplify.t line 22.
Name "XML::Simple::VERSION" used only once: possible typo at t/test_simplify.t line 16.
skipping: XML::Simple is not installed
ok
t/test_spaces.......ok
t/test_twig_roots...ok
t/test_unique_xpath.ok
t/test_variables....ok
t/test_with_lwp.....skipping, LWP not available
ok
t/test_xpath_cond...ok
t/xmlxpath_01basic..skipping: XML::XPath not available
ok
t/xmlxpath_02descendant.skipping: XML::XPath not available
ok
t/xmlxpath_03star...skipping: XML::XPath not available
ok
t/xmlxpath_04pos....skipping: XML::XPath not available
ok
t/xmlxpath_05attrib.skipping: XML::XPath not available
ok
t/xmlxpath_06attrib_val.skipping: XML::XPath not available
ok
t/xmlxpath_07count..skipping: XML::XPath not available
ok
t/xmlxpath_08name...skipping: XML::XPath not available
ok
t/xmlxpath_09a_string_length.skipping: XML::XPath not available
ok
t/xmlxpath_09string_length.skipping: XML::XPath not available
ok
t/xmlxpath_10pipe...skipping: XML::XPath not available
ok
t/xmlxpath_12axisdescendant.skipping: XML::XPath not available
ok
t/xmlxpath_13axisparent.skipping: XML::XPath not available
ok
t/xmlxpath_14axisancestor.skipping: XML::XPath not available
ok
t/xmlxpath_15axisfol_sib.skipping: XML::XPath not available
ok
t/xmlxpath_16axisprec_sib.skipping: XML::XPath not available
ok
t/xmlxpath_17axisfollowing.skipping: XML::XPath not available
ok
t/xmlxpath_18axispreceding.skipping: XML::XPath not available
ok
t/xmlxpath_19axisd_or_s.skipping: XML::XPath not available
ok
t/xmlxpath_20axisa_or_s.skipping: XML::XPath not available
ok
t/xmlxpath_21allnodes.skipping: XML::XPath not available
ok
t/xmlxpath_22name_select.skipping: XML::XPath not available
ok
t/xmlxpath_23func...skipping: XML::XPath not available
ok
t/xmlxpath_24namespaces.skipping: XML::XPath not available
ok
t/xmlxpath_25scope..skipping: XML::XPath not available
ok
t/xmlxpath_26predicate.skipping: XML::XPath not available
ok
t/xmlxpath_28ancestor2.skipping: XML::XPath not available
ok
t/xmlxpath_29desc_with_predicate.skipping: XML::XPath not available
ok
t/xmlxpath_30lang...skipping: XML::XPath not available
ok
t/xmlxpath_additional.skipping: XML::XPath not available
ok
t/xmlxpath_nav......skipping: XML::XPath not available
ok
t/xmlxpath_test1....skipping: XML::XPath not available
ok
t/xmlxpath_test_twig_roots.skipping: XML::XPath not available
ok
t/xmlxpath_test_with_handlers.skipping: XML::XPath not available
ok
t/xmlxpath_xpath_cond.skipping: XML::XPath not available
ok
t/zz_dump_config....

Configuration:

perl: 5.00503
OS: solaris - sun4-solaris
XML::Parser              : 2.31
expat                    : 1.95.5
Scalar::Util             : <not available>
WeakRef                  : <not available>
Encode                   : <not available>
Text::Iconv              : <not available>
Unicode::Map8            : <not available>
LWP                      : <not available>
HTML::Entities           : <not available>
Tie::IxHash              : <not available>
XML::XPath               : <not available>
Test                     : 1.122
Test::Pod                : <not available>
XML::Simple              : <not available>
XML::Handler::YAWriter   : <not available>
XML::SAX::Writer         : <not available>
IO::Scalar               : <not available>


Please add this information to bug reports (you can run t/zz_dump_config.t to get it)

ok
All tests successful.
Files=66,  Tests=1276, 13 wallclock secs (10.69 cusr +  1.54 csys = 12.23 CPU)
$$$>make install
echo "building Twig.pm"
building Twig.pm
/usr/bin/perl speedup Twig.pm.slow > Twig.pm
perl version is 5.00503 XML::Parser version is 2.31
/usr/bin/perl check_optional_modules
iconv: illegal option -- V
Usage: iconv -f fromcode -t tocode [file...]
Did not find iconv
Skip blib/lib/XML/Twig/XPath.pm (unchanged)
Skip blib/lib/XML/Twig.pm (unchanged)
Manifying blib/man3/XML::Twig.3
Warning: You do not have permissions to install into 
/usr/perl5/site_perl/5.005/sun4-solaris at /usr/perl5/5.00503/ExtUtils/Install.pm line 
61.
mkdir /usr/perl5/site_perl/5.005/XML: Permission denied at 
/usr/perl5/5.00503/ExtUtils/Install.pm line 114
*** Error code 2
make: Fatal error: Command failed for target `pure_site_install'
[EMAIL PROTECTED]</export/home2/jayaraj/JXML/XML-Twig-3.14>

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to