This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Bob, re: > FYI, come across the below when compiling. > > ====================================================================== > Error > ====================================================================== > less /home/mcidas/mcidas2014/g2clib/../src/makelog > > make /home/mcidas/mcidas2014/libgeotiff: done > make > make[1]: Entering directory `/data/mcidas/mcidas2014/g2clib' > D__64BIT__ -O3 > -I/home/mcidas/mcidas2014/g2clib/../jasper/src/libjasper/include > -DUSE_JPEG2000 -c -o gridtemplates.o gridtemplates.c > make[1]: D__64BIT__: Command not found > make[1]: [gridtemplates.o] Error 127 (ignored) > > ====================================================================== > The FIX > ====================================================================== > vi /data/mcidas/mcidas2014/g2clib/Makefile > change > CC= > to > CC=$(VENDOR) > > Rerun > make all xrd > > ...deleted > ########################################## > Mon Jun 29 17:00:18 MDT 2015: BUILD END > ########################################## The recommended solution is to follow the environment setup directions in the Unidata McIDAS-X User's Guide: Unidata HomePage http://www.unidata.ucar.edu Software -> McIDAS http://www.unidata.ucar.edu/software/mcidas Documentation and Training http://www.unidata.ucar.edu/software/mcidas/#documentation McIDAS user's guide http://www.unidata.ucar.edu/software/mcidas/current/users_guide/toc.html Chapter 1 - Installing and Configuring McIDAS-X http://www.unidata.ucar.edu/software/mcidas/current/users_guide/InstallingandConfiguringMcIDAS-X.html Installing McIDAS-X on Unix or Mac OS X Workstations http://www.unidata.ucar.edu/software/mcidas/current/users_guide/InstallingMcIDAS-XonUnixorMacOSXWorkstations.html Preparing the mcidas Account http://www.unidata.ucar.edu/software/mcidas/current/users_guide/PreparingthemcidasAccount.html The key part included in the 'Preparing the mcidas Account' page is the instruction for setting the environment variables for the McIDAS build. For Bash shell users, this is essentially. For instance <while logged in as 'mcidas'> -- edit the .bash_profile (or .bashrc or .cshrc for Cshell users) file and add the following defines: Remove any/all McIDAS-related definitions from the file Add the following to the file: # McINST_ROOT and VENDOR conforming shell defines # needed to bulid McIDAS McINST_ROOT=$HOME VENDOR=-gfortran export McINST_ROOT VENDOR # NOTE: uncomment the next two lines that set MySQL_ROOT if you # want to build with MySQL support: # - leave the value blank if MySQL is installed in a standard # location # - specify the value as the root directory of the MySQL # installation if MySQL is not installed in a standard # location # MySQL_ROOT=TRUE # export MySQL_ROOT if [ -e $HOME/admin/mcidas_env.sh ]; then . $HOME/admin/mcidas_env.sh fi Next, if it hasn't already been done, unpack the McIDAS-X source distribution: cd ~mcidas -- download the Unidata McIDAS-X distribution source file, and the 'mcunpack' and 'mcinet2014.sh' scripts chmod +x mcunpack export McINST_ROOT=$HOME ./mcunpack Now you need to "activate" the code added to .bash_profile (or .bashrc, or .cshrc, etc.). The simplest thing is for the 'mcidas' user to simply logs off and then log back on. At this point, it would be best to do a clean build of McIDAS-X, -XCD, -XRD: cd ~/mcidas2014/src make clobber -- NB: return 'makefile' to the state it was before your modification!!! make all xrd make install.all install.xrd The good thing about configuring the environment in the 'mcidas' account is that you should never have to modify it again, and the McIDAS-X executables should have been built correctly. Cheers, Tom -- **************************************************************************** Unidata User Support UCAR Unidata Program (303) 497-8642 P.O. Box 3000 address@hidden Boulder, CO 80307 ---------------------------------------------------------------------------- Unidata HomePage http://www.unidata.ucar.edu **************************************************************************** Ticket Details =================== Ticket ID: FCI-632826 Department: Support McIDAS Priority: Normal Status: Closed