[STATSGRASS] gstat on mac osx with grass

Thomas Adams Thomas.Adams at noaa.gov
Sat Mar 25 09:48:17 EST 2006


Epi,

I'm guessing here that you are using the latest Apple Development tools 
that can compile either for the Intel or PowerPC based Macs; the Byte 
ordering is different, so you may need to set a compiler flag to let 
GSTAT know which platform you have. I have built GSTAT on a PowerPC 
based Mac with Mac OS X 10.4.5 without problems, but I used the 
development tools that came with 10.4.

I hope this helps some...

Regards,
Tom


epi fanio wrote:
> hi !!!
> i'm new to this list,
>
> i've a problem with gstat :
>
> i'm on a mac osx 10.4.5
>
> i've download a source code of gstat-2.4.0 from here :
>
>    http://www.gstat.org/download.html
>
> i've unzipped the file on my desktop
>
> then  in my  shell (bash)   :
>
>
>   >>>>>>>      cd /Users/epi/Desktop/gstat-2.4.0/
>
>
> and :
>
>   >>>>>>>     ./configure --with-grass6=/usr/local/grasslib/
>
> the result is :
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
>
> loading cache ./config.cache
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc  ) works... yes
> checking whether the C compiler (gcc  ) is a cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for ranlib... (cached) ranlib
> checking for a BSD compatible install... (cached) /usr/bin/install -c
> checking how to run the C preprocessor... (cached) gcc -E
> checking for ANSI C header files... (cached) yes
> checking for gcc option to accept ANSI C... (cached)
> checking for function prototypes... yes
> checking for working const... (cached) yes
> checking for MS-DOS/djgpp... (cached) no
> checking for flex... (cached) flex
> checking for yywrap in -lfl... (cached) yes
> checking for bison... (cached) bison -y
> checking for stat.h... (cached) no
> checking for unistd.h... (cached) yes
> checking for getopt.h... (cached) yes
> checking whether time.h and sys/time.h may both be included... 
> (cached) yes
> checking for 8-bit clean memcmp... (cached) yes
> checking for vprintf... (cached) yes
> checking for strstr... (cached) yes
> checking for strtod... (cached) yes
> checking for strtol... (cached) yes
> checking for popen... (cached) yes
> checking for drand48... (cached) yes
> checking for gettimeofday... (cached) yes
> checking for getopt... (cached) yes
> checking whether byte ordering is bigendian... (cached) yes
> checking for main in -lncurses... (cached) yes
> checking for gdImagePng in -lgd... (cached) no
> checking for gdImageGif in -lgd... (cached) no
> checking for main in -lnetcdf... (cached) no
> checking for QRfactor in -lmeschach... (cached) no
> checking for G_gisinit in -lgis... (cached) no
> checking for main in -lgsl... (cached) no
> creating ./config.status
> creating makefile
> creating src/makefile
> creating libcsf/src/makefile
> creating doc/tex/makefile
> creating src/config.h
> src/config.h is unchanged
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
>
>
> but when i try to make :
>
>
>  >>>>>>   make
>
> i've this error :
>
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
>
> (cd libcsf/src; make)
> gcc -c -O -I../include -DHAVE_CONFIG_H  _getcell.c
> In file included from ../include/csf.h:13,
>                  from _getcell.c:9:
> ../include/csftypes.h:161:4: error: #error BYTE ORDER NOT SPECIFIED 
> (CPU_LITTLE_ENDIAN or CPU_BIG_ENDIAN)
> make[1]: *** [_getcell.o] Error 1
> make: *** [libcsf/src/libcsf.a] Error 2
> powerbook-g4-12-di-epifanio:~/Desktop/gstat-2.4.0 epi$
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
>
>
>
> if i try without    <----with-grass6=/usr/local/grasslib/>
> in the ./ command, i've the same error!
> how can i do?
> can you help me ?
>
> thanks to oll  !!!
>
> Massimo.
>
> _______________________________________________
> statsgrass mailing list
> statsgrass at grass.itc.it
> http://grass.itc.it/mailman/listinfo/statsgrass


-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:	thomas.adams at noaa.gov

VOICE:	937-383-0528
FAX:	937-383-0033




More information about the grass-stats mailing list