-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
143 lines (91 loc) · 3.77 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
Installation Instructions
The instructions are basically as per any Perl module.
INSTALLING AUTOMATICALLY
------------------------
The easiest way to install is via CPAN or CPANPLUS:
CPAN:
% perl -MCPAN -e shell [as root]
> install PHP::Strings
> quit
CPANPLUS:
% cpanp
> i PHP::Strings
> q
See your local 'perldoc CPAN' or 'perldoc CPANPLUS' for
instructions on setting up and configuring CPAN or CPANPLUS.
OBTAINING THE MODULE
--------------------
The latest release version of PHP::Strings can be downloaded
from any CPAN site:
http://www.cpan.org/modules/by-authors/id/K/KU/KUDARASP/
http://search.cpan.org/dist/PHP-Strings/
Interim and development versions may also be available
from the author's web site:
http://moxliukas.esu.as/download/src/Perl/
PHP::Strings is distributed as a gzipped tar archive file:
PHP-Strings-<version>.tar.gz
where <version> represents the current version number, e.g. 0.27.
To install the module, unpack the distribution archive to
create an installation directory. Something like this:
tar zxf PHP-Strings-0.27.tar.gz
or
gunzip PHP-Strings-0.27.tar.gz
tar xf PHP-Strings-0.27.tar
You can then 'cd' into the directory created,
cd PHP-Strings-0.27
INSTALLING MANUALLY
-------------------
First, verify the package's integrity by ensuring you have
Module::Signature installed, then type:
% cpansign -v
That will check each file's integrity, as well as the signature's
validity, thus verifying the integrity of the entire package.
If "==> Signature verified OK! <==" is not displayed, the
distribution may already have been compromised, and you should not run
its Makefile.PL.
Ideally, you should confirm with a third party that the finger print and
key id by which the signature was signed is indeed the key it is meant
to be (ideally you'll have an appropriate web of trust set up, but
that's not always possible).
The 'make install' (done later) will install the modules and scripts on
your system. You may need administrator privileges to perform this task.
Alternately you can install the module to a local directory (see
ExtUtils::MakeMaker for full details), e.g.
% perl Makefile.PL PREFIX=/home/abw/
Don't forget to update your PERL5LIB environment variable if you do
this, or add a line to your script to tell Perl where to find the files,
e.g.
use lib qw( /home/abw/lib/perl5/site_perl/5.6.0 );
If you're not after a custom location, just do:
% perl Makefile.PL
If you are lacking any of the prerequisite modules, running that
program will tell you. All prerequisites are available from CPAN.
When you have them all:
% make && make test
If there are any failures, it's best if you contact me. It may help
other people who have the same problem. I don't tend to read the Perl
newsgroups or PerlMonks, so it's no use posting there.
When you report your trouble, be sure to send me the following
information;
+ result of `perl -V'
+ output from 'make test' - ideally do 'make test TEST_VERBOSE=1 >& errs'
Send those to [email protected] and I'll get
back to you as soon as I'm able.
If it worked, then become root and type:
# make install
Congratulations. You've just installed PHP::Strings.
If you have a copy of cpantest installed, type:
% cpantest -g pass -nc -p `basename \`pwd\`` -auto
Or:
% cpantest -g pass -nc -p PHP-Strings-0.27 -auto
That will tell both me and other potential users that the module
built correctly on your machine.
cheers,
Iain (aka Spoon).
http://iain.truskett.id.au/
PS. The above text was written by Iain, but all of it still applies in
spite of the fact that package maintainer has changed. I have edited the URLs,
so the information is up-to-date.
Petras Kudaras (KUDARASP)
aka moxliukas
http://moxliukas.esu.as