Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: How to install DBI in my own directory?

by jreades (Friar)
on Sep 26, 2000 at 18:00 UTC ( #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;
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
    • 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://34009]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2018-06-19 17:16 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (114 votes). Check out past polls.