⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 perlmodinstall.1

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 1
📖 第 1 页 / 共 2 页
字号:
.\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05).\".\" Standard preamble:.\" ========================================================================.de Sh \" Subsection heading.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...de Sp \" Vertical space (when we can't use .PP).if t .sp .5v.if n .sp...de Vb \" Begin verbatim text.ft CW.nf.ne \\$1...de Ve \" End verbatim text.ft R.fi...\" Set up some character translations and predefined strings.  \*(-- will.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left.\" double quote, and \*(R" will give a right double quote.  \*(C+ will.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,.\" nothing in troff, for use with C<>..tr \(*W-.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'.ie n \{\.    ds -- \(*W-.    ds PI pi.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch.    ds L" "".    ds R" "".    ds C` "".    ds C' ""'br\}.el\{\.    ds -- \|\(em\|.    ds PI \(*p.    ds L" ``.    ds R" '''br\}.\".\" Escape single quotes in literal strings from groff's Unicode transform..ie \n(.g .ds Aq \(aq.el       .ds Aq '.\".\" If the F register is turned on, we'll generate index entries on stderr for.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index.\" entries marked with X<> in POD.  Of course, you'll have to process the.\" output yourself in some meaningful fashion..ie \nF \{\.    de IX.    tm Index:\\$1\t\\n%\t"\\$2"...    nr % 0.    rr F.\}.el \{\.    de IX...\}.\".\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2)..\" Fear.  Run.  Save yourself.  No user-serviceable parts..    \" fudge factors for nroff and troff.if n \{\.    ds #H 0.    ds #V .8m.    ds #F .3m.    ds #[ \f1.    ds #] \fP.\}.if t \{\.    ds #H ((1u-(\\\\n(.fu%2u))*.13m).    ds #V .6m.    ds #F 0.    ds #[ \&.    ds #] \&.\}.    \" simple accents for nroff and troff.if n \{\.    ds ' \&.    ds ` \&.    ds ^ \&.    ds , \&.    ds ~ ~.    ds /.\}.if t \{\.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u".    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'.\}.    \" troff and (daisy-wheel) nroff accents.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'.ds 8 \h'\*(#H'\(*b\h'-\*(#H'.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#].ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#].ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#].ds ae a\h'-(\w'a'u*4/10)'e.ds Ae A\h'-(\w'A'u*4/10)'E.    \" corrections for vroff.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'.    \" for low resolution devices (crt and lpr).if \n(.H>23 .if \n(.V>19 \\{\.    ds : e.    ds 8 ss.    ds o a.    ds d- d\h'-1'\(ga.    ds D- D\h'-1'\(hy.    ds th \o'bp'.    ds Th \o'LP'.    ds ae ae.    ds Ae AE.\}.rm #[ #] #H #V #F C.\" ========================================================================.\".IX Title "PERLMODINSTALL 1".TH PERLMODINSTALL 1 "2007-12-18" "perl v5.10.0" "Perl Programmers Reference Guide".\" For nroff, turn off justification.  Always turn off hyphenation; it makes.\" way too many mistakes in technical documents..if n .ad l.nh.SH "NAME"perlmodinstall \- Installing CPAN Modules.SH "DESCRIPTION".IX Header "DESCRIPTION"You can think of a module as the fundamental unit of reusable Perlcode; see perlmod for details.  Whenever anyone creates a chunk ofPerl code that they think will be useful to the world, they registeras a Perl developer at http://www.cpan.org/modules/04pause.htmlso that they can then upload their code to the \s-1CPAN\s0.  The \s-1CPAN\s0 is theComprehensive Perl Archive Network and can be accessed athttp://www.cpan.org/ , and searched at http://search.cpan.org/ ..PPThis documentation is for people who want to download \s-1CPAN\s0 modulesand install them on their own computer..Sh "\s-1PREAMBLE\s0".IX Subsection "PREAMBLE"First, are you sure that the module isn't already on your system?  Try\&\f(CW\*(C`perl \-MFoo \-e 1\*(C'\fR.  (Replace \*(L"Foo\*(R" with the name of the module; forinstance, \f(CW\*(C`perl \-MCGI::Carp \-e 1\*(C'\fR..PPIf you don't see an error message, you have the module.  (If you dosee an error message, it's still possible you have the module, butthat it's not in your path, which you can display with \f(CW\*(C`perl \-e"print qq(@INC)"\*(C'\fR.)  For the remainder of this document, we'll assumethat you really honestly truly lack an installed module, but havefound it on the \s-1CPAN\s0..PPSo now you have a file ending in .tar.gz (or, less often, .zip).  Youknow there's a tasty module inside.  There are four steps you must nowtake:.IP "\fB\s-1DECOMPRESS\s0\fR the file" 5.IX Item "DECOMPRESS the file".PD 0.IP "\fB\s-1UNPACK\s0\fR the file into a directory" 5.IX Item "UNPACK the file into a directory".IP "\fB\s-1BUILD\s0\fR the module (sometimes unnecessary)" 5.IX Item "BUILD the module (sometimes unnecessary)".IP "\fB\s-1INSTALL\s0\fR the module." 5.IX Item "INSTALL the module.".PD.PPHere's how to perform each step for each operating system.  This is<not> a substitute for reading the \s-1README\s0 and \s-1INSTALL\s0 files thatmight have come with your module!.PPAlso note that these instructions are tailored for installing themodule into your system's repository of Perl modules \*(-- but you caninstall modules into any directory you wish.  For instance, where Isay \f(CW\*(C`perl Makefile.PL\*(C'\fR, you can substitute \f(CW\*(C`perl Makefile.PLPREFIX=/my/perl_directory\*(C'\fR to install the modules into\&\f(CW\*(C`/my/perl_directory\*(C'\fR.  Then you can use the modules from your Perlprograms with \f(CW\*(C`use lib "/my/perl_directory/lib/site_perl";\*(C'\fR orsometimes just \f(CW\*(C`use "/my/perl_directory";\*(C'\fR.  If you're on a systemthat requires superuser/root access to install modules into thedirectories you see when you type \f(CW\*(C`perl \-e "print qq(@INC)"\*(C'\fR, you'llwant to install them into a local directory (such as your homedirectory) and use this approach..IP "\(bu" 4\&\fBIf you're on a Unix or Unix-like system,\fR.SpYou can use Andreas Koenig's \s-1CPAN\s0 module( http://www.cpan.org/modules/by\-module/CPAN )to automate the following steps, from \s-1DECOMPRESS\s0 through \s-1INSTALL\s0..SpA. \s-1DECOMPRESS\s0.SpDecompress the file with \f(CW\*(C`gzip \-d yourmodule.tar.gz\*(C'\fR.SpYou can get gzip from ftp://prep.ai.mit.edu/pub/gnu/.SpOr, you can combine this step with the next to save disk space:.Sp.Vb 1\&     gzip \-dc yourmodule.tar.gz | tar \-xof \-.Ve.SpB. \s-1UNPACK\s0.SpUnpack the result with \f(CW\*(C`tar \-xof yourmodule.tar\*(C'\fR.SpC. \s-1BUILD\s0.SpGo into the newly-created directory and type:.Sp.Vb 2\&      perl Makefile.PL\&      make test.Ve.Spor.Sp.Vb 1\&      perl Makefile.PL PREFIX=/my/perl_directory.Ve.Spto install it locally.  (Remember that if you do this, you'll have toput \f(CW\*(C`use lib "/my/perl_directory";\*(C'\fR near the top of the program thatis to use this module..SpD. \s-1INSTALL\s0.SpWhile still in that directory, type:.Sp.Vb 1\&      make install.Ve.SpMake sure you have the appropriate permissions to install the modulein your Perl 5 library directory.  Often, you'll need to be root..SpThat's all you need to do on Unix systems with dynamic linking.Most Unix systems have dynamic linking \*(-- if yours doesn't, or if foranother reason you have a statically-linked perl, \fBand\fR themodule requires compilation, you'll need to build a new Perl binarythat includes the module.  Again, you'll probably need to be root..IP "\(bu" 4\&\fBIf you're running ActivePerl (Win95/98/2K/NT/XP, Linux, Solaris)\fR.SpFirst, type \f(CW\*(C`ppm\*(C'\fR from a shell and see whether ActiveState's \s-1PPM\s0repository has your module.  If so, you can install it with \f(CW\*(C`ppm\*(C'\fR andyou won't have to bother with any of the other steps here.  You mightbe able to use the \s-1CPAN\s0 instructions from the \*(L"Unix or Linux\*(R" sectionabove as well; give it a try.  Otherwise, you'll have to follow thesteps below..Sp.Vb 1\&   A. DECOMPRESS.Ve.SpYou can use the shareware Winzip ( http://www.winzip.com ) todecompress and unpack modules..Sp.Vb 1\&   B. UNPACK.Ve.SpIf you used WinZip, this was already done for you..Sp.Vb 1\&   C. BUILD.Ve.SpYou'll need the \f(CW\*(C`nmake\*(C'\fR utility, available athttp://download.microsoft.com/download/vc15/Patch/1.52/W95/EN\-US/nmake15.exeor dmake, available on \s-1CPAN\s0.http://search.cpan.org/dist/dmake/.SpDoes the module require compilation (i.e. does it have files that endin .xs, .c, .h, .y, .cc, .cxx, or .C)?  If it does, life is nowofficially tough for you, because you have to compile the moduleyourself \*(-- no easy feat on Windows.  You'll need a compiler such asVisual \*(C+.  Alternatively, you can download a pre-built \s-1PPM\s0 packagefrom ActiveState.http://aspn.activestate.com/ASPN/Downloads/ActivePerl/PPM/.SpGo into the newly-created directory and type:.Sp.Vb 2\&      perl Makefile.PL\&      nmake test\&\&\&   D. INSTALL.Ve.SpWhile still in that directory, type:.Sp.Vb 1\&      nmake install.Ve.IP "\(bu" 4

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -