Installing nlview on UNIX
=========================

The nlview is available for the UNIX platforms SunOS 4, Solaris 2.4
or later and HP-UX.  According to your platform, you need one of the
files:
        nlview-2.8-sun4.tar.gz
        nlview-2.8-sun5.tar.gz
        nlview-2.8-hp.tar.gz

You can download these files by either http or anonymous ftp
from:
        http://www.concept.de/nlview
        ftp://www.concept.de/nlview





1. Unpack the software
----------------------

Within this document, the following two words are "place holders":

        IDIR       for your installation directory
        PLATFORM   for one of sun4, sun5 or hp (for win32 see INSTALL-WIN32).

First choose an empty installation directory "IDIR", e.g. /usr/local/concept,
and unpack the platform-specific .gz file:

        cd IDIR
        gunzip  ~/nlview-2.8-PLATFORM.tar.gz
        tar -xf ~/nlview-2.8-PLATFORM.tar

This will create two directories, "nlview-2.8"  and "flexlm-5.12".
The flexlm-5.12 directory is only required, if nlview is licensed
by a flexlm license key (see 4b below).

        Directory "nlview-2.8" contains Concept Engineering software:

            doc/INSTALL-UNIX.TXT    This file
            doc/user_manual.html    User Manual in html
            PLATFORM/nlview         The nlview executable file
            symlib/generic.edf      Generic symbol shapes
            symlib/generic.idx      Symbol index file
            symlib/generic.map      Example mapping file
            symlib/generic.ps       PostScript print from all symbol shapes
            demo/*                  Example files and tutorial

        Directory "flexlm-5.12" contains FLEXlm software:

            PLATFORM/conceptd       The Concept Engineering license daemon
            PLATFORM/lmgrd          The Flexlm license daemon
            PLATFORM/lm*            Flexlm utility tools
            license.template        a template file for license.dat



2. Add nlview into your search path (PATH variable)
---------------------------------------------------

The most simple way is probably to create a symbolic link
into a directory that is already part of your PATH variable.
E.g. if /usr/local/bin is part of your search path, you
can type:

        ln -s IDIR/nlview-2.8/PLATFORM/nlview /usr/local/bin/nlview

Alternatively, you may want to extend your PATH variable by the
bin-directory of nlview: "IDIR/nlview-2.8/PLATFORM".

If you are running C-shell (csh) you may add a line like below
to your .login file:

        set path (IDIR/nlview-2.8/PLATFORM $path)

If you are running Korn-Shell (ksh) or Bourne-Shell (sh) you may
add lines like below to your .profile file:

        export PATH
        PATH=IDIR/nlview-2.8/PLATFORM:$PATH


3. Run nlview in "demo" mode
----------------------------

In demo mode (option -demo), you don't need any license key.
In this mode, nlview can only read the files included in the "demo"
directory.  If you type the following, you should see the main window
comming up.

        cd IDIR/nlview-2.8/demo
        nlview -demo -symlib ../symlib/generic.edf 8bit_alu.edf


4. Install a (evaluation) license key
-------------------------------------

If you want to evaluate the tool, ask your distributor
or Concept Engineering <info@concept.de> for an evaluation
key.

There are two alternatives.  Continue with either (4a) or (ab).

(4a) A simple node-locked method based the environment variable
     "ceBoxLicenseNLV".  This method is by default used for
     evaluation keys.  To receive the required 14-character
     license key, you must provide the hostid and hostname
     of your computer.  To get the hostid, call:

        hostid          on Sun
        uname -i        on HP

(4b) The flexlm license mechanism.  The lmgrd daemon is located
     by the environment variable "LM_LICENSE_FILE".  To receive
     the required FEATURE line (in file "license.dat"), you must
     provide the hostid and hostname of your license server.
     To get the hostid, call:

        IDIR/flexlm-5.12/PLATFORM/lmhostid


4a. Install a simple node-locked license key
--------------------------------------------

To install the simple node-locked license key, define the
environment variable "ceBoxLicenseNLV", to a 14-character
value (as received from Concept Engineering).

If you are running C-shell (csh) you may add a line like the
following to your .login file:

        setenv ceBoxLicenseNLV xxxxxxxxxxxxxx

If you are running Korn-Shell (ksh) or Bourne-Shell (sh) you may
add lines like the following to your .profile file:

        export ceBoxLicenseNLV
        ceBoxLicenseNLV=xxxxxxxxxxxxxx

That is all.  Now, you can invoke nlview.  If you want, you can
follow the tutorial in demo/doc/tutorial.html.  Please refer to
the user manual in doc/user_manual.html if you want to derive symbol
shapes for your library.

** End of installation **


4b. Install a flexlm-based license mechamism
--------------------------------------------

To use the flexlm-based license mechamism, you must install
the flexlm software first (if you already have flexlm running,
then you need at least the "conceptd" vendor daemon).

4b1  If you already have a lmgrd running and you don't want to start
---  another one.
 
     We expect you are familiar with the flexlm software.
     Go to your license server (the host where lmgrd is running)
     and copy "conceptd" to the directory of your flexlm vendor
     daemons (e.g. to /usr/local/flexlm):

            cp IDIR/flexlm-5.12/PLATFORM/conceptd  /usr/local/flexlm/conceptd

     Edit the license file on your license server.  The license file
     is normally called "license.dat" and may be located at
     /usr/local/flexlm/licenses (check the "lmgrd -c" argument file
     name - this is definitly the license file).  Add a DAEMON and
     a FEATURE line into your license file.  The DAEMON line looks
     like:
            DAEMON conceptd /usr/local/flexlm/conceptd

     The FEATURE line must be exactly as received from Concept
     Engineering.  See above, how to get the license key.

     Check the IP port number in the SERVER line and note that
     you must use the same number in LM_LICENSE_FILE below.
     Continue with "Locate the license server".


4b2  If you don't have a lmgrd running, or if you want to start a
---  separate lmgrd to manage the Concept Engineering license file.

     Choose a (new) license server (e.g. your local computer).
     If you have choosen a license server different from your local
     computer, then go to this license server and re-install (or mount)
     the flexlm software tree under IDIR/flexlm-5.12.

     Copy the license.dat file that you have received from Concept
     Engineering license file to

        IDIR/flexlm-5.12/license.dat

     Modify the DAEMON line by entering the correct pathname to the
     Concept daemon at IDIR/flexlm-5.12/PLATFORM/conceptd.
 
     If the IP port number 1700 is already in use, then you must
     change the IP port number in the SERVER line of the file
     license.dat and in LM_LICENSE_FILE below.
 
     Start the "lmgrd" License Manager:

        cd IDIR/flexlm-5.12/PLATFORM
        lmgrd -c license.dat > license.log &


     If you want lmgrd to be started at boot time, then you should
     add the two lines above into a boot-rc file (e.g. into
     /etc/rc.local on SunOS4).
        


Locate the license server
-------------------------

Goto your local computer (where you have installed nlview-2.8).
Here, you must locate the license server, by defining the environment
variable LM_LICENSE_FILE.  For example, if your license server
is Orion and lmgrd listens on port 1700, then you should set
LM_LICENSE_FILE to 1700@Orion.

If you are running C-shell (csh), add this line to your .login file:

        setenv LM_LICENSE_FILE 1700@Orion

If you are running Korn-Shell (ksh) or Bourne-Shell (sh), add these
lines to your .profile file:

        export LM_LICENSE_FILE
        LM_LICENSE_FILE=1700@Orion

Please make sure, that the node-locked environment variable
ceBoxLicenseNLV is now undefined and remove it from your .login
or .profile.

Now, please test if the license server is working for feature "nlview".
Type:
        cd IDIR/flexlm-5.12/PLATFORM
        lmdiag nlview

FLEXlm problems ?
-----------------
    If you run into any FLEXlm problem, then you may find lmstat
    helpful (in the same directory).  Also, you may check out the
    FLEXlm End User Manual at http://www.globetrotter.com/manual.htm
    or the FAQ at http://www.globetrotter.com/flmfaq.htm).


That is all.  Now, you can invoke nlview.  If you want, you can
follow the tutorial in demo/doc/tutorial.html.  Please refer to
the user manual in doc/user_manual.html if you want to derive symbol
shapes for your library.

** End of installation **

