I would like to compile DBI ( and the DBD::Sybase to go with it ) such that
I can make it part of our software distribution. Since the software can be
installed in various locations, a compile with a fixed prefix won't work.
As part of the install of our software, an environment variable is set that
tells where it is installed. Everything hinges on the environment variable.
As an example of how the software might be installed and the location I
would like to have DBI:
/our/cool/software/<a version number>/perl/lib/DBI.pm
where <a version number> is changing based on what version is delivered and
the env var SOFTWARE_PATH = /our/cool/software/<a version number>.
Now in our perl scripts I would start out with:
#!/usr/local/bin/perl
use lib "$ENV{SOFTWARE_PATH}/perl/lib";
use DBI;
This works well for simple modules that have no compiled libraries, but DBI
is a bit different since the path that it expects to find its libraries
seem to be compiled in at make time.
Any help would be greatly appreciated
George McCone