[GRASS-user] fatal error: 'libintl.h' file not found (OSX)

Michael Barton Michael.Barton at asu.edu
Tue Oct 14 12:16:56 PDT 2014

I do compile GRASS with internationalization for 6.4.3 and above. However, there have repeatedly been some problems with the way this is implemented on the Mac. Mainly, the internal checks for what is the system language implemented in the GUI have tended to only look at environment settings that are implemented in Linux but not OSX. Another problem with some addons (possibly with r.stream.extract) is the tendency to hardwire searches for needed (and unneeded) libraries to only look in places specific to Linux. There is no reason that libintl.h should be required to compile r.stream.extract. So either this is a bogus error or improper compilation files.

C. Michael Barton
Director, Center for Social Dynamics & Complexity 
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC),  480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Oct 13, 2014, at 8:18 PM, William Kyngesburye <woklist at kyngchaos.com> wrote:

> libintl.h is not part of the OS X system, so it needs to be included in the GRASS app.  I don't build my GRASS app with libintl, but I think Michael Barton does.
> But first, make sure you have the latest version of GRASS, 6.4.4.  Michael may have missed libintl.h in older versions but fixed it later.
> On Oct 12, 2014, at 3:23 PM, Svein Harald Sønderland <snarrald at gmail.com> wrote:
>> Anyone know how to get the r.stream addons to work on mac??
>> When trying to install I get this error:
>> /Applications/GRASS/GRASS-6.4.app/Contents/MacOS/include/grass/glocale.h:9:10:
>> fatal error: 'libintl.h' file not found
>> #include <libintl.h>
>> Installed grass gis 6.4.3 on my mac OSX v.10.9.5.
>> GIS Library Revision 50937 (2012-02-25)
>> Python: 2.6.8
>> wxPython:
>> Error message:
>> (Sun Oct 12 22:11:35 2014)
>> g.extension.py extension=r.stream.extract
>> svnurl=http://svn.osgeo.org/grass/grass-addons/grass6
>> WARNING: GRASS_ADDON_PATH has more items, using first defined -
>> '/Users/snarrald/Library/GRASS/6.4/Modules/bin'
>> WARNING: Extension <r.stream.extract> already installed. Re-installing...
>> Fetching <r.stream.extract> from GRASS-Addons SVN (be patient)...
>> Compiling...
>> /Applications/GRASS/GRASS-6.4.app/Contents/MacOS/include/Mak
>> e/Grass.make:423: warning: overriding commands for target `/
>> Users/snarrald/Desktop/GrassData/GBNP/GBNP/.tmp/Gravenstein.
>> local/53389.0/r.stream.extract/bin'
>> /Applications/GRASS/GRASS-6.4.app/Contents/MacOS/include/Mak
>> e/Grass.make:414: warning: ignoring old commands for target
>> `/Users/snarrald/Desktop/GrassData/GBNP/GBNP/.tmp/Gravenstei
>> n.local/53389.0/r.stream.extract/bin'
>> In file included from close.c:2:
>> /Applications/GRASS/GRASS-6.4.app/Contents/MacOS/include/gra
>> ss/glocale.h:9:10: fatal error: 'libintl.h' file not found
>> #include <libintl.h>
>>        ^
>> 1 error generated.
>> make: *** [OBJ.x86_64-apple-darwin12.4.0/close.o] Error 1
>> ERROR: Compilation failed, sorry. Please check above error messages.
>> (Sun Oct 12 22:11:41 2014) Command finished (5 sec)
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-user
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
> First Pogril: Why is life like sticking your head in a bucket filled with hyena offal?
> Second Pogril: I don't know.  Why IS life like sticking your head in a bucket filled with hyena offal?
> First Pogril: I don't know either.  Wretched, isn't it?
> -HitchHiker's Guide to the Galaxy

More information about the grass-user mailing list