This document is a reference on installing tools to support Data File Builder or Source Code compilation on the Solaris Platform.
This document is relevant only if
The Data File Builder module, which constructs a custom Metathesaurus, requires certain GNU utilities, which are included in Linux distributions, but not with Solaris. If you plan to use the Data File Builder on Solaris, you need to download and install the GNU utilities.
It is *essential* that the GNU utilities be available, because the Data File Builder scripts use the GNU versions of programs such as grep, cut, join, sort, etc., and will not work properly if the Solaris versions of these programs in /bin are used instead.
The necessary GNU utilities may be freely downloaded and can be installed using the Solaris package manager. Knowledge of pkgadd and root privileges are required to install the GNU utilities; no C compiler is required, however.
If the GNU utilities are already available on your system, you may skip to the Configuring the Shell Environment: section below.
See Sunfreeware.com's Downloading/Installation page (http://www.sunfreeware.com/) for more details.
The source code to these utilities are available at http://www.gnu.org/software/.
Use the tools or commands you are familar with or ask your system administrator to install the packages you downloaded. If you have root privileges then following sample commands may be sufficient. From the directory into which you downloaded the packages, enter:
The tool may ask about conflicts or reuse of files. Be careful about overwriting any existing versions of these tools, e.g., in /usr/local/bin.
The GNU utilities were installed above in /usr/local/bin. Before running BuildDataFiles, ensure that the programs grep, sed, sort, cut, join, etc. are run from /usr/local/bin and not /bin, /usr/bin, or another directory. The simplest way to do this is to run the following command (using csh or tcsh):
$ set path = ( /usr/local/bin $path )
or using sh or bash:
$ PATH=/usr/local/bin:$PATH $ export PATH
The appropriate command should be added to your .cshrc or .bashrc file.
See the Data File Builder Documentation (datafilebuilder.pdf) for complete instructions on running BuildDataFiles.
If you are using something other than Linux or Windows there are special instructions for installing LVG:
Download the "Lite" version of Lvg for the year you wish to use (the example uses LVG 2010.) (see Lexical Tools Download Page: http://lexsrv3.nlm.nih.gov/LexSysGroup/Projects/lvg/current/web/release/index.html)
extract it using tar and then for each of the files in the lvg2010lite/bin directory replace:
JAVA=/export/home/lu/Development/LVG/lvg2010/bin/jre1.6.0_14/bin/java
with:
JAVA=java (or JAVA=<jdk or jre directory path>/bin/java)
and:
LVG_DIR=/export/home/lu/Development/LVG/lvg2010
with:
LVG_DIR={where lvg is extracted}/lvg2010lite
Also modify the CLASSPATH variable: include both ${LVG_DIR} and lvg2011dist.jar.
Make sure all of the files in lvg2010lite/bin are executable:
chmod +x lvg2010lite/bin/*
Also modify the configuration file (${LVG_DIR}/data/config/lvg.properties.
More detailed instructions on how to install Lvg manually are available at the Lexical Systems WebSite. See details at URL:
http://lexsrv3.nlm.nih.gov/LexSysGroup/Projects/lvg/current/docs/userDoc/install/installManual.html
This document was generated using AFT v5.098