[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


>Here is the env report:
> local/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/mcidas/bin
> ;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:
>LESSOPEN=|/usr/bin/lesspipe.sh %s
> p

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'


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.


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.