System Build Notes

Below is a mixed bag of what is needed and other things I tried. Refer also to the definitive kvalobs installation dokumentasjon within the DMZ.

sudo apt-get install subversion
sudo apt-get update
sudo apt-get -y install lsb
sudo apt-get install emacs
sudo apt-get install subversion
sudo apt-get install cvs
sudo apt-get install less
sudo apt-get install kvalobs-metadata
sudo apt-get install 
sudo apt-get install postgresql-8.3 postgresql-client-8.3 postgresql-common
apt-get install postgresql-server-dev-8.3
sudo apt-get install postgresql-server-dev-8.3
 sudo apt-get install a2ps
apt-get install java-common
sudo apt-get install java-common
sudo apt-get install equivs
sudo apt-get install  build-essential cvs-buildpackage dctrl-tools debian-keyring devscripts-el
sudo apt-get install  gcc-4.2-doc libstdc++6-4.2-dbg libstdc++6-4.2-doc debconf-utils debsums
sudo apt-get install  libsoap-lite-perl lintian linda mutt patchutils ssh wdiff
sudo apt-get install apache
apt-get update
sudo apt-get update
apt-cache search java
apt-cache search java-common
apt-cache show java-common
apt-cache show jre
apt-cache show jdk
apt-cache show java-jdk
apt-cache show java-jre
svn co https://svn.met.no/kvoss/kvalobs/trunk/
apg-get install auto-apt
sudo apt-get install auto-apt
sudo apt-get install libgtk-perl
sudo apt-get install libtool
sudo apt-get install libltdl3-dev
sudo apt-get install libtool-doc
sudo apt-get install gawk
sudo apt-get install gfortran
sudo apt-get install byacc
sudo apt-get install flex
sudo apt-get install sqlite3
sudo apt-get install sqlite3.pc
pkg-config --modversion stdlib
sudo apt-get install  omniorb4 libomniorb4-dev omniidl4
sudo apt-get install sqlite3 libsqlite3-dev
sudo  apt-get install libxml++2.6-dev
sudo apt-get install libcppunit-doc libcppunit-dev
sudo apt-get install libboost-dev libboost-thread-dev libboost-regex-dev
sudo apt-get install libboost-filesystem-dev libboost-program-options-dev
sudo  apt-get install libperl-dev
sudo apt-get install flex bison bison-doc
sudo  apt-get install libdbd-pg-perl libdbi-perl libnet-daemon-perl libplrpc-perl
sudo  apt-get install cpp-3.4 g77 g77-3.4 gcc-3.4 gcc-3.4-base
sudo  apt-get install libdbd-pg-perl libdbi-perl libnet-daemon-perl libplrpc-perl
sudo  apt-get install libg2c0 libg2c0-dev libmi-dev libmi1
sudo  apt-get install libpose-dev libpose1
sudo apt-get install libnetcdf3
sudo apt-get install libnetcdf4
apt-get insatll libboost-filesystem-dev 
sudo apt-get insatll boost-filesystem-dev 
sudo apt-get install libboost-filesystem-dev 
sudo apt-get install libboost-program-options
sudo apt-get install libboost-programoptions
sudo apt-get install libboost-program-options-dev
sudo apt-get install proj


sudo pg_createcluster --socketdir=/var/kvalobs/run --encoding=LATIN1 --locale=C --user=kvalobs -d
sudo chown -R kvalobs:kvalobs *
vi pg_hba.conf 
psql kvalobs
vi postgresql.conf 
export PGHOST="localhost"
export PGPORT=5434
export PGCLUSTER="8.3/kvalobs" 
createdb --owner kvalobs -E latin1 kvalobs "Database for kvalobs"
svn co https://svn.met.no/kvoss/kvalobs/trunk kvalobs-svn
find . -name kvalobs_roles.sql -print
psql template1 < ./kvalobs-svn/src/kvalobs_database/kvalobs_roles.sql
cd /etc/postgresql/8.3/kvalobs
vi pg_hba.conf 
psql template1 < ./kvalobs-svn/src/kvalobs_database/kvalobs_roles.sql
psql template1 < /home/pak/kvalobs-svn/src/kvalobs_database/kvalobs_roles:
psql template1 < ~/kvalobs-svn/src/kvalobs_database/kvalobs_roles.sql
pg_ctlcluster 8.3 kvalobs start
createuser -PsER --host=$PGHOST --port=$PGPORT kvalobs
createdb
psql


aclocal
automake --add-missing
autoreconf -i
((Add export PKG_CONFIG_PATH=/metno/kvalobs/lib/pkgconfig in ./configure))
./configure --prefix=/metno/kvalobs
make 
make install

The current documentation provides the folllowing guidance:

# Local additions for kvalobs
host    all         kvalobs     XXX.XXX.XX.XX/32   trust
host    all         all         XXX.XXX.XX.X/24    md5
host    all         all         XXX.XXX.XX.X/24    md5
host    all         all         XXX.XXX.XX.X/24    md5
host    all         all         XXX.XXX.XXX.X/24   md5
host    all         all         XXX.XXX.XX.X/24    md5

Eventually I found that by default the pg_hba.conf file includes:

# IPv4 local connections: host all all 127.0.0.1/32 md5

… and this I needed to change to:

(A) # IPv4 local connections: # host all all 127.0.0.1/32 md5 host all all 127.0.0.1/32 trust

or even

(B) … host all kvalobs 127.0.0.1/32 trust

For the GNU Scientific library:

sudo apt-get install libgsl0-dbg  libgsl0-dev libgsl0ldbl gsl-bin gsl-doc-pdf gsl-ref-html 

Also useful for plotting results(e.g. GNU graph)

sudo apt-get install plotutils

Also include:

 ...
        -lgsl \
        -lgslcblas
 ...

in the local Makefile.am

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • kvalobs/kvoss/system/qc2/8hdk376snf09zj37dk82s92/ubuild.txt
  • Last modified: 2022-05-31 09:29:32
  • (external edit)