Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Unable to install perl module Sendmail

by sravs448 (Acolyte)
on Sep 15, 2014 at 20:24 UTC ( [id://1100634]=perlquestion: print w/replies, xml ) Need Help??

sravs448 has asked for the wisdom of the Perl Monks concerning the following question:

I am not able to install perl sendmail module. Below are the steps I followed. Any help will be greatly appreciated.
scmadmin@Linux-sdfdsf:<bin,28> perl -v This is perl, v5.8.8 built for x86_64-linux-thread-multi Copyright 1987-2006, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.
scmadmin@Linux-sdfdsf:<bin,29> /usr/bin/perl -MCPAN -e 'install Mail:: +Sendmail' Sorry, we have to rerun the configuration dialog for CPAN.pm due to some missing parameters... The following questions are intended to help you with the configuration. The CPAN module needs a directory of its own to cache important index files and maybe keep a temporary mirror of CPAN files. This may be a site-wide or a personal directory. I see you already have a directory /home/scmadmin/.cpan Shall we use it as the general CPAN build and cache directory? <cpan_home> CPAN build and cache directory? [/home/scmadmin/.cpan] /home/scmadmin/ +.cpan Unless you are accessing the CPAN on your filesystem via a file: URL, CPAN.pm needs to keep the source files it downloads somewhere. Please supply a directory where the downloaded files are to be kept. <keep_source_where> Download target directory? [/home/scmadmin/.cpan/sources] /home/scmadm +in/.cpan/sources <build_dir> Directory where the build process takes place? [/home/scmadmin/.cpan/b +uild] /home/scmadmin/.cpan/build Normally CPAN.pm keeps config variables in memory and changes need to be saved in a separate 'o conf commit' command to make them permanent between sessions. If you set the 'auto_commit' option to true, changes to a config variable are always automatically committed to disk. <auto_commit> Always commit changes to config variables to disk? [no] no CPAN.pm can limit the size of the disk area for keeping the build directories with all the intermediate files. <build_cache> Cache size for build directory (in MB)? [100] 100 The CPAN indexes are usually rebuilt once or twice per hour, but the typical CPAN mirror mirrors only once or twice per day. Depending on the quality of your mirror and your desire to be on the bleeding edge, you may want to set the following value to more or less than one day (which is the default). It determines after how many days CPAN.pm downloads new indexes. <index_expire> Let the index expire after how many days? [1] 1 By default, each time the CPAN module is started, cache scanning is performed to keep the cache size in sync. To prevent this, answer 'never'. <scan_cache> Perform cache scanning (atstart or never)? [atstart] atstart To considerably speed up the initial CPAN shell startup, it is possible to use Storable to create a cache of metadata. If Storable is not available, the normal index mechanism will be used. Note: this mechanism is not used when use_sqlite is on and SQLLite is running. <cache_metadata> Cache metadata (yes/no)? [yes] yes The CPAN module can detect when a module which you are trying to build depends on prerequisites. If this happens, it can build the prerequisites for you automatically ('follow'), ask you for confirmation ('ask'), or just ignore them ('ignore'). Please set your policy to one of the three values. <prerequisites_policy> Policy on building prerequisites (follow, ask or ignore)? [ask] ask Every Makefile.PL is run by perl in a separate process. Likewise we run 'make' and 'make install' in separate processes. If you have any parameters (e.g. PREFIX, UNINST or the like) you want to pass to the calls, please specify them here. If you don't understand this question, just press ENTER. Typical frequently used settings: PREFIX=~/perl # non-root users (please see manual for more hint +s) <makepl_arg> Parameters for the 'perl Makefile.PL' command? [] Parameters for the 'make' command? Typical frequently used setting: -j3 # dual processor system (on GNU make) <make_arg> Your choice: [] Parameters for the 'make install' command? Typical frequently used setting: UNINST=1 # to always uninstall potentially conflicting fil +es <make_install_arg> Your choice: [] A Build.PL is run by perl in a separate process. Likewise we run './Build' and './Build install' in separate processes. If you have any parameters you want to pass to the calls, please specify them here. Typical frequently used settings: --install_base /home/xxx # different installation dire +ctory <mbuildpl_arg> Parameters for the 'perl Build.PL' command? [] Parameters for the './Build' command? Setting might be: --extra_linker_flags -L/usr/foo/lib # non-standard library locati +on <mbuild_arg> Your choice: [] Do you want to use a different command for './Build install'? Sudo users will probably prefer: su root -c ./Build or sudo ./Build or /path1/to/sudo -u admin_account ./Build <mbuild_install_build_command> or some such. Your choice: [./Build] Parameters for the './Build install' command? Typical frequently used setting: --uninst 1 # uninstall conflicting files <mbuild_install_arg> Your choice: [] If you're accessing the net via proxies, you can specify them in the CPAN configuration or via environment variables. The variable in the $CPAN::Config takes precedence. <ftp_proxy> Your ftp_proxy? [] <http_proxy> Your http_proxy? [] <no_proxy> Your no_proxy? [] CPAN needs access to at least one CPAN mirror. As you did not allow me to connect to the internet you need to supply a valid CPAN URL now. Please enter the URL of your CPAN mirror http://www.cpan.org/ Configuration does not allow connecting to the internet. Current set of CPAN URLs: http://www.cpan.org/ Enter another URL or RETURN to quit: [] New urllist http://www.cpan.org/ Please remember to call 'o conf commit' to make the config permanent! CPAN: Storable loaded ok (v2.15) Going to read '/home/scmadmin/.cpan/Metadata' Database was generated on Mon, 15 Sep 2014 09:53:18 GMT Running install for module 'Mail::Sendmail' CPAN: YAML loaded ok (v0.72) Running make for M/MI/MIVKOVIC/Mail-Sendmail-0.79.tar.gz CPAN: Digest::SHA loaded ok (v5.48) CPAN: Compress::Zlib loaded ok (v2.03) Checksum for /home/scmadmin/.cpan/sources/authors/id/M/MI/MIVKOVIC/Mai +l-Sendmail-0.79.tar.gz ok CPAN: Archive::Tar loaded ok (v1.68) Mail-Sendmail-0.79/ Mail-Sendmail-0.79/Todo Mail-Sendmail-0.79/README Mail-Sendmail-0.79/MANIFEST Mail-Sendmail-0.79/test.pl Mail-Sendmail-0.79/Sendmail.pm Mail-Sendmail-0.79/Changes Mail-Sendmail-0.79/Makefile.PL Mail-Sendmail-0.79/Sendmail.html CPAN: File::Temp loaded ok (v0.22) CPAN.pm: Going to build M/MI/MIVKOVIC/Mail-Sendmail-0.79.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Mail::Sendmail ********************************************************************** NOTE ---- The test (test.pl) is a real test for this module: it sends an e-mail. You may want to edit test.pl before running it (directly or through make test), so the mail is sent to you. If you also leave my address, the mail goes into a database from which I can get statistics. Read the docs, and have fun... ********************************************************************** cp Sendmail.pm blib/lib/Mail/Sendmail.pm Manifying blib/man3/Mail::Sendmail.3pm MIVKOVIC/Mail-Sendmail-0.79.tar.gz make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl 1..2 Test Mail::Sendmail 0.79 Trying to send a message to the author (and/or whoever if you edited t +est.pl) (The test is designed so it can be run by Test::Harness from CPAN.pm. Edit it to send the mail to yourself for more concrete feedback. If yo +u do this, you also need to specify a different mail server, and possibl +y a different From: address.) Current recipient(s): 'Sendmail Test <sendmail@alma.ch>' ok 1 Server set to: mail.alma.ch Sending... content of $Mail::Sendmail::log: Mail::Sendmail v. 0.79 - Mon Sep 15 16:16:27 2014 Date: Mon, 15 Sep 2014 16:16:27 -0400 Server: localhost Port: 25 From: sendmail@alma.ch Subject: Mail::Sendmail version 0.79 test To: sendmail@alma.ch Result: 250 2.0.0 s8FKMkj7000302 Message accepted for delivery content of $Mail::Sendmail::error: connect to mail.alma.ch failed (Connection timed out) connect to mail.alma.ch failed ok 2 MIVKOVIC/Mail-Sendmail-0.79.tar.gz make test -- OK Running make install Prepending /home/scmadmin/.cpan/build/Mail-Sendmail-0.79-MNOVHo/blib/a +rch /home/scmadmin/.cpan/build/Mail-Sendmail-0.79-MNOVHo/blib/lib to +PERL5LIB for 'install' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! ERROR: Can't create '/usr/lib/perl5/site_perl/5.8.8/Mail' mkdir /usr/lib/perl5/site_perl/5.8.8/Mail: Permission denied at /usr/l +ib/perl5/5.8.8/ExtUtils/Install.pm line 457 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! at -e line 1 make: *** [pure_site_install] Error 13 MIVKOVIC/Mail-Sendmail-0.79.tar.gz make install -- NOT OK

Replies are listed 'Best First'.
Re: Unable to install perl module Sendmail
by roboticus (Chancellor) on Sep 15, 2014 at 20:31 UTC

    sravs448:

    If you look between the bars of '!' marks, you'll see "ERROR: Can't create '/usr/lib/perl5/site_perl/5.8.8/Mail'". That indicates that your account likely doesn't have permissions to install perl modules. Check with your system administrator to see if he can let you do the install, or if he will do the install for you.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

Re: Unable to install perl module Sendmail
by Anonymous Monk on Sep 15, 2014 at 21:15 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1100634]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-20 03:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found