arcnon has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install some modules from cpan but they need some ENV vars set. the error says
'The simplest method is to use the standard "DBI_DSN" environment variable to define a DBI connection string.'

I thought I would put them in my .tcshrc file so I added

setenv DBI_DSN dbi:Pg:dbname=template1 setenv DBI_USER auser setenv DBI_PASS apass

but it didn't work... so how do I set them so the modules will install. When I installed DBD::Pg I hardcoded them but that is just a hack... I want to know the real way this should be done.

Replies are listed 'Best First'.
Re: setting ENV howto?
by QM (Parson) on Feb 17, 2006 at 20:01 UTC
    I assume you
    source .tcshrc
    after making the change and before installing?

    Otherwise, I'd suggest posting the error message.

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of

      I just needed to restart... then the changes worked
        You haven't commented on whether you understand what source does.

        -QM
        --
        Quantum Mechanics: The dreams stuff is made of