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 Jim, I was in the middle of my previous reply when I got sidetracked on another issue... re: > So I started over -- wiped the existing stuff and re-ran mcunpack in > /home/mcidas after adding VENDOR and McINST_ROOT to my .bash_profile and > then logging off/on. Here's the situation before building: > > mcidas@kubuntu-kitchen:~$ *env | grep VEN* > VENDOR=-gfortran > mcidas@kubuntu-kitchen:~$ *env | grep Mc* > McINST_ROOT=/home/mcidas This is not sufficient. What is missing are a number of environment variable definitions that are used by the build process. re: > mcidas@kubuntu-kitchen:~$* pwd* > /home/mcidas > mcidas@kubuntu-kitchen:~$ *ls -l* > total 126832 > drwxrwxr-x 2 mcidas mcidas 4096 Feb 14 18:39 admin > drwxrwxr-x 2 mcidas mcidas 4096 Feb 14 18:39 bin > drwxrwxr-x 3 mcidas mcidas 4096 Feb 14 18:39 data > drwxr-xr-x 2 mcidas mcidas 4096 Feb 13 13:16 Desktop > drwxr-xr-x 2 mcidas mcidas 4096 Feb 13 13:16 Documents > drwxr-xr-x 2 mcidas mcidas 4096 Feb 13 13:16 Downloads > drwxrwxr-x 2 mcidas mcidas 4096 Feb 14 18:39 etc > drwxrwxr-x 2 mcidas mcidas 4096 Feb 14 18:39 help > drwxrwxr-x 2 mcidas mcidas 4096 Feb 14 18:39 inc > drwxrwxr-x 3 mcidas mcidas 4096 Feb 14 18:39 lib > drwxrwxr-x 3 mcidas mcidas 4096 Feb 14 18:39 man > drwxrwxr-x 21 mcidas mcidas 4096 Feb 14 18:39 mcidas2018 > -rw-rw-r-- 1 mcidas mcidas 129763555 Feb 13 13:20 mcidasx2018.tar.gz > -rw-rw-r-- 1 mcidas mcidas 17706 Feb 13 13:20 mcinet2018.sh > -rwxrwxr-x 1 mcidas mcidas 3406 Feb 13 13:20 mcunpack > drwxr-xr-x 2 mcidas mcidas 4096 Feb 13 13:16 Music > drwxr-xr-x 2 mcidas mcidas 4096 Feb 13 13:16 Pictures > drwxr-xr-x 2 mcidas mcidas 4096 Feb 13 13:16 Public > drwxrwxr-x 2 mcidas mcidas 4096 Feb 14 18:39 savedata > drwxrwxr-x 2 mcidas mcidas 4096 Feb 14 18:39 tcl > drwxr-xr-x 2 mcidas mcidas 4096 Feb 13 13:16 Templates > drwxr-xr-x 2 mcidas mcidas 4096 Feb 13 13:16 Videos > drwxrwxr-x 2 mcidas mcidas 4096 Feb 14 18:39 workdata > > And then... > > mcidas@kubuntu-kitchen:~/mcidas2018/src$ make mcx > make: NOTICE: VENDOR compiler selection: -gfortran > rm -f cal_init; cp cal_init.sh cal_init; chmod 755 cal_init > rm -f fx; cp fx.sh fx; chmod 755 fx > rm -f mcidasx; cp mcidasx.sh mcidasx; chmod 755 mcidasx > rm -f mcservsh > Updating mcservsh... > chmod 755 mcservsh > rm -f mcar; cp mcar.sh mcar; chmod 755 mcar > rm -f mccomp; cp mccomp.sh mccomp; chmod 755 mccomp > rm -f mcfc; cp mcfc.sh mcfc; chmod 755 mcfc > rm -f mcln; cp mcln.sh mcln; chmod 755 mcln > rm -f mclog; cp mclog.sh mclog; chmod 755 mclog > rm -f mcxpyinstall; cp mcxpyinstall.sh mcxpyinstall; chmod 755 mcxpyinstall > rm -f nav_init; cp nav_init.sh nav_init; chmod 755 nav_init > rm -f xrefit; cp xrefit.sh xrefit; chmod 755 xrefit > rm -f scourBYday; cat scourBYday.stcl | sed \ > -e 's;#!/usr/bin/tclsh;#!/home/mcidas/tcl/bin/tclsh;' > > scourBYday > chmod 755 scourBYday > rm -f scourBYnumber; cat scourBYnumber.stcl | sed \ > -e 's;#!/usr/bin/tclsh;#!/home/mcidas/tcl/bin/tclsh;' > > scourBYnumber > chmod 755 scourBYnumber > rm -f mcxconfig; cat mcxconfig.stcl | sed \ > -e 's;#!/usr/bin/tclsh;#!/home/mcidas/tcl/bin/tclsh;' > > mcxconfig > chmod 755 mcxconfig > rm -f mcidas; ./mcln mcstart.gui mcidas > > ########################################## > Thu Feb 14 18:43:44 EST 2019: BUILD INIT > ########################################## > > rm -f disable_mcidas_gui; cp disable_mcidas_gui.sh disable_mcidas_gui; > chmod 755 disable_mcidas_gui > rm -f enable_mcidas_gui; cp enable_mcidas_gui.sh enable_mcidas_gui; chmod > 755 enable_mcidas_gui > rm -f tclcomp > sh tclcomp.sh /home/mcidas/tcl ../tcl ../tk tclcomp > tclcomp.sh: Library name mismatch (LIB=-L/home/mcidas/tcl/lib -ltcl8.5, > BUILD=-L/home/mcidas/mcidas2018/tcl/unix -ltcl8.5) > tclcomp.sh: Library name mismatch (LIB=-L/home/mcidas/tcl/lib -ltk8.5, > BUILD=-L/home/mcidas/mcidas2018/tk/unix -ltk8.5) > chmod 755 tclcomp > cd ../jpeg && \ > ../src/./mclog sh ./configure --prefix=/home/mcidas > configure /home/mcidas/mcidas2018/jpeg: done > cd ../zlib && \ > ../src/./mclog sh ./configure --prefix=/home/mcidas > configure /home/mcidas/mcidas2018/zlib: done > cd ../zlib && ../src/./mclog make > make /home/mcidas/mcidas2018/zlib: done > CPPFLAGS=" -I`pwd`/../zlib" && \ > LDFLAGS=" -L`pwd`/../zlib -lz" && \ > export CPPFLAGS > LDFLAGS \ > ; cd ../libpng && \ > ../src/./mclog sh ./configure --prefix=/home/mcidas > && \ > ../src/./mclog make > configure /home/mcidas/mcidas2018/libpng: done > make /home/mcidas/mcidas2018/libpng: done > cd ../jpeg && ../src/./mclog make > make /home/mcidas/mcidas2018/jpeg: done > if [ `uname -s` = "SunOS" ]; then \ > > PATH=/usr/xpg4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin > \ > export PATH \ > ; fi \ > ; cd ../hdf && LDFLAGS=-lm && export LDFLAGS && \ > ../src/./mclog sh ./configure --prefix=/home/mcidas\ > --with-jpeg=`pwd`/../jpeg,`pwd`/../jpeg\ > --with-zlib=`pwd`/../zlib,`pwd`/../zlib\ > --disable-fortran --enable-hdf4-xdr > configure /home/mcidas/mcidas2018/hdf: done > CFLAGS=" -fPIC" && export CFLAGS \ > ; cd ../hdf5 && \ > ../src/./mclog sh ./configure --prefix=/home/mcidas\ > --enable-hl --with-pic \ > --with-zlib=`pwd`/../zlib,`pwd`/../zlib > configure /home/mcidas/mcidas2018/hdf5: done > cd ../hdf5 && ../src/./mclog make && \ > cp ../hdf5/src/.libs/libhdf5.a ../hdf5/src/libhdf5.a && \ > cp ../hdf5/hl/src/.libs/libhdf5_hl.a > ../hdf5/src/libhdf5_hl.a > make /home/mcidas/mcidas2018/hdf5: done > CFLAGS=" -fPIC" && export CFLAGS && \ > CPPFLAGS=" -I`pwd`/../hdf5/src -I`pwd`/../hdf5/hl/src > -I`pwd`/../zlib/include" && export CPPFLAGS && \ > LDFLAGS=" -L`pwd`/../hdf5/src -L`pwd`/../zlib/lib" && > export LDFLAGS \ > ; cd ../netcdf && \ > ../src/./mclog sh ./configure --prefix=/home/mcidas > --disable-dap --disable-largefile > configure /home/mcidas/mcidas2018/netcdf: FAILED (See > '/home/mcidas/mcidas2018/netcdf/../src/makelog' for details.) > > makefile:2985: recipe for target '../netcdf/config.status' failed > make: *** [../netcdf/config.status] Error 1 > > *Taking a look at the end of that makelog:* > > mcidas@kubuntu-kitchen:~/mcidas2018/src$ tail > /home/mcidas/mcidas2018/netcdf/../src/makelog > checking size of int... 4 > checking size of long... 8 > checking size of long long... 8 > checking size of float... 4 > checking size of double... 8 > checking size of off_t... 8 > checking size of size_t... 8 > checking for library containing deflate... no > configure: error: Can't find or link to the z library. Turn off netCDF-4 > and opendap with --disable-netcdf-4 --disable-dap, or see config.log > for errors. > configure /home/mcidas/mcidas2018/netcdf: FAILED > > Last time I hit this error, I found a way to manually configure the netcdf > stuff and added the --disable-netcdf-4 flag. > > -Jim I'm confident that as soon as you "source" the McIDAS environment setting file for the shell you are using, then all of the needed McIDAS environment variables will be set and your build will proceed without problem. Please try the following: <all as 'mcidas'> cd ~mcidas/mcidas2018/src make clobber cd ~ source admin/mcidas_env.csh env | grep ^MC You should see a list that looks something like: % env | grep ^MC MCTABLE_READ=/home/mcidas/workdata/MCTABLE.TXT;/home/mcidas/data/ADDESITE.TXT MCHOME=/home/mcidas MCGUI=/home/mcidas/bin MCCOMPRESS=GZIP MCBIN=/home/mcidas/bin MCSRC=/home/mcidas/mcidas2018/src MCUPDATE=/home/mcidas/mcidas2018/update MCTABLE_WRITE=/home/mcidas/data/ADDESITE.TXT MCPATH=/home/mcidas/workdata:/home/mcidas/workdata:/home/mcidas/data:/home/mcidas/help MCVER=2018 MCSTRETCH=EXP MCDATA=/home/mcidas/workdata If you do not see a list like this, it should mean that environment variables like CC, CFLAGS, CPPFLAGS, CXXCPP, FC and others needed for a build have not been defined. If you do see them, proceed with retrying a build: cd ~mcidas/mcidas2018/src make mcx If this succeeds, run: make install.mcxall 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: HQH-586893 Department: Support McIDAS Priority: Normal Status: Closed =================== 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.