Installation
There are only a few steps neccessary to install dbengine on your system, once the basics like PostgreSQL, MySQL, or Oracle, a HTTP server and Perl are available. However - you'll need a browser that's able to handle frames.
I'll describe the neccessary steps and provide links to the appropriate sources here:
Software packages
- Install PostgreSQL, MySQL, or Oracle on your system. You can download the latest PostgreSQL relase from ftp://ftp.postgreSQL.org/pub/. You can download the latest MySQL release from http://www.mysql.com/downloads/. After unpacking the archive follow the provided instructions and install it on your machine.
- Install Perl 5.005 or later which can be downloaded from http://www.perl.com/CPAN/src/latest.tar.gz.
- Install a HTTP server unless you already have one in use. I'm currently working with the Apache server which can be found at http://www.apache.org, but of course everything should work with any CGI capable server.
- Make sure it works ! Try to create a few Web pages and see that
you can retrieve them with your Web client. Also make sure that
your HTTP server is configured properly to run CGI scripts.
Normally you have to tell the server that a special directory
contains scripts, so the files there will be executed rather than
retrieved as text files !
Perl extensions
- Install the DBI generical database interface package for perl (version 1.15 or later). The source archive is available from any CPAN mirror like ftp://ftp.rz.ruhr-uni-bochum.de/pub/CPAN/modules/by-category/07_Database_Interfaces/DBI/. Use http://search.cpan.org/ to access a mirror close to you. You can also use the CPAN module to simplify the process. See the CPAN module documentation for more details. If you are installing onto a multi-host environment (such as an ISP), you'll need to take a few extra steps to install Perl Modules. See How to Install Modules for details.
Installation of this is like for any perl module as follows:
- tar xfz
- cd
- perl Makefile.PL
- make
- make test
- make install
- For access to PostgreSQL install the DBD database interface package DBD-Pg (version 0.90 or later). The source archive is available from any CPAN mirror like ftp://ftp.rz.ruhr-uni-bochum.de/pub/CPAN/modules/by-category/07_Database_Interfaces/DBD/. Installation of this is similar to the above.
- For access to Oracle install the DBD database interface package DBD-Oracle (version 0.59 or later). The source archive is available from any CPAN mirror like ftp://ftp.rz.ruhr-uni-bochum.de/pub/CPAN/modules/by-category/07_Database_Interfaces/DBD/. Installation of this is similar to the above.
- For access to MySQL install the DBD database interface package Msql-Mysql-Modules (version 1.2216 or later). The source archive is available from any CPAN mirror like ftp://ftp.rz.ruhr-uni-bochum.de/pub/CPAN/modules/by-category/07_Database_Interfaces/Mysql/. Installation of this is similar to the above.
- Make sure that these perl extensions and your Perl system work. All "make test" calls should have been proceeded successfully.
- For logging to work you have to make sure that h2ph has been run before starting dbengine. Otherwise you'll get an error...
On my linux system I do this using the following commands:
- cd /usr/include; h2ph -r -l .
- cd /usr/lib/gcc-lib/i486-linux/2.7.2.3/include; h2ph -r -l .
dbengine
- To install dbengine go ahead and download dbengine from our ftp server ftp://ftp.cis-computer.com/pub/dbengine-latest.tar.gz.
tar xvfz dbengine-latest.tar.gz
as root on your local system.
cd dbengine-<Version>
- Have your system information ready and type
perl Makefile.PL
make
- If you want the test database to be installed type
make test
make install
Now you're done. The installation is complete and you'll be able to access your databases from your local host with http://localhost/cgi-bin/dbengine/dbengine.cgi.
- Additional information about all those informations asked for during the installation process is provided on the following page.