Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
kvalobs:kvoss:system:qc2:user:installation [2010-08-12 09:44:54]
paule
kvalobs:kvoss:system:qc2:user:installation [2022-05-31 09:29:32] (current)
Line 1: Line 1:
 ====== Installation ====== ====== Installation ======
  
-  * Log into dev-vm101 as user kvalobs+  * Log into the target machine
   * If an old kvqc2 exists stop the running kvqc2 process by 'kvstop -l' (lower case L), then type the number corresponding to kvqc2   * If an old kvqc2 exists stop the running kvqc2 process by 'kvstop -l' (lower case L), then type the number corresponding to kvqc2
   * Remove active configuration files (this is to just ensure that when the new kvqc2 version is set running it does not find and use an old configuration file)   * Remove active configuration files (this is to just ensure that when the new kvqc2 version is set running it does not find and use an old configuration file)
Line 12: Line 12:
 </code> </code>
  
-( PS NOTE: actually now all the earliy config files have been moved to /etc/kvalobs/Qc2Config/old )+Install the latest version of kvqc2
  
-  * Install the latest version of kvqc2 
   * Log in as a user with sudoer permission   * Log in as a user with sudoer permission
   * NB one may need to run "apt-get update" first in order to update the package list.   * NB one may need to run "apt-get update" first in order to update the package list.
 +  * Run the following command:
  
 <code> <code>
Line 22: Line 22:
 </code> </code>
  
-An alternative is to install the new kvqc2 directly from where the debian package was built on dev-vm101:+The kvqc2 executable is placed in the standard location and the log and configuration files are managed as determined by the kvalobs package settings that can be checked with the "kvconfig" command use "kvconfig %%--%%help" for information, with kvalobs specific tuning set by [[https://svn.met.no/kvoss/kvalobs/trunk/src/lib/kvalobs/kvPath.h|kvPath]], i.e.:
  
-i.e. using "sudo dpkg -kvqc2_1.0.1-1_i386.deb" as illustrated below.+<code> 
 +  - prefix 
 +  - pkglibdir     , eg $prefix/kvalobs               
 +  - sysconfdir    , eg $prefix/etc 
 +  - libdir        , eg $prefix/lib 
 +  - bindir        , eg $prefix/bin 
 +  - datadir       , eg $prefix/share  
 +  - localstatedir , eg $prefix/var 
 +  - logdir        , eg $localstatedir/log/kvalobs 
 +  - rundir        , eg $localstatedir/run/kvalobs 
 +</code> 
 + 
 +^Description  ^ Location 
 +|Binary  | /usr/bin/kvqc2 
 +|Log files, Qc2.log ... | /var/log/kvalobs/
 +|Algorithm configuration files *.cfg | /etc/kvalobs/Qc2Config | 
 +|Generic configuration (kvalobs.conf) | /etc/kvalobs | 
 + 
 +Check if a kvqc2 entry is included in the kv_ctl.conf (usually /etc(kvalobs/kv_ctl.conf), i.e. make sure kvqc2 is present (i.ethis is not included by default):
  
 <code> <code>
-paule@dev-vm101:~/kvqc2-1.0.1$ ls +START_PROGS="kvQabased kvManagerd kvDataInputd kvServiced kvAgregated kvsynopd norcom2kv kvbufrd kvqc2" 
-kvqc2-1.0.1            kvqc2_1.0.1-1_i386.changes  kvqc2_1.0.1.orig.tar.gz +STOP_PROGS="norcom2kv kvqc2 kvServiced kvDataInputd kvQabased kvManagerd kvAgregated kvbufrd kvsynopd " 
-kvqc2_1.0.1-1.diff.gz  kvqc2_1.0.1-1_i386.deb      kvqc2-1.0.1.tar.gz +TIMEOUT=60 
-kvqc2_1.0.1-1.dsc      kvqc2_1.0.1-1_i386.upload +KVUSER=kvalobs 
-paule@dev-vm101:~/kvqc2-1.0.1$ sudo dpkg -i kvqc2_1.0.1-1_i386.deb +
-(Reading database ... 52403 files and directories currently installed.) +
-Preparing to replace kvqc2 1.0.0-1 (using kvqc2_1.0.1-1_i386.deb) ... +
-Unpacking replacement kvqc2 ... +
-Setting up kvqc2 (1.0.1-1) ... +
-paule@dev-vm101:~/kvqc2-1.0.1$ +
 </code> </code>
  
-**Bug Fix and Confirmation of apt-get install**+====== "apt-get install" Example from dev-vm101 ======
  
-Initial tests illustrated that some data was written back to thedatabase at too high a precision. This is fixed in revision 1782: https://svn.met.no/viewvc/kvoss?view=rev&revision=1782 and led to a kvqc2-1.0.2 revision. This also provided the opportunity to check that the install from apt-get install works, i.e.:+ 
 +For the kvqc2-1.0.2 revision:
  
 <code> <code>
-paule@dev-vm101:~$ sudo apt-get install kvqc2+xxx@dev-vm101:~$ sudo apt-get install kvqc2
 Reading package lists... Done Reading package lists... Done
 Building dependency tree... Done Building dependency tree... Done
Line 58: Line 72:
 Unpacking replacement kvqc2 ... Unpacking replacement kvqc2 ...
 Setting up kvqc2 (1.0.2-1) ... Setting up kvqc2 (1.0.2-1) ...
-paule@dev-vm101:~$ +xxx@dev-vm101:~$ 
 </code> </code>
  
  
-Even then, there are surprises in store when building kvQc2: +====== Dependencies ======
-  * requires netcdf +
-  * requires the GNU Scientific Library +
-  * utilises a number of other boost libraries (ITEMIZE) **TBD**+
  
  
 +QC2 utilises the same kvalobs libraries as QC1 (e.g. kvcpp and puTools). Other dependencies should be handled gracefully by aptititue (i.e. apt-get install etc...). 
  
-.... more will appear here in time ...+**NOTE** //This has not yet been confirmed by trying to install Qc2 on an operational machine!!! 
 +// 
 + 
 +For reference other dependencies include: 
 +  * netcdf 
 +  * GNU Scientific Library 
 +  * additional boost libraries 
 + 
 +That can be added separately if //apt-get install// does not do this automatically: 
 + 
 +<code> 
 +$ apt-get install libgsl0-dbg libgsl0-dev libgsl0ldbl 
 +$ apt-get install proj 
 +$ apt-get install libnetcdf4 
 +$ apt-get install libnetcdf-dev 
 +$ apt-get install libboost-filesystem-dev 
 +$ apt-get install boost-filesystem-dev 
 +$ apt-get install libboost-filesystem-dev 
 +$ apt-get install libboost-program-options 
 +$ apt-get install libboost-programoptions 
 +$ apt-get install libboost-program-options-dev 
 +</code>
  
  • kvalobs/kvoss/system/qc2/user/installation.1281606294.txt.gz
  • Last modified: 2022-05-31 09:23:19
  • (external edit)