sh doc/installMadrigal.gnu $MADROOT TCLSHor
sh doc/installMadrigal.solaris $MADROOT TCLSHwhere TCLSH is a tcl interpreter on your system, probably just "tclsh" if the interpreter is in your execution path, and "gnu" or "solaris" is selected depending on your compiler. There may be a long pause when running updateMaster near the end of the installation since the instParmTab.txt metadata file is being built for the first time by examining every data file, but future calls to updateMaster will be much faster since only new experiments are examined. Help with any installation errors is available from openmadrigal-developers@openmadrigal.org.
To compile the Madrigal libraries and executable programs, you will need a C compiler and a FORTRAN 77 compiler. Makefiles are provided for Sun Solaris compilers and GNU compilers. The GNU compilers may be downloaded from the GNU Website.You only need to edit the compiler/make paths for the platform you are using; the others are ignored
By default, during the installation python will be installed on your server, along with the module PyXml, under MADROOT/bin and MADROOT/lib. If you do not want a local version of python installed, you can edit the madrigal.cfg file to uncomment the PYTHONEXE line. Check with the release notes to insure that your version of python is acceptable. The PYTHONEXE line must be the full path to your pre-existing python executable. Also, in that case you must manually install the latest version of the PyXml module on this version of Python. PyXml is available at http://sourceforge.net/projects/pyxml.
General information on python can be found on the Python Website.
The other prerequisite is Tcl/Tk 8.0 or later, which may be downloaded from the Tcl Resource Center.
Site-specific Specifications in madrigal.cfg
This new feature of Madrigal allows users to append notes from the madExperiments search results page. This feature is only enabled if the web-server has write permission in the particular MADROOT/experiments directory where the experiment data is located. To allow this feature for all data, set all directory permissions below MADROOT/experiments to be writable by the web server. To disallow this feature for all data, set all directory permissions below MADROOT/experiments to not be writable by the web server.
As mention under editing madrigal.cfg, the NOTESMANAGER parameter allows a user to be notified each time a note is added. This parameter can be commented out if no notification is required.
This new feature of Madrigal allows data files to be made either publically available, or restricted to a limited set of IP address listed in a file.
To disable this feature and make all your data public, run the following from the $MADROOT directory:
$MADROOT/bin/setAccess $MADROOT/experiments public
To enable this feature, you must first create a file called "trustedIPs.txt" under MADROOT. This file should contain the IP addresses of hosts considered to be part of the private group, or partial IPs if whole sub-nets should be included. This file is not created during installation. Anyone whose browser's IP matches this list will be able to view files marked as private. For example, if trustedIPs.txt contains the line 132.197.*, any IP address that begins 132.197 will have private access.
Also, if the fileTab.txt file for that experiment can be overwritten by the web server, anyone whose browser's IP matches this list will be able to to change the access of any file between public and private from the madExperiments listing page.
To change a large number of experiments to be either public or private, run the following script from the $MADROOT directory:
$MADROOT/bin/setAccess dirPath [public || private]
where dirPath is the full path name of any directory in $MADROOT/experiments, and the second argument is either public or private. This script will set all experiments in dirPath and below to be public or private.
The access permission for any given file is set in the fileTab.txt file. See metadata documentation for details.
sh doc/installMadrigal.gnu $MADROOT TCLSHor
sh doc/installMadrigal.solaris $MADROOT TCLSHwhere TCLSH is a tcl interpreter on your system, probably just "tclsh" if the interpreter is in your execution path, and "gnu" or "solaris" is selected depending on your compiler. Help with any installation errors is available from openmadrigal-developers@openmadrigal.org.
cd $MADROOT $MADROOT/bin/updateMaster
cd $MADROOT tclsh configureExperiments $MADROOT/bin/updateMaster
The script configureExperiments automatically edits the metadata files, changing the site id to your site id.
$MADROOT/experiments/<4 digit year>/<3 letter inst mnemonic>/<03sep97 type date> Example: /opt/madrigal/experiments/1998/mlh/03sep97
To use genExp, put your new data files in some directory outside of $MADROOT/experiments. Then create a text file with seven whitespace separated columns, and one row for each new file. These columns are:
When the text file is ready, run the following three steps:
cd $MADROOT $MADROOT/bin/genExp (name of text file) $MADROOT/bin/updateMaster