echo $HOSTTYPEThe variable should be set to
i586
for recent versions of Linux and i686
for Cygwin under Windows.
bash: export LENSDIR=<your Lens directory> tcsh: setenv LENSDIR <your Lens directory>
You should put this line in your ~/.bash_profile file so it will be set whenever you log in.
When using Cygwin on Windows, you may need to set the LENSDIR using the full windows path name, such as
export LENSDIR=C:/cygwin/home/Owner/Lensrather than the unix-style path name
export LENSDIR=/home/Owner/Lens
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${LENSDIR}/Bin/${HOSTTYPE}
export PATH=${PATH}:${LENSDIR}/Bin/${HOSTTYPE}
or you may prefer to put a symbolic link to Lens in your
~/bin
directory as follows:
cd ~/bin ln -s ${LENSDIR}/Bin/${HOSTTYPE}/*lens .
<your Lens
directory>
" with the absolute path to your Lens directory:
export LENSDIR=<your Lens directory> export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${LENSDIR}/Bin/${HOSTTYPE} export PATH=${PATH}:${LENSDIR}/Bin/${HOSTTYPE}
After adding that to the .bash_profile, do source ~/.bash_profile before you go on.
When fully compiled, the Lens directory contains two different executables: lens and alens. lens is the basic compilation that handles most algorithms. alens includes delta-bar-delta and quick-prop as well. lens uses a smaller structure for each link, but does not support the fancier algorithms. It will run somewhat faster than alens for large networks.
The usage specification for Lens is as follows:
lens [-console | -nogui | -batch] [<script-file> | <command>]*
Lens recognizes only three command line flags, each of which may be
abbreviated to its first character. Ordinarily the main display window
will be opened automatically on startup and the current shell will be
used for command input. If the first argument is -nogui
,
the Main Window will not appear. However, it can be opened later with
the view command. Therefore, a valid
DISPLAY
environment variable must be set before running the
program and the machine hosting the display must allow the display to be
accessed (see the Unix xhost
command) if no flag or
-nogui
is used.
The -console
flag will open a graphical shell to be used in
place of the current terminal. This has a nicer interface than the
basic shell, allowing such things as file-name and command completion
with the tab key and history traversal with the arrow keys.
The -batch
flag runs Lens in a permanently non-graphical
mode which does not require an accessible display. This is useful when
running batch jobs which must persist even when the current X window
session is terminated. This cannot be used in conjunction with the
other flags.
Under Windows, Lens must use a console if it is not in batch
mode, so the -c
flag has no effect. You may
encounter problems running Lens in batch mode under Windows, so
you may prefer using -nogui
instead.
If Lens is given additional arguments, they will be interpreted either as script files or as commands. If the argument is the name of a readable file, it will be sourced. Otherwise, the argument will be executed as a command. If arguments are supplied for the command, the command and its arguments should be enclosed in a set of quotes to group them together. Lens will use the .tclIndex file to locate and auto-load the initial (and all subsequent) commands. Therefore, it may not be necessary to source a script file before running a command.
This starts with a console but no graphical window, sources the file "buildNet.in", and then runs the command "train 1000 -r 100":
% lens -n -c buildNet.in "train 1000 -r 100"
This runs the command "doItAllBaby" assuming this command is found in the .tclIndex somewhere in the auto_path:
% lens doItAllBaby
This runs in batch mode and sources the file "buildNet.in" even if buildNet.in happens to be a valid command:
% lens -b buildNet.inThis executes the command "buildNet.in" even if that is also the name of a file:
% lens "eval buildNet.in"
If a script file named .lensrc
exists in your home directory, ~/
, it will be executed
during the boot process. This can be used for customizing the
appearance of the graphical displays, setting the command auto-load
path, setting command aliases or defining new procedures.
subscribe lens-users