[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20020722: McIDAS-X build errors on Linux (cont.)



>From: William C Klein <address@hidden>
>Organization: Valparaiso
>Keywords: 200207121534.g6CFYja05610 McIDAS-X 7.8 netCDF environment

Bill,

>Here is the env report:
>
>
>TERM=xterm
>DISPLAY=:0
>HOME=/usr/local/mcidas
>SHELL=/bin/tcsh
>USER=mcidas
>LOGNAME=mcidas
>PATH=/usr/local/mcidas/bin:/usr/local/sbin:/usr/sbin:/sbin:/bin:/usr/bin:/usr/
> local/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/mcidas/bin
>HOSTTYPE=i386-linux
>VENDOR=intel
>OSTYPE=linux
>MACHTYPE=i386
>SHLVL=1
>PWD=/usr/local/mcidas
>GROUP=mcidas
>HOST=vu014349.muh
>HOSTNAME=vu014349.muh
>LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33
> ;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;3
> 2:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.ar
> j=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.
> bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01
> ;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
>SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
>LANG=en_US
>SUPPORTED=en_US:en
>LESSOPEN=|/usr/bin/lesspipe.sh %s
>MCHOME=/usr/local/mcidas
>McINST_ROOT=/usr/local/mcidas
>MCDATA=/usr/local/mcidas/workdata
>MCPATH=/usr/local/mcidas/workdata:/usr/local/mcidas/data:/usr/local/mcidas/hel
> p
>MCGUI=/usr/local/mcidas/bin
>MCTABLE_READ=/usr/local/mcidas/workdata/MCTABLE.TXT;/usr/local/mcidas/data/ADD
> ESITE.TXT
>MCTABLE_WRITE=/usr/local/mcidas/data/ADDESITE.TXT
>XCD_disp_file=/usr/local/mcidas/workdata/DECOSTAT.DAT
>MCCOMPRESS=TRUE

OK.  It is as I suspected.  You do not have environment variables needed
for the the build defined in your session.  The online 'Notes and Warnings'
document:

http://www.unidata.ucar.edu/packages/mcidas/780/mcx/warnings_mcx.html

describes the environment variables you need to define _before_ attempting
a build of McIDAS.  For a Linux system, these definitions will look like:

-- Vendor supplied compilers --  meaning gcc/mcfc/f2c
setenv CC /usr/bin/cc
setenv CPPFLAGS "-DNDEBUG -Df2cFortran"
setenv CFLAGS -O
setenv FC ~mcidas/mcidas7.8/src/mcfc
setenv FFLAGS "-O -Nx400 -w"
setenv CXX

-- or --

-- GNU gcc and g77 --
setenv CC gcc
setenv CPPFLAGS "-DNDEBUG -Df2cFortran"
setenv CFLAGS -O
setenv FC g77
setenv FFLAGS "-O -Wuninitialized -fno-automatic"
setenv CXX

You should define these in your .tcshrc file (or .cshrc if you are
using it with your tcsh environment) and source the file.

After CC, CPPFLAGS, etc. are defined in your enviornment, you need to
do the following if you are using the gcc/mcfc/f2c combination:

cd ~mcidas/mcidas7.8/src
make clobber
make mcx                   <- build McIDAS-X only
  -- or --
make all                   <- build McIDAS-X and McIDAS-XCD

If you will be using the gcc/g77 compiler combination, you would run:

cd ~mcidas/mcidas7.8/src
make clobber
make mcx VENDOR=-g77       <- build McIDAS-X only
  -- or --
make all VENDOR=-g77       <- build McIDAS-X and McIDAS-XCD

At this point, the distribution should be built with no problems.

Tom