Therefore, when downloading an existing repository, place the tar file in the directory repos, the extract the repository using the command
tar xf tarfileThis should create a subdirectory whose name is the name of the repository.
If you are checking a repository out from the SIG CVS tree, do
cvs checkout -d repo_name src/wirm/repos/repo_name
First, ask your database administrator to grant database read & write privileges to the user wirm, identified by the admin password that you assigned in the config.pl script. For MySQL, this can be done as follows:
prompt% mysql mysql
mysql> grant all privileges on *.* to wirm@localhost identified by 'secret';
Ask your database administrator to run the script wrm/lib/conf/db-init.pl, with one argument, the name of the new or installed repository. This will drop a relational database called repo_name if it exists, and create a new one. Note: this may require special administrative privileges (such as root).
Note: if you needed to become root to create the database, be sure to exit the root account before continuing with the initialization.Initialize the Repository. Note, this will work both for creating a new repository and for initializing and installing an existing one.
cd wrm/lib/conf repo-init.pl repo_name
The repo-init script will automatically perform the following tasks:
From within that directory all data in a repository may be backed up by the command
repo-backup.pl repo_name backuppathAll data may be restored (replacing existing data), by the command
repo-restore.pl repo_name backuppathThese two commands may be used to copy data between two instances of the same reppsitory. For example, if bmap exists both on a production server and on a personal development server, the production database can first be backed up to a personal directory, then restored to the personal copy of the repository.
Once you have set the repository, you can access many of the links from console.pl to be sure your installation was correct. A good one is "View Schema", for looking at the underlying schema of a given repository.
Your repository is now ready for schema and view definition. See the Tutorial for more information. Once installation is complete a given repository can be accessed in several ways:
For further help installing WIRM, please email email@example.com