Mesa Install w32 Binary
Mesa Install w32 Binary
Installation Guide
MS Windows Binary Version
Version 10.9.0
14-November-2006
MESA Installation: Windows Binary
1 Introduction..............................................................................................................1
1.1 Target Directory...........................................................................................1
1.2 Storage Directory .........................................................................................2
1.3 Disk Space ...................................................................................................2
1.4 Uninstalling Previous Versions....................................................................2
2 MESA Internal Software Packages..........................................................................4
2.1 MIR Central Test Node (CTN) Software.....................................................4
2.2 HL7IMEXA .................................................................................................4
2.3 Microsoft SQL Server..................................................................................4
2.4 Xerces C.......................................................................................................4
2.5 Apache Tomcat Web Server ........................................................................5
2.6 ImageMagick ...............................................................................................5
3 Installation from Compiled Binaries........................................................................6
3.1 Database Installation....................................................................................6
3.2 Perl Installation ............................................................................................7
3.3 Install Java ...................................................................................................7
3.4 Apache Tomcat Installation .........................................................................8
3.5 OpenLDAP ..................................................................................................8
3.6 Agfa/Philips DVT ........................................................................................9
3.7 ImageMagick ...............................................................................................9
3.8 MESA Installation .......................................................................................9
4 Build Databases .....................................................................................................11
5 Install the MESA Storage Directory ......................................................................11
6 Runtime Notes .......................................................................................................13
7 Installation Test: MESA Class A Tests .................................................................14
7.1 MESA Test 1: Installation Test..................................................................14
MESA Software Installation: Windows Binary
______________________________________________________________________________
1 Introduction
This document describes the installation procedure for MESA software for select MS Windows
systems (NT 4.0, Windows 2000). Users reading this document have chosen to install the MESA
software using pre-compiled binaries. Installation instructions for Unix binaries or from source
code are found in other documents.
_____________________________________________________________________________
-1-
Version 10.9.0 14-Oct-2006
MESA Software Installation: Windows Binary
______________________________________________________________________________
The first two steps remove existing MESA databases. The parameters <sa login> and <sa
password> refer to the system administrator account for SQL Server. The <server> parameter is
passed to the isql command and identifies the server name. If you are using interactive SQL
(isql) with these parameters, the syntax is:
_____________________________________________________________________________
-2-
Version 10.9.0 14-Oct-2006
MESA Software Installation: Windows Binary
______________________________________________________________________________
The last step removes the installed binaries, libraries and data files.
_____________________________________________________________________________
-3-
Version 10.9.0 14-Oct-2006
MESA Software Installation: Windows Binary
______________________________________________________________________________
An extension to the CTN software called JAVACTN is used by the MESA software. A small set
of Java classes are used to support some DICOM operations, such as Information Object
manipulation. This software uses the Java Native Interface (JNI) to provide access to the CTN C
libraries.
The CTN software requires some updates to satisfy the MESA design goals. An updated version
of the CTN software is included with the MESA distribution.
2.2 HL7IMEXA
HL7IMEXA is a table-driven HL7 message builder/parser that has its origins at Columbia
University. The Columbia implementation was called HL7IMEX. The software was modified
by Allen Rueter of MIR and renamed HL7IMEXA. This software is written in the “C” language
and supports message building and parsing, but no network operations. Minor changes are made
to this package to support the C++ environment used by MESA and to correct some runtime
problems.
2.4 Xerces C
Xerces C is a library maintained by the Apache foundation used to parse XML data. Quoting
from the Apache web page:
_____________________________________________________________________________
-4-
Version 10.9.0 14-Oct-2006
MESA Software Installation: Windows Binary
______________________________________________________________________________
Xerces (named after the Xerces Blue butterfly) provides world-class XML parsing
and generation. Fully-validating parsers are available for both Java and C++,
implementing the W3C XML and DOM (Level 1 and 2) standards, as well as the de
facto SAX (version 2) standard. The parsers are highly modular and configurable.
Initial support for XML Schema (draft W3C standard) is also provided
2.6 ImageMagick
ImageMagick®, version 6.3.0, is a software suite to create, edit, and compose bitmap images. It
can read, convert and write images in a variety of formats (about 100) including GIF, JPEG,
JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror,
rotate, scale, shear and transform images, adjust image colors, apply various special effects, or
draw text, lines, polygons, ellipses and Bézier curves.
This software is found at http://www.imagemagick.org/script/index.php. Not all tests require this
software; please refer to the installation instructions in this document and the test instructions for
specific actors.
_____________________________________________________________________________
-5-
Version 10.9.0 14-Oct-2006
MESA Software Installation: Windows Binary
______________________________________________________________________________
Before configuring the ODBC driver, you need to add a login to the Microsoft SQL Server
system. This login is the login/password used by our software to connect to tables. You could
use an existing acount; the example we use is the account ctn with the password ctn. This is an
account managed by SQL Server and not Windows. Use the SQL Server Enterprise Manager to
add this new login (ctn/ctn if you follow our example).
Open the Control Panel folder and then open ODBC. For 2000 Server, you will find the ODBC
control under Administrative Tools in the Control Panel. Select the "System DSN" tab. There
will be a list of system data sources. There should be one called LocalServer which uses the
SQL Server driver. This entry is created by the SQL Server installation procedure. Our server is
configured with these values (set by the SQL Server setup program). You can choose a different
login ID and password. The runtime notes will tell you how to communicate your values to the
MESA software.
Variable Value
Name LocalServer
Description <blank>
Which server local
Verify authenticity by … SQL Server authentification
Login ID ctn
Password ctn
The MESA software runs on the same machine as the SQL Server, so we use the local
connection. We do not use the trusted connection option, but you might decide to do so
depending on how you want to configure your system.
The database software uses the environment variable SQL_ACCESS to determine the 3
parameters needed to establish the connection to the SQL database. The format of this variable
is:
<server name>:<login>:<password>
We use this at our site: LocalServer:ctn:ctn
_____________________________________________________________________________
-6-
Version 10.9.0 14-Oct-2006
MESA Software Installation: Windows Binary
______________________________________________________________________________
If you do not define this environment variable, the LocalServer:ctn:ctn values are used by
default. You might choose to use a different login name or password or a different scheme. If
you choose to use the Trusted Server feature of the system, you can leave the login and password
values blank in the SQL_ACCESS variable: "LocalServer:::".
The SQL Server has security features that allow the administrator to restrict access to tables in
the database. You may find that you need to open up access to get the MESA software to
operate properly. If the MESA applications complain about access privileges, you will need to
use the SQL Enterprise Manager to give you access rights to the databases (insert, delete). There
are several methods for allowing access. One simple method is to activate the Manage pulldown
(in SQL Enterprise Manager) and select logins. For the login that you are using, alias that login
as dbo (stands for database owner) for the databases you are using. That should give you the
privileges you need. We also suggest you read the SQL Server documents to understand their
security features (they will certainly explain them better than we can).
-7-
Version 10.9.0 14-Oct-2006
MESA Software Installation: Windows Binary
______________________________________________________________________________
The table below lists the installation directories that we use for testing. These values are not
required, and you might choose different directories.
Install the software per Microsoft’s instructions. On our system, the software is installed in
C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC. That installation directory is not
important.
Copy the 3 jar files in the JDBC distribution lib directory to %TOMCAT_HOME%\common\lib.
These three files are:
• msbase.jar
• mssqlserver.jar
• msutil.jar
3.5 OpenLDAP
OpenLDAP for PWP tests has been tested only on RedHat Linux systems. Contact the Project
Manager for Internet testing.
_____________________________________________________________________________
-8-
Version 10.9.0 14-Oct-2006
MESA Software Installation: Windows Binary
______________________________________________________________________________
Install DVT by double-click on the downloaded exe file and follow the instructions. Install DVT
in the default directory.
3.7 ImageMagick
The ImageMagick software is found at http://www.imagemagick.org/script/index.php. This
software is currently used to support tests of Acquisition Modalities in the NMI profile. Do not
install this software unless that is relevant to your system.
The ImageMagick web site provides 4 binary installation versions. We chose this following
version:
ImageMagick-6.3.0-5-Q16-windows-static.exe
Follow their installation instructions. Make sure the PATH variable is updated with the path to
the ImageMagick executables. The MESA scripts make no assumptions about the location of the
software and rely on the PATH variable.
Open the zip archive for the MESA binary distribution. Extract the files to the MESA default
directory (D:\mesa). You may choose a different disk (and/or path); just be sure to adjust the
direct names given below and to set the runtime environment when you use the software.
_____________________________________________________________________________
-9-
Version 10.9.0 14-Oct-2006
MESA Software Installation: Windows Binary
______________________________________________________________________________
_____________________________________________________________________________
- 10 -
Version 10.9.0 14-Oct-2006
MESA Software Installation: Windows Binary
______________________________________________________________________________
4 Build Databases
The installation procedure assumes you will build databases needed for all MESA tests. The first
step is to create 10 databases for the various MESA actors/simulators. Use the SQL Enterprise
Manager to create the following databases:
Each database should be at least 5 MB in size. For each database, add the SQL server account
configured in section 5.2 above as a db_owner. This will allow you to add and remove tables.
Once the databases have been built, you need to create the tables in the databases. Use a DOS
window and set the directory to %MESA_TARGET%\db. Execute the perl script:
perl create_mesa_tables.pl <login> <password> <server>
In the example that we use, login and password are both “ctn”. As mentioned previously, the
login that you choose will need db_owner rights to create tables in the database. The server
parameter is passed with the –S switch to isql; it is the name you have given your SQL server.
- 11 -
Version 10.9.0 14-Oct-2006
MESA Software Installation: Windows Binary
______________________________________________________________________________
_____________________________________________________________________________
- 12 -
Version 10.9.0 14-Oct-2006
MESA Software Installation: Windows Binary
______________________________________________________________________________
6 Runtime Notes
There are environment variables that need to be set when you run the test scripts. These are
discussed in previous sections of the document and listed again in the table below.
Variable Value
D:\mesa (or another value of your choosing)
MESA_TARGET
MESA_STORAGE D:\mesa\storage (or another value of your
choosing)
PATH should include %MESA_TARGET%\bin and the
path to perl
JAVA_HOME D:\jdk1.3 (or another value of your choosing)
JAR_DIRECTORY %MESA_TARGET%\lib
MESA_SQL_LOGIN ctn (or other login of your choosing)
MESA_SQL_PASSWORD ctn (or other password of your choosing)
SQL_ACCESS LocalServer:ctn:ctn (consistent with values
above)
MESA_OS WINDOWS_NT (use this value; do not substitute,
even on XP and 2000 systems)
_____________________________________________________________________________
- 13 -
Version 10.9.0 14-Oct-2006
MESA Software Installation: Windows Binary
______________________________________________________________________________
7.1.1 Instructions
To run this test, follow these steps using a DOS window or terminal emulator:
1. Set the current directory to $MESA_TARGET/mesa_tests/common/actors/all
2. Run the test script as follows:
perl 1/eval_1.pl
7.1.2 Evaluation
The output of test 1 will be stored in 1/grade_1.txt. Examine the file. There will be several
warning messages. The installation test is complete when the grade_1.txt file contains no error
messages.
When the grade_1.txt file shows no error messages, submit that file to the Project Manager for
evaluation.
_____________________________________________________________________________
- 14 -
Version 10.9.0 14-Oct-2006