[daip] AIPS installation

thyagarajan at astro.rug.nl thyagarajan at astro.rug.nl
Wed Aug 3 14:39:35 EDT 2005


Hi,
  I checked my compiler versions in /usr/bin and they are
   gcc 4.0.0
   g77 was not found
  in /usr/local/bin
   gcc 2.95.3
   g77 0.5.25

   So I also installed the X11 rpm packages and now that part seems to be
fine. The headers are all found now for the TV.
   But the first problem still persists. In screen 10, as earlier, I try
to use the c and fortran compiler and linker in /usr/local/bin which
has versions as given above.
   The error shown was:
   --------------------------
AipsWiz:         - done.  Now try building the PP preprocessor...
AipsWiz: /usr/local/bin/g77 -O -o PP.EXE PP.f ZTRLOP.o

/usr/bin/ld: cannot find -lg2c
collect2: ld returned 1 exit status
AipsWiz: Error: Failed to build PP.EXE in
/home/software/AIPS/AIPS_ROOT/31DEC05/LINUX/SYSTEM/NITHYA_AIPS

AipsWiz: Error: This will prevent INSTEP2 from starting!!!!
AipsWiz: Error: You need to find out why it failed, but for now
AipsWiz: Error: you can proceed with the rest of the install...
AipsWiz: ==> Press <ENTER> to acknowledge::
AipsWiz:  =====> Make the XAS TV Server from source if needed...
AipsWiz: XAS seems to be already built; good.

...
...
...

   ---------------------------

   I checked the INSTEP2.LOG and AIPSUB.LIS to find which modules did not
compile. I find that every fortran module in AIPSUB.LIS has not been
compiled based on investigation of the INSTEP2.LOG. I'll just post the
contents of AIPSUB.LIS.

    --------------------------
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/ADVERB.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/ADVRBS.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/ASSGN.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU1A.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU1.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU2A.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU2.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU3A.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU3B.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU3.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU4.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU5A.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU5B.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU5C.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU5D.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU5E.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU5.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU6A.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU6B.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU6C.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU6D.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU6E.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU6.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU7A.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU7B.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU7.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU8A.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU8.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU9A.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU9B.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU9C.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AU9.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AUA.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AUB.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AUC.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/AUT.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/BBUILD.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/BCLEAN.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/CATCR.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/CATLST.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/CHGRIP.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/CHUNT.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/COMPIL.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/CONCAT.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/CONFRM.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/CUBINT.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/DESCR.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/EDITOR.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/EQUIV.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/FWRITE.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/GETFLD.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/GETNME.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/GRLUTS.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/GRPOLY.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/HELPS.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/HIENH.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/HILUT.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/HUNT.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/INIT.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/K2TEXT.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/KILSRV.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/KWICK.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/KWIKHD.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/LLOCAT.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/LTSTOR.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/MASSGN.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/MSGHDR.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/OERROR.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/OFMLST.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/PASSGN.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/PFIT.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/POLISH.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/POP.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/PREAD.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/PRINTR.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/PRTALN.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/PRTMSG.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/PSEUDO.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/PUSH.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/RDUSER.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/RENUMB.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/RLHIST.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/RLOCAT.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/SCHOLD.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/SET1DG.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/SETTYP.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/SGLAST.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/SGLOCA.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/SLOCIN.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/STORES.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/SUBS.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/SYMBOL.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/TAPSHO.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/TASKWT.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/TBDATA.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/TBHEAD.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/TKGGPL.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/TKGMPL.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/TKRSPL.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/TKSLAC.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/TKSLPL.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/TVMOVI.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/TVROAM.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/TVSLAC.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/TVSLIN.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/TVSLPL.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/UINIT.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/UWRITE.FOR
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/VERSTR.FOR

    --------------------------

And I also include one sample error message out of the many in INSTEP2.LOG
corresponding to the first fortran module listed in AIPSUB.LIS as shown
above. The messages are all similar for the rest of the modules listed
above. Here it is:

   -------------------------------
COMRPL    : Date       Wed Aug  3 09:10:39 EDT 2005
PP        : Preprocess
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/ADVERB.FOR
PP        : into      
/home/software/AIPS/AIPS_ROOT/31DEC05/LINUX/PREP/ADVERB.f
/home/software/AIPS/AIPS_ROOT/31DEC05/SYSTEM/UNIX/PP: line 193: PP.EXE:
command not found
COMRPL    : Preprocessing fails!
COMRPL    : Leave     
/home/software/AIPS/AIPS_ROOT/31DEC05/AIPS/SUB/ADVERB.FOR
COMRPL    : in        
/home/software/AIPS/AIPS_ROOT/31DEC05/LINUX/INSTALL/AIPSUB.LIS
COMRPL    : unchanged as it FAILED to compile.
   --------------------------------

   And, I checked the FDEFAULT.SH, CCOPTS.SH and LDOPTS.SH files and find
that compiler to be listed under /usr/local/bin which is fine.
   My guess is that "lg2c" in the returned exit status is creating the
trouble.
   I'd really appreciate your help.
Thanks,
Nithya

P.S: I don't know if it will be the same person who will address my
problem this time. So, I also include the most recent correspondence.

-----------------------------------------------------------------------------
----------------------------------------------------------------------------


> thyagarajan at astro.rug.nl writes:
>
> aipsmail and daip are the same mail address, please just use daip
>
>  > 1. Fedora Core 4 (2.6.11-1.1369_FC4) i386 architecture which i very
>  > recently installed and i guess it has a gcc 4.0 as the default during
>  > installation.
>
>     Don't guess - 4.0 would be a horrible choice for the system.  It
> is experimental and does not work with aips at all.
>
> Do a
>        /usr/bin/gcc --version
>        /usr/bin/g77 --version
>
>  > -------------------------------------------------------------------------
>  > AipsWiz: Compiling REVENV...
>  > AipsWiz:         - Compiling ZTRLOP.c...
>  > AipsWiz:         - done.  Now try building the PP preprocessor...
>  > AipsWiz: /usr/bin/g77 -O -o PP.EXE PP.f ZTRLOP.o
>
> cd $AIPS_ROOT
> source LOGIN.CSH         (or . LOGIN.SH for bash)
> $CDTST
> cd $SYSLOCAL
> ls                       to see what is there
> /usr/bin/g77 -O -o PP.EXE PP.f ZTRLOP.o
>
> This should show you the actual error messages which apparnetly get
> lost by install.pl
>
>  > rm -f *.o xas XAS
>  > /usr/bin/gcc  -D_BSD -DUSE_SHM -O2 -c xas.c
>  > In file included from xas.c:31:
>  > xas.h:52:22: error: X11/Xlib.h: No such file or directory
>  > xas.h:53:23: error: X11/Xutil.h: No such file or directory
>  > xas.h:54:24: error: X11/keysym.h: No such file or directory
>  > xas.h:81:33: error: X11/extensions/XShm.h: No such file or directory In
>
> You have not installed the X11 developers' RPM and so are missing
> necessary include files for compilation.  On my machine there is a
> link file (directory link) in /usr/include:
>
> X11 -> ../X11R6/include/X11/
>
> and ../X11R6/include/X11/ contains the needed include files.
>
>  > MAKE.MNJ - Compiling utility programs...
>  > UPDOBSLT.c: In function ‘main’:
>  > UPDOBSLT.c:69: warning: incompatible implicit declaration of built-in
>  > function ‘exit’
>
>    This is just a warning - should not matter.
>
>  > MAKE.MNJ -  --------------------------
>  > MAKE.MNJ - If you wish to change any of these settings, refer to the
>  > MAKE.MNJ - comments at the start of
>  > /home/software/AIPS/AIPS_ROOT/31DEC05/SYSTEM/UNIX/UPDATE/UPDCONFIG
>  > MAKE.MNJ - and edit
>  > /home/software/AIPS/AIPS_ROOT/31DEC05/LINUX/SYSTEM/NITHYA_AIPS/UPDCONFIG
>  > yourself.
>  > MAKE.MNJ - Press <RETURN> to acknowledge...:
>  > MAKE.MNJ - cvs needs to be primed by a login operation; this
>  > MAKE.MNJ - is also a good time to test and make sure you can
>  > MAKE.MNJ - connect to our server. We will now try to login to
>  > MAKE.MNJ - the server (mnj.aoc.nrao.edu); when prompted for
>  > MAKE.MNJ - a password, just hit the enter or return key.
>  > Logging in to :pserver:anoncvs at mnj.aoc.nrao.edu:2401/home/aipssrc/cvs
>
>     What happened at this point?  You should get some prompt and hit
> the return/enter key.  If this fails then perhaps your port for cvs is
> closed.
>
>  > INSTEP2   : Aborts!    Wed Aug  3 09:10:55 EDT 2005
>  > AipsWiz: Error: INSTEP2 failed, no point in proceeding.
>  > AipsWiz: Error: Look in
>  > /home/software/AIPS/AIPS_ROOT/31DEC05/LINUX/INSTALL to see
>  > AipsWiz: Error: if you can figure out what went wrong.  There are
>  > AipsWiz: Error: many log and list files there.  You may want to do
>  >
>  > grep -v ^- *.LIS
>  >
>  >
>  > AipsWiz: Error: to see what modules did not compile.
>
>      Did you do this?  When you find what did not compile - if it is
> only a few then you could send the (small) sections for one or more to
> me and I could help.  Do not send INSTEP2.LOG as a whole unless it is
> short.
>
>
>  >   I then read the gcc compiler issues on NRAO's site and infact
> downloaded
>  > and installed gcc2.95 compiler as instructed on your site. During the
>  > bootstrap command: make bootstrap there were some errors. i then wrote
>  > "make  install" and it seemed to end.
>  >   with this setup, i tried installing AIPS again and made changes in
>  > Screen 10 by changing the paths for fortran compiler(FORT),
> linker(LINK)
>  > and CCOM. i didn't know if i had to change READLINE to the new path.
> the
>  > new path did not have libreadline.a and so i copied it from the old
> path
>  > and pasted it in the new directory and then ran the install again. but
>  > this time, the errors were :
>
>      2.95.3 is pretty old for your system - 3.2.3 is more modern and
> believed to work.
>
>  >
>  > -----------------------------------------------------------------------
>  >
>  > AipsWiz:         - done.  Now try building the PP preprocessor...
>  > AipsWiz: /usr/local/bin/g77 -O -o PP.EXE PP.f ZTRLOP.o
>  > /usr/bin/ld: cannot find -lg2c
>  > collect2: ld returned 1 exit status
>  > AipsWiz: Error: Failed to build PP.EXE in
>  > /home/software/AIPS/AIPS_ROOT/31DEC05/LINUX/SYSTEM/NITHYA_AIPS
>
>         Try the suggestion from above for this compiler too.
>
>  > /usr/local/bin/gcc  -D_BSD -DUSE_SHM -O2 -c xas.c
>  > In file included from xas.c:31:
>  > xas.h:52: X11/Xlib.h: No such file or directory
>  > xas.h:53: X11/Xutil.h: No such file or directory
>  > xas.h:54: X11/keysym.h: No such file or directory
>  > In file included from xas.c:31:
>  > xas.h:81: X11/extensions/XShm.h: No such file or directory
>
>         This is as above.
>
>
>  > INSTEP2   : Failure in $AIPSUB/...
>  > AipsWiz: Error: INSTEP2 failed, no point in proceeding.
>  > /home/software/AIPS/AIPS_ROOT/31DEC05/LINUX/INSTALL to see
>
>  > grep -v ^- *.LIS
>  >
>  > AipsWiz: Error: to see what modules did not compile.
>  >
>
> You should check INSTEP2.LOG to see if it actually used the correct
> /usr/local/bin compilers or stayed with the /usr/bin ones.  If it
> stayed then edit the $SYSLOCAL files CCOPTS.SH, LDOPTS.SH and
> FDEFAULT.SH and try again.
>
> Eric Greisen
>




More information about the Daip mailing list