Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How to install DBI in my own directory?

by jreades (Friar)
on Sep 26, 2000 at 18:00 UTC ( [id://34009]=note: print w/replies, xml ) Need Help??


in reply to How to install DBI in my own directory?

Summary of perldoc:

tar -xzvf your_module.tar.gz # one-step decompression cd your_module_dir perl Makefile.PL make make test make install # assuming tests are successful

I suspect, however, that the last stage isn't going to work for you, as I believe you need to be root on the machine to run make install (this would also make DBI available to everyone on that machine.

You may find that you need to load DBI manually into each application you write using either:

use DBI;
or
require DBI;

You'd probably want to try testing things out using a require (which, as I recall, would allow you to roll a custom importation script for debugging) and then, once you know everything is running correctly, switching over to use (which will import the DBI module at compile time).

Replies are listed 'Best First'.
RE: Answer: installing DBI
by agoth (Chaplain) on Sep 26, 2000 at 19:35 UTC
    Comments:
    • You dont need root access to install DBI in your own directories though you may get warnings if the install tries to add the docs to the Perl doc tree.
    • perl Makefile.PL Prefix=/pathtoyourdir/ should get round that
    • I dont see what use followed by require will give you (though that could be me missing something)

      Sorry, I meant that as an either/or case, not both in one script.

      My point was that using require you can run a series of tests (see Camel Book pg. 205) allowing you to determine points of failure in the import routine more specifically that via a use.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-18 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found