<div class="gmail_quote">On Sat, Feb 23, 2008 at 1:08 PM, Steven Weiss &lt;<a href="mailto:sweiss@iafrica.com">sweiss@iafrica.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>I&#39;ve been trying to build Grads from Sources and downloaded the sources for<br>both Grads 1.9 and the supplibs at sourceforge. </blockquote>

<div>&nbsp;</div>
<div>Even&nbsp;when the grads binaries do not work for you the pre-compiled supplibs might. If you built your supplibs did you checked whether all the packages completed succesfully? Do a </div>
<div>&nbsp;</div>
<div>% ls *.install</div>
<div>&nbsp;</div>
<div>and see if ll packages are accounted for, specially udunits. If not, enter</div>
<div>&nbsp;</div>
<div>make install ALLDIRS=udunits</div>
<div>&nbsp;</div>
<div>and see what is going on (specifying ALLDIRS this way avoid tons of distracting output from other packages.)</div>
<div>&nbsp;</div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span id=""></span>I&#39;ve followed the<br>documentation at opengrads and the build runs fine but only for gradsc. I<br>
would like to build gradsdods as well but it seems that the problem is with<br>udunits.h. This is in my supplibs/src/udunits/lib directory. See below for<br>output from the configure script. I have also tried with the &quot;--with-dods&quot;<br>
option with no success.<br></blockquote>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>The first unusual thing that I noticed</div>
<div>&nbsp;</div>
<div>
<div>checking for supplibs directory... ./supplibs/i686-pc-linux-gnu<br></div>
<div>&nbsp;</div>
<div>I usually place the supplibs parallel to the grads directory</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; ../supplibs/i686-pc-linux-gnu<br><br>(I am not sure if this is a problem...)&nbsp; Here is another clue:</div></div>
<div>&nbsp;</div>
<div>Checking which GrADS binaries can be built<br>------------------------------------------<br>checking udunits.h usability... no<br>checking udunits.h presence... no<br>checking for udunits.h... no<br>- gradsnc (plain netCDF) build disabled</div>

<div>&nbsp;</div>
<div>Somehow it cannot locate udunits.h. Can you see if you have this include file under</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; ./supplibs/i686-pc-linux-gnu/include/udunits<br></div>
<div>My guess is that your udunits build failed. </div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp; Arlindo</div>
<div>&nbsp;</div>
<div><br>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span id=""></span><br>Regards<br>Steven<br><br>checking for a BSD-compatible install... /usr/bin/install -c<br>
checking whether build environment is sane... yes<br>checking for a thread-safe mkdir -p... /bin/mkdir -p<br>checking for gawk... gawk<br>checking whether make sets $(MAKE)... yes<br>checking whether to enable maintainer-specific portions of Makefiles... no<br>
<br>Checking for programs<br>------------------<br>checking for gawk... (cached) gawk<br>checking for gcc... gcc<br>checking for C compiler default output file name... a.out<br>checking whether the C compiler works... yes<br>
checking whether we are cross compiling... no<br>checking for suffix of executables...<br>checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes<br>checking whether gcc accepts -g... yes<br>
checking for gcc option to accept ISO C89... none needed<br>checking for g++... g++<br>checking whether we are using the GNU C++ compiler... yes<br>checking whether g++ accepts -g... yes<br>checking for a BSD-compatible install... /usr/bin/install -c<br>
checking whether ln -s works... yes<br><br>Setting host specific options<br>-------------------------<br>checking build system type... i686-pc-linux-gnu<br>checking host system type... i686-pc-linux-gnu<br>checking for supplibs directory... ./supplibs/i686-pc-linux-gnu<br>
<br>Checking system libraries, headers, and compiler features<br>-----------------------------------------<br>checking for cos in -lm... yes<br>checking how to run the C preprocessor... gcc -E<br>checking for X... libraries , headers<br>
checking for gethostbyname... yes<br>checking for connect... yes<br>checking for remove... yes<br>checking for shmat... yes<br>checking for IceConnectionNumber in -lICE... yes<br><br>checking for grep that handles long lines and -e... /usr/bin/grep<br>
checking for egrep... /usr/bin/grep -E<br>checking for ANSI C header files... yes<br>checking for sys/types.h... yes<br>checking for sys/stat.h... yes<br>checking for stdlib.h... yes<br>checking for string.h... yes<br>checking for memory.h... yes<br>
checking for strings.h... yes<br>checking for inttypes.h... yes<br>checking for stdint.h... yes<br>checking for unistd.h... yes<br>checking malloc.h usability... yes<br>checking malloc.h presence... yes<br>checking for malloc.h... yes<br>
checking sys/file.h usability... yes<br>checking sys/file.h presence... yes<br>checking for sys/file.h... yes<br>checking for unistd.h... (cached) yes<br><br>checking for an ANSI C-conforming const... yes<br>checking whether byte ordering is bigendian... no<br>
checking for strtod... yes<br>checking for off_t... yes<br>checking for special C compiler options needed for large files... no<br>checking for _FILE_OFFSET_BITS value needed for large files... 64<br>checking for _LARGEFILE_SOURCE value needed for large files... no<br>
<br>Checking for optional feature support<br>------------------------------------<br>checking whether to use dynamic linking... no<br><br>Check GrADS command line editing support...<br>checking readline/readline.h usability... yes<br>
checking readline/readline.h presence... yes<br>checking for readline/readline.h... yes<br>checking readline/history.h usability... yes<br>checking readline/history.h presence... yes<br>checking for readline/history.h... yes<br>
checking for tgetent in -lncurses... yes<br>checking for libreadline.a in supplibs... yes<br>+ Command line editing enabled<br><br>Check GrADS GUI support...<br>checking for main in -lXext... yes<br>checking for main in -lXt... yes<br>
checking for main in -lXmu... yes<br>checking for main in -lXpm... yes<br>checking for libneXtaw.a in supplibs... yes<br>checking for libsx.a in supplibs... yes<br>+ GUI enabled<br><br>Check GrADS printim support...<br>checking gd.h usability... yes<br>
checking gd.h presence... yes<br>checking for gd.h... yes<br>checking for libz.a in supplibs... yes<br>checking for libpng.a in supplibs... yes<br>checking for libgd.a in supplibs... yes<br>+ printim enabled<br><br>checking if wi command has been enabled... no<br>
- wi disabled<br><br>+ LATS enabled<br><br>Checking which GrADS binaries can be built<br>------------------------------------------<br>checking udunits.h usability... no<br>checking udunits.h presence... no<br>checking for udunits.h... no<br>
- gradsnc (plain netCDF) build disabled<br><br>checking for udunits.h... (cached) no<br>- gradsnc4 (netCDF-4) build disabled<br><br>checking for udunits.h... (cached) no<br>- gradshdf (HDF-SDS/netCDF) build disabled<br><br>
checking for udunits.h... (cached) no<br>- gradsdods (OPeNDAP/netCDF) build disabled<br><br>&nbsp;+=========================================================================+<br>&nbsp; GrADS 1.9.0-rc1 : Built Sat Feb 23 19:31:27 SAST 2008 for i686-pc-linux-gnu<br>
&nbsp;+=========================================================================+<br><br>&nbsp;+----------------------------------+<br>&nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>&nbsp;| Configuration Summary &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>&nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>
&nbsp;| &nbsp;+ readline enabled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>&nbsp;| &nbsp;+ printim enabled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br>&nbsp;| &nbsp;+ GUI enabled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br>&nbsp;| &nbsp;+ LATS enabled &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>&nbsp;| &nbsp;- wi disabled (default) &nbsp; &nbsp; &nbsp; &nbsp; |<br>&nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>
&nbsp;| Build Summary &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>&nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>&nbsp;| &nbsp;+ gradsc &nbsp; &nbsp;(classic) enabled &nbsp; |<br>&nbsp;| &nbsp;- gradsnc &nbsp; (netCDF-3) disabled |<br>&nbsp;| &nbsp;- gradsnc4 &nbsp;(netCDF-4) disabled |<br>&nbsp;| &nbsp;- gradshdf &nbsp;(HDF-SDS) disabled &nbsp;|<br>
&nbsp;| Build Summary &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>&nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>&nbsp;| &nbsp;+ gradsc &nbsp; &nbsp;(classic) enabled &nbsp; |<br>&nbsp;| &nbsp;- gradsnc &nbsp; (netCDF-3) disabled |<br>&nbsp;| &nbsp;- gradsnc4 &nbsp;(netCDF-4) disabled |<br>&nbsp;| &nbsp;- gradshdf &nbsp;(HDF-SDS) disabled &nbsp;|<br>
&nbsp;| &nbsp;- gradsdods (OPeNDAP) disabled &nbsp;|<br>&nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>&nbsp;| &nbsp;- Dynamic supplibs disabled &nbsp; &nbsp; |<br>&nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>&nbsp;+----------------------------------+<br>configure: creating src/VERSION<br>
configure: creating src/buildinfo.h<br>configure: creating ./config.status<br>config.status: creating Makefile<br>config.status: creating src/Makefile<br>config.status: creating pytests/Makefile<br>config.status: creating src/config.h<br>
config.status: src/config.h is unchanged<br><br>Run &#39;make &amp;&amp; make install&#39; to build GrADS.<br>Executables will be installed to bin/ in current dir, unless prefix was specifie<br>d.<br></blockquote></div><br>
<br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a>