[daip] on aips installation

Eric Greisen egreisen at nrao.edu
Wed Jun 2 23:24:12 EDT 2004


CHEN YONGJUN writes:
 > Dear sir,
 > In the course of starting process, the message shows as follows:
 > 
 > AIPS_VERSION=/home/feng/shi/31DEC03
 > 
 > [feng at center feng]$ aips
 > 
 > START_AIPS: Your initial AIPS printer is the
 > 
 > START_AIPS:  - system name , AIPS type
 > 
 >   
 > 
 > START_AIPS: User data area assignments:
 > 
 >   (Using global default file /home/feng/shi/DA00/DADEVS.LIST)
 > 
 >    Disk 1 (1) is /home/feng/shi/DATA/CENTER_3
 > 
 >    Disk 2 (2) is /home/feng/shi/DATA/CENTER_2
 > 
 >    Disk 3 (3) is /home/feng/shi/DATA/CENTER_4
 > 
 >    Disk 4 (4) is /home/feng/shi/DATA/CENTER_1
 > 
 >   
 > 
 > Tape assignments:
 > 
 >    Tape 1 is REMOTE
 > 
 >    Tape 2 is REMOTE
 > 
 >   
 > 
 > START_AIPS: I am GUESSING you are at a workstation called center
 > 
 > START_AIPS: Starting TV servers on center asynchronously
 > 
 > START_AIPS:  - with Internet Sockets...
 > 
 > START_AIPS: Starting TPMON daemons on CENTER asynchronously...
 > 
 > Starting up 31DEC03 AIPS with normal priority
 > 
 > XASERVERS: Start TV LOCK daemon TVSERV on center
 > 
 > XASERVERS: Start XAS on center, DISPLAY center:0
 > 
 > XASERVERS: Start graphics server TEKSRV on center, DISPLAY center:0
 > 
 > TVSERVER: Starting AIPS TV locking, Inet domain
 > 
 > STARTPMON: [CENTER] Starting TPMON1 with output SUPPRESSED
 > 
 > Begin the one true AIPS number 1 (release of 31DEC03) at priority =   0
 > 
 > AIPS 1: You are assigned TV device/server   1
 > 
 > AIPS 1: You are assigned graphics device/server   1
 > 
 > AIPS 1: Enter user ID number
 > 
 > ?XASERVERS: Start message server MSGSRV on center, DISPLAY center:0
 > 
 > 
 > 
 > AIPS 1: Enter user ID number
 > 
 > ?2
 > 
 > AIPS 1:                          31DEC03 AIPS:
 > 
 > AIPS 1:      Copyright (C) 1995-2003 Associated Universities, Inc.
 > 
 > AIPS 1:            AIPS comes with ABSOLUTELY NO WARRANTY;
 > 
 > AIPS 1:                 for details, type HELP GNUGPL
 > 
 > AIPS 1: This is free software, and you are welcome to redistribute it
 > 
 > AIPS 1: under certain conditions; type EXPLAIN GNUGPL for details.
 > 
 > AIPS 1: Previous session command-line history recovered.
 > 
 > AIPS 1: TAB-key completions enabled, type HELP READLINE for details.
 > 
 > AIPS 1: Recovered POPS environment from last exit
 > 

      This looks normal up to here - did you accidentally drag the
above text and drop it back as input to AIPS?  The messages below look
like that is what happened.

    I do not know why the TVSERV, XAS etc processes should run with
nothing visible.  Note that THE TV usually comes up in an icon state
as does the TEKserver.  Usually only the message server is visible at
the beginning.

    Try aips tv=local

which starts versions of the programs using unix rather than Inet
sockets.

I will need you to pokae around and see if you can guess what may be
wrong.

We are now using a slight change in START_TVSERVERS.  Try putting the
following into your $AIPS_ROOT (saving the old copy )

#-----------------------------
#!/bin/sh
#-----------------------------------------------------------------------
#;  Copyright (C) 1995, 1997-1998, 2002-2004
#;  Associated Universities, Inc. Washington DC, USA.
#;
#;  This program is free software; you can redistribute it and/or
#;  modify it under the terms of the GNU General Public License as
#;  published by the Free Software Foundation; either version 2 of
#;  the License, or (at your option) any later version.
#;
#;  This program is distributed in the hope that it will be useful,
#;  but WITHOUT ANY WARRANTY; without even the implied warranty of
#;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#;  GNU General Public License for more details.
#;
#;  You should have received a copy of the GNU General Public
#;  License along with this program; if not, write to the Free
#;  Software Foundation, Inc., 675 Massachusetts Ave, Cambridge,
#;  MA 02139, USA.
#;
#;  Correspondence concerning AIPS should be addressed as follows:
#;         Internet email: aipsmail at nrao.edu.
#;         Postal address: AIPS Project Office
#;                         National Radio Astronomy Observatory
#;                         520 Edgemont Road
#;                         Charlottesville, VA 22903-2475 USA
#-----------------------------------------------------------------------
# Usage: START_TVSERVERS TVOPT [VERSION] [UNIX|INET]
#-----------------------------------------------------------------------
# START_TVSERVERS starts the AIPS server processes on a workstation.  It
# takes care of defining the essential AIPS logicals (including TVDEV,
# etc) via HOSTS.SH, TVDEVS.SH, and AIPSPATH.SH.  There may be site or
# host specific overrides in AIPSASSN.SH, so it is called too.
#
# This script will either be called via a remote shell or locally.
#
# On Sun4 systems, it may be necessary to edit the first part of this
# file if OpenWindows is not in use or in a nonstandard place.  For
# generic X11 installations, just set LD_LIBRARY_PATH to the appropriate
# X11 library area.
#
# This file must have mode +x - done by install.pl usually.
#-----------------------------------------------------------------------
#                                       Set the AIPS root directory.
AIPS_ROOT=/home/feng/shi
#                                       Who am I?  DON'T CHANGE!!!
. $AIPS_ROOT/HOSTS.SH
[ "$ARCH" = "" ] && echo "START_TVSERVERS: ARCH not defined" && exit 1
#                                       Change these if needed
case $ARCH  in
  S[OU]L|SUN*)
    if [ "$OPENWINHOME" = "" ] ; then
      for i in /usr/Openwin /usr/openwin /usr/openwin3 ; do
         [ -d $i ] && OPENWINHOME=$i
      done
      export OPENWINHOME
      if [ "$OPENWINHOME" = "" ] ; then
         echo "START_TVSERVERS: Help!  Can't find OPENWINHOME"
      fi
   fi
#                                       This may cause problems; if so,
#                                       just comment the whole thing out
   if [ "$LD_LIBRARY_PATH" = "" ] ; then
      LD_LIBRARY_PATH=$OPENWINHOME/lib:/usr/lib
      export LD_LIBRARY_PATH
    fi
    ;;
esac
#
# --------------- do not change anything below this line ---------------
#
export AIPS_ROOT
#                                       Shortcuts for output text.
ei4 () {
  echo "START_TVSERVERS: $*"
}
#                                       Posix: echo behaves differently
#                                       Following trick from Martin
#                                       Shepherd (mcs at astro.caltech.edu)
#                                       and Will Deich.
ni4 () {
  if [ "`echo -n YES`" = "YES" ] ; then
    echo -n "START_TVSERVERS: $*"
  else
    echo "START_TVSERVERS: $*\c"
  fi
}
spc() {
  echo " "
}
if [ ! -d $AIPS_ROOT ] ; then
  ei4 "AIPS_ROOT is not a directory; cannot start TV servers."
  exit 2
fi
#                                       Arg 1 is TVDISP:TVHOST
TVOPT=$1
if [ "$TVOPT" = "" ] ; then
  ei4 "TVOPT not defined, cannot start anything"
  exit 2
fi
#                                       Arg 2 is version or socket type;
#                                       if version, arg 3 is Socket type
ARG2=`echo $2 | tr '[a-z]' '[A-Z]'`
SOCKTYPE=INET
case $ARG2 in
   OLD|NEW|TST) VERSION=$ARG2; export VERSION;;
   INET|UNIX)   SOCKTYPE=$ARG2;;
   *)           VERSION="";;
esac
ARG3=`echo $3 | tr '[a-z]' '[A-Z]'`
case $ARG3 in
   INET|UNIX) SOCKTYPE=$ARG3;;
esac
#                                       Set the PATH, SYSUNIX, etc.
#                                       This is sensitive to VERSION.
. $AIPS_ROOT/AIPSPATH.SH
#                                       and THEN define TV variables,
#                                       but only if needed.
if [ "$AIPSTVS" = "" ] ; then
  if [ -f $AIPS_ROOT/TVDEVS.SH ] ; then
    . $AIPS_ROOT/TVDEVS.SH
  else
    . $SYSUNIX/TVDEVS.SH
  fi
fi
#                                       Get local overrides if any
. $AIPS_ROOT/AIPSASSN.SH
#                                       Use XAS by default.
if [ "$TVALT" = "TVALT00" ] ; then
   TVALT=TVALT03; export TVALT
fi
#                                       Start the TV servers.
case $TVALT in
  TVALT01) ei4 "Sunview server has been deprecated"
#                                       SSSERVERS
      ;;
  *)
#                                       X11 of some sort, start XAS.
     if [ "$DISPLAY" = "" ] ; then
        DISPLAY="${TVDISP}:0"
        export DISPLAY
     elif [ "$TVDISP" = "$TVHOST" ] ; then
        if [ $SOCKTYPE = INET ] ; then
           DISPLAY="${TVDISP}:0"
           export DISPLAY
        fi
     fi
     if [ "$TVDISP" = "$TVHOST" ] ; then
        hhh=`echo $HOST | tr '[A-Z]' '[a-z]'`
        if [ "$hhh" = "$TVDISP" ] ; then
           DISPLAY=":0"
           export DISPLAY
        fi
     fi
     if [ $SOCKTYPE = INET ] ; then
        XASERVERS
     else
        UNIXSERVERS
     fi
     ;;
esac
#                                       End of START_TVSERVERS
#----------------------------------------------------------------

This uses :0 for display in simple cases rather than host:0 which
confuses some XWindows setups.

Eric Greisen

 > >
 > 
 > >XASERVERS: Start TV LOCK daemon TVSERV on center
 > 
 > AIPS 1: SYMBOL?       XASERVERS
 > 
 > >XASERVERS: Start XAS on center, DISPLAY center:0
 > 
 > AIPS 1: SYMBOL?       XASERVERS
 > 
 > >XASERVERS: Start graphics server TEKSRV on center, DISPLAY center:0
 > 
 > AIPS 1: SYMBOL?       XASERVERS
 > 
 > >TVSERVER: Starting AIPS TV locking, Inet domain
 > 
 > AIPS 1: SYMBOL?       TVSERVER
 > 
 > >STARTPMON: [CENTER] Starting TPMON1 with output SUPPRESSED
 > 
 > AIPS 1: SYMBOL?       STARTPMON
 > 
 > >Begin the one true AIPS number 1 (release of 31DEC03) at priority =   0
 > 
 > AIPS 1: SYMBOL?       BEGIN
 > 
 > >AIPS 1: You are assigned TV device/server   1
 > 
 > AIPS 1: SYMBOL?       AIPS
 > 
 > >AIPS 1: You are assigned graphics device/server   1
 > 
 > AIPS 1: SYMBOL?       AIPS
 > 
 > >AIPS 1: Enter user ID number
 > 
 > AIPS 1: SYMBOL?       AIPS
 > 
 > >?XASERVERS: Start message server MSGSRV on center, DISPLAY center:0
 > 
 > AIPS 1: SYMBOL?       ?
 > 
 > >
 > 
 > >AIPS 1: Enter user ID number
 > 
 > AIPS 1: SYMBOL?       AIPS
 > 
 > >?2
 > 
 > AIPS 1: SYMBOL?       ?
 > 
 > >AIPS 1:                          31DEC03 AIPS:
 > 
 > AIPS 1: SYMBOL?       AIPS
 > 
 > >AIPS 1:      Copyright (C) 1995-2003 Associated Universities, Inc.
 > 
 > AIPS 1: SYMBOL?       AIPS
 > 
 > >AIPS 1:            AIPS comes with ABSOLUTELY NO WARRANTY;
 > 
 > AIPS 1: SYMBOL?       AIPS
 > 
 > >AIPS 1:                 for details, type HELP GNUGPL
 > 
 > AIPS 1: SYMBOL?       AIPS
 > 
 > >AIPS 1: This is free software, and you are welcome to redistribute it
 > 
 > AIPS 1: SYMBOL?       AIPS
 > 
 > >AIPS 1: under certain conditions; type EXPLAIN GNUGPL for details.
 > 
 > AIPS 1: SYMBOL?       AIPS
 > 
 > >AIPS 1: Previous session command-line history recovered.
 > 
 > AIPS 1: SYMBOL?       AIPS
 > 
 > >AIPS 1: TAB-key completions enabled, type HELP READLINE for details.
 > 
 > AIPS 1: SYMBOL?       AIPS
 > 
 > >AIPS 1: Recovered POPS environment from las
 > 
 > 
 > 
 > I really appreciate your help.
 > 
 > 
 > 
 > Sincerely yours,
 > 
 > Chen Yongjun
 > 
 >  
 > 
 > > I appreciate your hard work to avoid asking for help - but that isn't
 > > entirely needed.  Please feel free to ask for help.
 > > 
 > > Can you send me all the messages that appear in your xterm window when
 > > you start AIPS?  These may help me to determine what is going wrong.
 > > 
 > > BTW - there have been reports of problems with the GNU 3.3.x compilers
 > > under fedora; 3.2.2 works okay.
 > > 
 > > Eric Greisen




More information about the Daip mailing list