Hi Monks,


While am installing perl module via CPAN it shows the below error.
And i have executed the below command

cpan cpan> install Archive::Tar

And the error is

Running make install Warning: You do not have permissions to install into /usr/lib64/perl5/ +site_perl/5.8.8/x86_64-linux-thread-multi at /usr/lib/perl5/5.8.8/Ext +Utils/Install.pm line 114. mkdir /usr/lib/perl5/site_perl/5.8.8/Archive: Permission denied at /us +r/lib/perl5/5.8.8/ExtUtils/Install.pm line 176 make: *** [pure_site_install] Error 13 /usr/bin/make install -- NOT OK You may have to su to root to install the package

my requirements are
1) install the perl modules in "/install/others/" folder, here i have permission to write the file.
2) Include this path to @INC by default

for requirement1: i have updated the cpan config as below
cpan> o conf CPAN::Config options and /home/iesadm/.cpan/CPAN/MyConfig.pm: commit Commit changes to disk defaults Reload defaults from disk init Interactive setting of all options build_cache 30 build_dir /install/others/.cpan/build cache_metadata 1 cpan_home /install/others/.cpan dontload_hash ftp /usr/bin/ftp ftp_proxy getcwd cwd gpg /usr/bin/gpg gzip /bin/gzip histfile /install/others/.cpan/histfile histsize 600 http_proxy inactivity_timeout 0 index_expire 1 inhibit_startup_message 0 keep_source_where /install/others/.cpan/sources links make /usr/bin/make make_arg make_install_arg makepl_arg ncftp ncftpget no_proxy pager /usr/bin/less prerequisites_policy ask scan_cache atstart shell /bin/ksh tar /bin/tar term_is_latin 1 unzip /usr/bin/unzip urllist http://cpan.perl.org/ http://ppm.activestate.com/CPAN/ wget /usr/bin/wget

My system information is

$ uname -a Linux weblt0001 2.6.18-238.12.1.el5 #1 SMP Sat May 7 20:18:50 EDT 2011 + x86_64 x86_64 x86_64 GNU/Linux

How can i handle this scenario.

Thanks
Shanmugam A.


In reply to Perl Module Installation in Linux RedHat OS by shan_emails

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.