基本上我上了黃色底色的部分是大家比較容易忽略的
- If you're on Unix,(You can use Andreas König's CPAN module to automate the entire process, from DECOMPRESS through INSTALL.)
A. DECOMPRESS
Decompress the file with
B. UNPACKgzip -d yourmodule.tar.gz
You can get gzip from ftp://prep.ai.mit.edu/pub/gnu.
Or, you can combine this step with the next to save disk space:
gzip -dc yourmodule.tar.gz | tar -xof -
Unpack the result with
C. BUILDtar -xof yourmodule.tar
Go into the newly-created directory and type:
D. INSTALL
perl Makefile.PL
make
make test
While still in that directory, type:
make install
Make sure you have the appropriate permissions to install the module in your Perl 5 library directory. Often, you'll need to be root.
That's all you need to do on Unix systems with dynamic linking. Most Unix systems have dynamic linking -- if yours doesn't, or if for another reason you have a statically-linked perl, and the module requires compilation, you'll need to build a new Perl binary that includes the module. Again, you'll probably need to be root.
沒有留言:
張貼留言