boyd-buildnotes

1. Directory Structure

My top-level directory looks like this:

 $ ls
 active/  distro/  scons-1.1.0.d20081207/  scripts/

Does everything else go into the same directory?

     active $ ls
     aipshosts  casacore/     casainit.es  casainit.sh  import/     wcslib/
     asap/      casainit.csh  casainit.rc  code/        linux_gnu/

2. Environment

  1. Make sure your previous environment is not stomping on you
  2. Run casainit.sh in your CASAHOME to set your environment properly
  3. Note that some variables are not defined in casainit.sh (and they should be). So run this script: #! /bin/bash casapath=($CASAPATH) export CASAROOT="${casapath[0]}" export CASAARCH="${casapath[0]}/${casapath[1]}" export CASADATA="${casapath[0]}/data" unset casapath

WCSLIB

I get a bazillion %PGPLOT, PGPTXT: no graphics device has been selected errors when running gmake check (setup PGPLOT correctly)

gmake check FAILS with a segmentation fault.

gmake check FAILS with undefined reference to 'main' in pgsbox

gmake install works, but make install won't.

SCONS

scons is not installed in the NRAO default configuration.

We should have a canonical install (CASA) for it.

Tell people that the magic command line is

     python setup.py install --prefix=$CASAARCH

CASACORE

Thank God for Kumar's command line:

        /usr/lib64/casapy/bin/python batchbuild.py \
      prefix=$CASAARCH \
              extracppflags="\"-DCASA_USECASAPATH -DCASACORE_NEEDS_RETHROW -DAIPS_64B\"" \
                datadir=$CASADATA \
                wcsroot=$CASAARCH \
                cfitsiolibdir=/usr/lib64 \
              cfitsioincdir=/usr/include/cfitsio \
                shared install

(I used -march=nocona as an additional extracppflags)

CASA SNEEZE

First, do this:

         bwaters@stuey ~ $ source /usr/lib64/casapy/23.0.6654-001/casainit.sh

Python woes

    /users/bwaters/casa/casa-active/active/code/include/tableplot/TablePlot/CasaPyInterpreter.h:124: error: ISO C++ forbids declaration of 'PyObject' with no type

Problematic Environment variables?

     JAVA_HOME=/home/moones/e2e/opt/java
     QTLIB=/usr/lib64/qt-3.3/lib
     PERL5LIB=/users/bwaters/usr/lib/perl5/site_perl/5.8.5

-- BoydWaters - 29 Dec 2008
Topic revision: r2 - 2008-12-29, BoydWaters
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback