Rajakumar Theja ([EMAIL PROTECTED]) wrote:
> Hi,
>
> I'm new to perl, so please help.
> My installation of DBD::Oracle for Oracle 8.1.6
> failed.
> After reaching a dead end and not getting any help
> from
> dbi-users, I decided to copy over a previous
> installation of the perl directory tree which
> includes DBI and DBD from another machine.
Whoa! This is an absolute nono. Depending on what other packages you
built, what compiler and local libraries you have, what Oracle Version
you have running, you can break all sorts of stuff.
I guess rebuilding a fresh perl is - with the help of the CPAN module
usually faster than figuring out library dependencies for hours.
*WARNING* CPAN works best if you have a direct internet connection. A
socks proxy will do too, but I have no idea how things are with a
http-proxy.
What was the problem with the DBD build? As a hint, you need the Oracle
samples installed, since these provide the headers you need to compile
the DBD stuff.
Assuming you're on some Unix box, here are some general pointers of how
I would continue from here. *THINK HARD BEFORE YOU TRY THIS*.
If you decide to reinstall, save the old tree in case something really
breaks. Then take a deep look at the 'site-perl' directory tree inside
perl's lib directory, and write down the packages that have been
installed there. As a rule of thumb, all directories inside your local
site-perl tree correspond to a package name. Additionally, you have to
look into the directory that describes your machine type, e.g.
"i386-linux". Things that lie there should also correspond to CPAN
packages.
Move the complete perl tree to the side, fetch the sources and do the
usual things to build perl - should be something like:
./Configure -Dprefix=/where/you/want/it -Dcc=your-compiler -des
make
make test
make install
then continue with
perldoc CPAN
then, after reading do
perl -MCPAN -e shell
follow the setup procedure and start installing the packages you noted
earlier.
DBD::Oracle will most probably fail to install from out of the CPAN
module, so be prepared to build this by hand by typing 'look CPAN' in
the CPAN shell prompt.
Keep asking if you're stuck...
Mike
--
If we fail, we will lose the war.
Michael Lamertz | [EMAIL PROTECTED] / [EMAIL PROTECTED]
Nordstr. 49 | http://www.lamertz.net
50733 Cologne | Work: +49 221 3091-121
Germany | Priv: +49 221 445420 / +49 171 6900 310