Difference between revisions of "Installing CODA"

From New IAC Wiki
Jump to navigation Jump to search
Line 13: Line 13:
  
 
  cdev_1.7.5.tar.gz
 
  cdev_1.7.5.tar.gz
CMLOG-R2_1-PROD-1.tar.gz
+
tar - CMLOG-R2_1-PROD-1.tar.gz
 
  coda.setup
 
  coda.setup
 
  codausersetup
 
  codausersetup
Line 30: Line 30:
 
  tar -xvf Linux-rhe.tar
 
  tar -xvf Linux-rhe.tar
 
  tar -xvf VXWORKSPPC55.tar
 
  tar -xvf VXWORKSPPC55.tar
  tar -xvf x86-linux.tar
+
  xvf x86-linux.tar
 +
xvf common.tar
  
 
remove the tar archives
 
remove the tar archives
Line 44: Line 45:
 
  coda.setup
 
  coda.setup
 
  codausersetup
 
  codausersetup
 +
common
 
  Linux
 
  Linux
 
  README.InstallFAQ
 
  README.InstallFAQ
 
  README.x86-linux
 
  README.x86-linux
 +
tmp
 
  VXWORKSPPC55
 
  VXWORKSPPC55
 
  x86-linux
 
  x86-linux
 
  
  
Line 59: Line 61:
 
Set environmental variables in file codauserscript
 
Set environmental variables in file codauserscript
  
#!/bin/csh
+
#!/bin/csh
echo Setting up coda 2.5 on $HOST
+
echo Setting up coda 2.5 on $HOST
setenv CODA /home/daq/CODA/2.5
+
  setenv CODA /usr/local/coda/2.5
source $CODA/coda.setup
+
source $CODA/coda.setup
# Point to msqld on my host
+
# Point to msqld on my host
setenv MSQL_TCP_HOST daq1
+
setenv MSQL_TCP_HOST daq1
setenv MSQL_HOME /usr/local/coda/2.5/common/rcdb
+
setenv MSQL_HOME $CODA/common/rcdb
# My database/session
+
# My database/session
setenv EXPID experiment_0
+
setenv EXPID LDS
setenv SESSION davetest
+
setenv SESSION test
# CMLOG browser (cmlog) setup file
+
# CMLOG browser (cmlog) setup file
setenv CMLOG_CONFIG /home/abbottd/CODA/cmlogrc
+
setenv CMLOG_CONFIG /usr/local/CMLOG/cmlogrc
# broadcast message port must match that in /usr/local/CMLOG/cmlog.config
+
# broadcast message port must match that in /usr/local/CMLOG/cmlog.config
setenv CMLOG_PORT 8102
+
setenv CMLOG_PORT 8102
# User specific env variables
+
# User specific env variables
setenv CODA_DIRECTORY /home/abbottd/CODA
+
setenv CODA_DIRECTORY /home/daq/CODA
setenv CODA_DATA /scratch/abbottd/data
+
setenv CODA_DATA /data1
cd ~/CODA
 
 
 
==scp the CODA binary version==
 
 
 
scp -r tforest@jlab.org:/site/coda/2.5/Linux-rhe ./
 
 
 
A bin and lib subdirectory are created
 
 
 
 
 
also copy over the common, examples, and extensions subdirectories
 
 
 
scp -r tforest@jlab.org:/site/coda/2.5/commons ./
 
scp -r tforest@jlab.org:/site/coda/2.5/examples ./
 
scp -r tforest@jlab.org:/site/coda/2.5/extensions ./
 
 
 
 
 
The extensions subdirectory has a lot of libraries for several VME modules.
 
 
 
== scp the CMLOG files==
 
 
 
scp -r tforest@jlab.org:/site/coda/CMLOG ./
 
 
 
== download the gnu cross compiler==
 
 
 
scp -r tforest@jlab.org:/site/vxworks/5.5/ppc/host/x86-linux ./
 
 
 
also need the header files
 
 
 
scp -r tforest@jlab.org:/site/vxworks/5.5/ppc/target/h ./
 
 
 
 
 
My directory structure looked like this
 
 
 
 
 
2.5 >ls -1
 
cdev_1.7.5
 
CMLOG-R2_1-PROD-1
 
common
 
Linux-rhe
 
VXWORKSPPC55
 
x86-linux
 
  
 +
cd ~/CODA
 
2.) as root create the following sudirectory and soft links
 
2.) as root create the following sudirectory and soft links
  
mkdir /usr/local/coda
 
chmod a+rw /usr/local/coda
 
  
ln -s /home/daq/CODA/2.5 /usr/local/coda/2.5
+
ln -s /home/daq/CODA /usr/local/coda
 
ln -s /home/daq/CODA/2.5/CMLOG-R2_1-PROD-1 /usr/local/CMLOG
 
ln -s /home/daq/CODA/2.5/CMLOG-R2_1-PROD-1 /usr/local/CMLOG
ln -s /home/daq/CODA/2.5/x86-linux /usr/local/gnu/x86-linux
+
ln -s /home/daq/CODA/2.5/x86-linux /usr/local/x86-linux
  
  

Revision as of 00:06, 20 September 2007

download CODA 2.5

Go to the ftp web page

ftp://ftp.jlab.org/pub/coda/2.5/

and save the files below into the CODA/2.5 subdirectory

I currently have the files

2.5 >ls -1


cdev_1.7.5.tar.gz

tar - CMLOG-R2_1-PROD-1.tar.gz

coda.setup
codausersetup
common.tar
Linux-rhe.tar
README.InstallFAQ
README.x86-linux
VXWORKSPPC55.tar
x86-linux.tar


Unpack the tar files

tar -zxvf cdev_1.7.5.tar.gz
tar -zxvf CMLOG-R2_1-PROD-1.tar.gz
tar -xvf Linux-rhe.tar
tar -xvf VXWORKSPPC55.tar
xvf x86-linux.tar
xvf common.tar

remove the tar archives

rm *.gz
rm *.tar

Here is what my directory structure looks like now

2.5 >ls -1
cdev_1.7.5
CMLOG-R2_1-PROD-1
coda.setup
codausersetup
common
Linux
README.InstallFAQ
README.x86-linux
tmp
VXWORKSPPC55
x86-linux


stopped installation here


Setup the environment variables

Set environmental variables in file codauserscript

  1. !/bin/csh

echo Setting up coda 2.5 on $HOST

 setenv CODA /usr/local/coda/2.5

source $CODA/coda.setup

  1. Point to msqld on my host

setenv MSQL_TCP_HOST daq1 setenv MSQL_HOME $CODA/common/rcdb

  1. My database/session

setenv EXPID LDS setenv SESSION test

  1. CMLOG browser (cmlog) setup file

setenv CMLOG_CONFIG /usr/local/CMLOG/cmlogrc

  1. broadcast message port must match that in /usr/local/CMLOG/cmlog.config

setenv CMLOG_PORT 8102

  1. User specific env variables

setenv CODA_DIRECTORY /home/daq/CODA setenv CODA_DATA /data1

cd ~/CODA 2.) as root create the following sudirectory and soft links


ln -s /home/daq/CODA /usr/local/coda ln -s /home/daq/CODA/2.5/CMLOG-R2_1-PROD-1 /usr/local/CMLOG ln -s /home/daq/CODA/2.5/x86-linux /usr/local/x86-linux


3.) set the environmental variables

create a script to setup the environmenal variables


  1. !/bin/csh

echo Setting up coda 2.5 on $HOST setenv CODA /usr/local/coda

source $CODA/coda.setup

  1. Point to msqld on my host

setenv MSQL_TCP_HOST daq1 setenv MSQL_HOME /usr/local/coda/common/rcdb

  1. My database/session

setenv EXPID ISU_LDS setenv SESSION DAQ

  1. CMLOG browser (cmlog) setup file

setenv CMLOG_CONFIG /home/data1/CODA/cmlogrc

  1. broadcast message port must match that in /usr/local/CMLOG/cmlog.config

setenv CMLOG_PORT 8102

  1. User specific env variables

setenv CODA_DIRECTORY /home/daq/CODA setenv CODA_DATA /data1

  1. set up to use Cross compilers

set path = ( $path . /usr/local/gnu/x86-linux/bin ${CODA}/2.5/Linux-rhe/bin )


4.) setup msql

startup msql deamon

msqld

and let in run

in another window startup cedit

create a new database using the "File" men

I gave it the name "LDS"

I quite cedit and restarted to check that it was stil there.

now add components:

to get DBEDIT to run I had to add the following to LD_LIBRARY_PATH

${CODA}/cdev_1.7.5/lib/Linux-rh9


so now I have

setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/local/CMLOG/lib/Linux:${CODA}/Linux-rhe/lib:${CODA}/cdev_1.7.5/lib/Linux-rh9

i.) event builder:

click on the icon for the event builder (blocks being assembled)

Name: eb1 Ethernet Host:134.50.3.210 ! this is the daq1 IP address ID # : 1

5.) rcServer

I needed to setup the shared library path so it searches the CMLOG libs byadding the line below to the "setup" script unser $CODA

setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/local/CMLOG/lib/Linux


6.) msql configureation


UROC daq1


7.) edit /etc/hosts added line for daq1

edited /etc/sysconfig


edited /etc/resolve

added search line for physics


8.) edited binary file output


9.) created coda file clicking on bullseye like symbol in cedit


10.) had comment line in $CODA_BIN/makelist

  1. $CODA_BIN/fb_strip < $DOING_FILE.i.c > $DOING_FILE.c


11.) codamaster ( can be used to start coda rocs EB and ER...)

setenv KILL_CODA_SCRIPT


coda_roc -i -s -n DAQ -s UROC -t ROC

to make a virtual roc to run native on the Linux host

makelist test_list.crl native