Instructions for downloading, installing and running
DIM on
UNIX
Latest
version Release Notes
1. Download
-
get the file dim.zip
-
extract it onto a "dim" folder using: unzip -a
2. Installation
-
cd dim
-
(please use tcsh for the following to work)
-
setenv OS <unix flavour>, <unix
flavour>
can be: HP-UX, AIX, Solaris, SunOS, OSF1, Linux, LynxOS, Darwin
-
source .setup
-
If you are on Linux RHEL9 64bits with gcc 11.3.1
- executables and libraries are available in the
linux directory.
- Otherwise:
-
gmake [options] all
-
possible options:
- CPP=yes or no (default = yes) :
Create also the DIM C++ class library
- THREADS=yes or no (default = yes) :
Use the DIM multithreaded
version
- CC=cc, gcc, etc. (default = gcc on Linux) :
Define which C compiler to use
- CXX=CC, g++, etc. (default = g++ on Linux) :
Define which C++ compiler to use
- JDIM= yes or no (default = no) :
Create also a DIM shareable library to be used from java
(libjdim.so)
note: to create this library it is also necessary to do:
setenv JDK_INCLUDE <your jdk include directory>
- FLAGS=... :
Extra user flags to pass to the compiler
- EXTRALIBS=... :
Extra user libraries to pass to the linker
3. Running
-
setenv DIM_DNS_NODE <node name>, <node
name> is the complete name of the node where the DIM Name
Server (Dns)
will run ex. hpplus003.cern.ch
-
Dns & ! Starts the Name Server
-
Did & !Starts the DIM Display
-
From then on you can start DIM servers and clients
(some
example servers and clients source code is available in
dim/src/examples) you can start them
by:
-
Test_server <server name>
-
Test_client <client name> <server
name>
-
In order to make your own servers and/or clients you
have
to link them with …dim/<OS type>/libdim.a and with -lpthread
(you can
use makefile_examples in the top directory as an example).
- Did