Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

setting ENV howto?

by arcnon (Monk)
on Feb 17, 2006 at 19:11 UTC ( [id://531044]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://531044]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-19 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found