Levent Ozturk
Enter
Perl Source Install
   wget http://www.cpan.org/src/5.0/perl-5.26.0.tar.gz
     tar -xzf perl-5.26.0.tar.gz
     cd perl-5.26.0
     ./Configure -des
     make
     make test
     make install

 This will install new perl under /usr/local/bin/perl

Original perl that comes with linux is under /usr/bin/perl. Make sure to modify .pl files top lines to point the new perl. This line tells apachhe which perl and @INC to run

------------------------------

List installed perl module

instmodsh

Available commands are: l - List all installed modules m - Select a module q - Quit the program cmd?

 

Installing packages system-wide

$ env PERL_MM_USE_DEFAULT=1 cpan
# Answer 'yes' if CPAN asks to configure itself automatically
cpan> o conf make_install_make_command '/usr/bin/sudo /usr/bin/make'
cpan> o conf mbuild_install_build_command '/usr/bin/sudo ./Build'
cpan> o conf prerequisites_policy follow
cpan> o conf commit
cpan> install Some::Module

 

To Remove perl modules run the followinf perl script

 

use 5.010;
use ExtUtils::Installed qw();
use ExtUtils::Packlist qw();

die "Usage: $0 Module::Name Module::Name\n" unless @ARGV;

for my $mod (@ARGV) {
my $inst = ExtUtils::Installed->new;

foreach my $item (sort($inst->files($mod))) {
say "removing $item";
unlink $item or warn "could not remove $item: $!\n";
}

my $packfile = $inst->packlist($mod)->packlist_file;
print "removing $packfile\n";
unlink $packfile or warn "could not remove $packfile: $!\n";
}

 

 

All the material listed and linked at this World Wide Web domain are strictly private property and copyrighted. © Copyright -∞-∞ Levent Ozturk. All rights reserved. Reproduction or use of any material, documents and related graphics and any other material from this World Wide Web server is strictly prohibited. Site Map