File: INSTALL

package info (click to toggle)
libcgi-session-perl 4.48-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 616 kB
  • sloc: perl: 1,920; makefile: 5
file content (50 lines) | stat: -r--r--r-- 1,132 bytes parent folder | download | duplicates (8)
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
INSTALLATION
============

Using CPAN Interactive shell
----------------------------

    % perl -MCPAN -e shell
    cpan> install CGI::Session

Using Makefile.PL
--------------------

    % perl Makefile.PL
    % make
    % make test
    % make install

If you don't have proper permissions to perform system-wide 
installations you can install CGI::Session to your private 
PERL5LIB folder:

    % perl Makefile.PL LIB=~/perllib
    % make
    % make test
    % make install

Above set of commands install CGI::Session to your ~/perllib folder.

TESTING
========

You are encouraged to run tests for the backend you will be using. 
The database backends that need a customized connection string won't 
run by default. To run them, some environment variables must be set.

The simplest method is to use the standard "DBI_DSN" environment variable 
to define a DBI connection string. Otherwise, you can set these variables 
as well:

For PostgreSQL:
    CGISESS_PGSQL_DSN
    CGISESS_PGSQL_USER
    CGISESS_PGSQL_PASSWORD

For MySQL:
    CGISESS_MYSQL_DSN
    CGISESS_MYSQL_USER
    CGISESS_MYSQL_PASSWORD
    CGISESS_MYSQL_SOCKET