Linux and Perl are both free software, and it's wonderful to combine the two. Perl can be installed by following the steps below, and perl can sing under Linux.
1, get the latest version of perl, the current version is 5.6.0, that is stable.tar.gz.
2, solution package:
gunzip stable.tar .gz
tar xvf stable.tar
Get the directory perl-5.6.0
3, install perl in the directory perl-5.6.0 :
rm -f config.sh Policy.sh
sh Configure -de
make
make test
make install
config.sh Policy.sh is the configuration file for the previous installation, when installing or upgrading the installation
Remove it.
sh Configure -de installation using the default configuration, generally will be ok.
After the installation is complete, the directory where perl is /usr/local/lib/perl5, The perl executable file
is in /usr/local/bin.
4, About .html files
When installing perl, you can't automatically install .html files, there is a
in perl-5.6.0 directory Installhtml file, execute perl installhtml -help to get help, use
installhtml to compile .pod and .pm files to get the corresponding .html file, which has
Please use your own body.
The following is a program I have written with similar functions.
simple_find("5.6.0");# Source directory containing .pm files
use Pod::Html;
sub simple_find{
$sourth="/usr/local/Lib/perl5/5.6.0html/"; #target directory containing .html
my ($input)=@_;
my $file;
$ddir=$sourth.$input;
$cont=`file $ddir`;
if ($cont !~/$ddir\\:\\sdirectory/){
`mkdir $ddir`;
}
opendir(md,$ Input);
my @file=readdir(md);
closedir(md);
@pfile= grep(m/\\.pm/,@file);
my @ Dfile= grep(!m/\\.pm/,@file);
@dfile=grep(!m/^\\./,@dfile);
foreach $pfile(@pfile){
$pfile=~/\\.pm/;
$dfile=$`;
$sfile=$input."/".$pfile;
$dfile=$sourth.$input. "/".$dfile."\\.html";
pod2html(
"--infile=$sfile",
"--outfile=$dfile");
}
Foreach $file(@dfile){
$vale=$input."/".$file;
$cont=`file $vale`;
if ($cont=~/$vale\\: \\sdirectory/){
simple_find($vale);
}
}
}
Use the above program to get a target directory consistent with the source directory structure, including the corresponding. Html file.
Note: Using the above two methods will produce a class error that cannot be converted. In fact, it has nothing to do with the big picture and can be ignored.
5, module installation
gunzip Module.tar.gz
tar xvf Moudle.tar
Go to the corresponding directory< Br>
perl Makefile.PL
make
make test
make install
After the installation is complete, the module is in /usr/local/lib/In the perl5/site_perl directory, the .html
file cannot be installed automatically. It needs to be installed using the method described above.
When compiling the program today, the error: storage class specified for parameter is not found in
HAProxy provides high availability, load balancing, and proxy for TCP and HTTP applications, support
Computer Store News: According to the latest report from a German technology website, Valves Steam B
Because the installation of debian uses a minimal installation, the default installation in Chinese,
Introduction to the ISO boot method of the hard disk under Linux system
Fedora 18 will support UEFI Secure Boot
Linux system security hardening tutorial
Teach you 5 steps to restore the password of Ubuntu system
Linux awk built-in variable introduction
Nginx configuration reverse proxy server
Microsoft extends the life cycle of Vista and Windows 7
Why is it time to modify the Linux system with the date command?
Awk View the number of ip connections (common application one)
Linux interview questions Daquan
30 questions that must be mastered by embedded system Linux kernel development engineers
Love editing video coloring skills tutorial
Windows 8 Mobile Center Connect External Display Settings
Windows 8 system new features forecast
In the spring cold season, the life calendar prevents you from catching a cold!
Win8/Win8.1 prompts "IME is disabled" What to do
Can mobile phones and computers simultaneously log QQ?
Windows 8 Local Security Policy Q&A
What if the win7 system cannot delete the trust installation protection file?
How to disable Win7 Open IE appears to be the default browser prompt