[GRASS-user] g.extension gives an error when installing r.prominence

Date: Tue, 6 Jan 2015 23:47:57 +0100
From: Markus Neteler <neteler@osgeo.org>
To: Thayer Young <thayeray@yahoo.com>
Cc: “grass-user@lists.osgeo.org” <grass-user@lists.osgeo.org>
Subject: Re: [GRASS-user] g.extension gives an error when installing
r.prominence
Message-ID:
<CALFmHhvGgaEq_zBD_fTWry0jRgH->p0UaPOL+O+2bhX20r81hVA@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On Tue, Jan 6, 2015 at 7:35 PM, Thayer Young <thayeray@yahoo.com> wrote:

When I try to install the r.prominence extension I get the following error:

g.extension.py -i extension=r.prominence
svnurl=http://svn.osgeo.org/grass/grass-addons/grass6
WARNING: GRASS_ADDON_PATH has more items, using first defined -
‘/Users/thayer/Library/GRASS/6.4/Modules/bin’

ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v
to see invocation)

ERROR: Compilation failed, sorry. Please check above error messages.

This is strange, for Windows g.extension should download a precompiled
“r.prominence.exe”.

Which GRASS GIS 6.4.x version do you use precisely? And on which
Windows Version?

Markus

I am on Mac OS 10.10. From the About GRASS GIS window:

GRASS GIS 6.4.5svn, SVN Revision 61583M, GIS Library Revision 50937 (2012-02-25), Python: 2.7.6, wxPython: 2.8.12.1

I installed it using the Michael Barton snapshot , but I installed it using the Kyng Chaos frameworks (I tried both GUIs and went with the Barton version).

-Thayer

On Tue, Jan 6, 2015 at 7:35 PM, Thayer Young <thayeray@yahoo.com> wrote:

When I try to install the r.prominence extension I get the following error:

g.extension.py -i extension=r.prominence
svnurl=http://svn.osgeo.org/grass/grass-addons/grass6
WARNING: GRASS_ADDON_PATH has more items, using first defined -
'/Users/thayer/Library/GRASS/6.4/Modules/bin'
...
ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v
to see invocation)
...
ERROR: Compilation failed, sorry. Please check above error messages.

On Wed, Jan 7, 2015 at 10:37 PM, Thayer Young <thayeray@yahoo.com> wrote:

I am on Mac OS 10.10. From the About GRASS GIS window:

GRASS GIS 6.4.5svn, SVN Revision 61583M, GIS Library Revision 50937
(2012-02-25), Python: 2.7.6, wxPython: 2.8.12.1

I installed it using the Michael Barton snapshot , but I installed it using
the Kyng Chaos frameworks (I tried both GUIs and went with the Barton
version).

I see. So I add Michael in CC, perhaps he remembers the solution since
a similar issue was discussed last year:

http://lists.osgeo.org/pipermail/grass-dev/2014-April/068136.html
(and related messages).

Markus

Thank you Markus.


From: Markus Neteler neteler@osgeo.org
To: Thayer Young thayeray@yahoo.com
Cc: GRASS user list grass-user@lists.osgeo.org; Michael Barton michael.barton@asu.edu
Sent: Wednesday, January 7, 2015 5:39 PM
Subject: Re: [GRASS-user] g.extension gives an error when installing r.prominence

On Tue, Jan 6, 2015 at 7:35 PM, Thayer Young <thayeray@yahoo.com> wrote:

When I try to install the r.prominence extension I get the following error:

g.extension.py -i extension=r.prominence
svnurl=http://svn.osgeo.org/grass/grass-addons/grass6
WARNING: GRASS_ADDON_PATH has more items, using first defined -
‘/Users/thayer/Library/GRASS/6.4/Modules/bin’

ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v
to see invocation)

ERROR: Compilation failed, sorry. Please check above error messages.

On Wed, Jan 7, 2015 at 10:37 PM, Thayer Young <thayeray@yahoo.com> wrote:

I am on Mac OS 10.10. From the About GRASS GIS window:

GRASS GIS 6.4.5svn, SVN Revision 61583M, GIS Library Revision 50937
(2012-02-25), Python: 2.7.6, wxPython: 2.8.12.1

I installed it using the Michael Barton snapshot , but I installed it using
the Kyng Chaos frameworks (I tried both GUIs and went with the Barton
version).

I see. So I add Michael in CC, perhaps he remembers the solution since
a similar issue was discussed last year:

http://lists.osgeo.org/pipermail/grass-dev/2014-April/068136.html
(and related messages).

Markus

Thayer,

On Tue, Jan 6, 2015 at 7:35 PM, Thayer Young <thayeray@yahoo.com

<mailto:thayeray@yahoo.com>> wrote:

When I try to install the r.prominence extension I get the following

error:

g.extension.py -i extension=r.prominence
svnurl=http://svn.osgeo.org/grass/grass-addons/grass6
WARNING: GRASS_ADDON_PATH has more items, using first defined -
'/Users/thayer/Library/GRASS/6.4/Modules/bin'
...
ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v
to see invocation)
...
ERROR: Compilation failed, sorry. Please check above error messages.

Which version of Mac OS X are you on?
I recall having a similar problem, related to "gettext",
with OS 10.9.

In my case, this solved the problem (requires an
Internet connection):

1. Go to http://brew.sh/ and install "brew", then:

2. in the Terminal, issue:

   brew install gettext

3. Try compiling again.

Best,

Ben

On Wed, Jan 7, 2015 at 10:37 PM, Thayer Young <thayeray@yahoo.com
<mailto:thayeray@yahoo.com>> wrote:

I am on Mac OS 10.10. From the About GRASS GIS window:

GRASS GIS 6.4.5svn, SVN Revision 61583M, GIS Library Revision 50937
(2012-02-25), Python: 2.7.6, wxPython: 2.8.12.1

I installed it using the Michael Barton snapshot , but I installed it

using

the Kyng Chaos frameworks (I tried both GUIs and went with the Barton
version).

I see. So I add Michael in CC, perhaps he remembers the solution since
a similar issue was discussed last year:

http://lists.osgeo.org/pipermail/grass-dev/2014-April/068136.html
(and related messages).

Markus

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Dr. Benjamin Ducke
{*} Geospatial Consultant
{*} GIS Developer

Spatial technology for the masses, not the classes:
experience free and open source GIS at http://gvsigce.org

William Kyngesburye might have a better idea about why compilation failed.

I do remember having compiling problems a year and a half ago for certain things. But that was on GRASS 7. You might try installing the OSX command line tools from the Apple Developer site.

The error seems to be related to internationalization (ld: library not found for -lintl). This is in gettext. I normally compile with gettext included. I posted a new binary 30 December and then revised it a couple times. When did you download this?

Michael
____________________
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 Jan 7, 2015, at 3:39 PM, Markus Neteler <neteler@osgeo.org> wrote:

On Tue, Jan 6, 2015 at 7:35 PM, Thayer Young <thayeray@yahoo.com> wrote:

When I try to install the r.prominence extension I get the following error:

g.extension.py -i extension=r.prominence
svnurl=http://svn.osgeo.org/grass/grass-addons/grass6
WARNING: GRASS_ADDON_PATH has more items, using first defined -
'/Users/thayer/Library/GRASS/6.4/Modules/bin'
...
ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v
to see invocation)
...
ERROR: Compilation failed, sorry. Please check above error messages.

On Wed, Jan 7, 2015 at 10:37 PM, Thayer Young <thayeray@yahoo.com> wrote:

I am on Mac OS 10.10. From the About GRASS GIS window:

GRASS GIS 6.4.5svn, SVN Revision 61583M, GIS Library Revision 50937
(2012-02-25), Python: 2.7.6, wxPython: 2.8.12.1

I installed it using the Michael Barton snapshot , but I installed it using
the Kyng Chaos frameworks (I tried both GUIs and went with the Barton
version).

I see. So I add Michael in CC, perhaps he remembers the solution since
a similar issue was discussed last year:

http://lists.osgeo.org/pipermail/grass-dev/2014-April/068136.html
(and related messages).

Markus

Michael,

Thank you for your suggestions. I just installed the most recent binary from your site, I had the previous version. I am still getting the same compilation error when I try to install certain raster extensions (r.prominence, r.whereistheriver).

I do have the most recent OSX command line tools for my version of OSX (10.10). And according to Homebrew I have the most recent version of gettext. Maybe Homebrew isn’t playing nice with XCode?

-Thayer


From: Michael Barton Michael.Barton@asu.edu
To: Markus Neteler neteler@osgeo.org
Cc: Thayer Young thayeray@yahoo.com; grass-user grass-user grass-user@lists.osgeo.org; William Kyngesburye kyngchaos@kyngchaos.com
Sent: Thursday, January 8, 2015 12:17 PM
Subject: Re: [GRASS-user] g.extension gives an error when installing r.prominence

William Kyngesburye might have a better idea about why compilation failed.

I do remember having compiling problems a year and a half ago for certain things. But that was on GRASS 7. You might try installing the OSX command line tools from the Apple Developer site.

The error seems to be related to internationalization (ld: library not found for -lintl). This is in gettext. I normally compile with gettext included. I posted a new binary 30 December and then revised it a couple times. When did you download this?

Michael


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 Jan 7, 2015, at 3:39 PM, Markus Neteler <neteler@osgeo.org> wrote:

On Tue, Jan 6, 2015 at 7:35 PM, Thayer Young <thayeray@yahoo.com> wrote:

When I try to install the r.prominence extension I get the following error:

g.extension.py -i extension=r.prominence
svnurl=http://svn.osgeo.org/grass/grass-addons/grass6
WARNING: GRASS_ADDON_PATH has more items, using first defined -
‘/Users/thayer/Library/GRASS/6.4/Modules/bin’

ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v
to see invocation)

ERROR: Compilation failed, sorry. Please check above error messages.

On Wed, Jan 7, 2015 at 10:37 PM, Thayer Young <thayeray@yahoo.com> wrote:

I am on Mac OS 10.10. From the About GRASS GIS window:

GRASS GIS 6.4.5svn, SVN Revision 61583M, GIS Library Revision 50937
(2012-02-25), Python: 2.7.6, wxPython: 2.8.12.1

I installed it using the Michael Barton snapshot , but I installed it using
the Kyng Chaos frameworks (I tried both GUIs and went with the Barton
version).

I see. So I add Michael in CC, perhaps he remembers the solution since
a similar issue was discussed last year:

http://lists.osgeo.org/pipermail/grass-dev/2014-April/068136.html
(and related messages).

Markus

I copy the answer of Ben here for the thread:

On Thu, Jan 8, 2015 at 4:46 PM, Benjamin Ducke <benducke@fastmail.fm> wrote:

The problem is that the linker does not find
"lintl". Search your file system to see
if and where you have a copy of "libintl.dylib".

If it exists somewhere, then you need to tell
the linker where it is. E.g. if you find it
in "/usr/local/lib", then add that path to
the linker search path:

DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/usr/local/lib"

... before invoking "g.extension".

Solving this linker issue will probably get you there
faster than trying to set up a complete environment
for compiling GRASS modules.

Cheers,

Ben

I just tested this on my computer and r.prominence installs from the g.extension GUI fine.

So my guess is the conflict between gettext installed via home-brew and gettext used to compile 6.4.5 (and packaged with it).

Michael


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
Tempe, AZ 85287-2402
USA

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

On Jan 8, 2015, at 11:21 AM, Thayer Young <thayeray@yahoo.com> wrote:

Michael,

Thank you for your suggestions. I just installed the most recent binary from your site, I had the previous version. I am still getting the same compilation error when I try to install certain raster extensions (r.prominence, r.whereistheriver).

I do have the most recent OSX command line tools for my version of OSX (10.10). And according to Homebrew I have the most recent version of gettext. Maybe Homebrew isn’t playing nice with XCode?

-Thayer


From: Michael Barton <Michael.Barton@asu.edu>
To: Markus Neteler <neteler@osgeo.org>
Cc: Thayer Young <thayeray@yahoo.com>; grass-user grass-user <grass-user@lists.osgeo.org>; William Kyngesburye <kyngchaos@kyngchaos.com>
Sent: Thursday, January 8, 2015 12:17 PM
Subject: Re: [GRASS-user] g.extension gives an error when installing r.prominence

William Kyngesburye might have a better idea about why compilation failed.

I do remember having compiling problems a year and a half ago for certain things. But that was on GRASS 7. You might try installing the OSX command line tools from the Apple Developer site.

The error seems to be related to internationalization (ld: library not found for -lintl). This is in gettext. I normally compile with gettext included. I posted a new binary 30 December and then revised it a couple times. When did you download this?

Michael


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 Jan 7, 2015, at 3:39 PM, Markus Neteler <neteler@osgeo.org> wrote:

On Tue, Jan 6, 2015 at 7:35 PM, Thayer Young <thayeray@yahoo.com> wrote:

When I try to install the r.prominence extension I get the following error:

g.extension.py -i extension=r.prominence
svnurl=http://svn.osgeo.org/grass/grass-addons/grass6
WARNING: GRASS_ADDON_PATH has more items, using first defined -
‘/Users/thayer/Library/GRASS/6.4/Modules/bin’

ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v
to see invocation)

ERROR: Compilation failed, sorry. Please check above error messages.

On Wed, Jan 7, 2015 at 10:37 PM, Thayer Young <thayeray@yahoo.com> wrote:

I am on Mac OS 10.10. From the About GRASS GIS window:

GRASS GIS 6.4.5svn, SVN Revision 61583M, GIS Library Revision 50937
(2012-02-25), Python: 2.7.6, wxPython: 2.8.12.1

I installed it using the Michael Barton snapshot , but I installed it using
the Kyng Chaos frameworks (I tried both GUIs and went with the Barton
version).

I see. So I add Michael in CC, perhaps he remembers the solution since
a similar issue was discussed last year:

http://lists.osgeo.org/pipermail/grass-dev/2014-April/068136.html
(and related messages).

Markus

Thanks for your help.

-Thayer


From: Michael Barton Michael.Barton@asu.edu
To: Thayer Young thayeray@yahoo.com
Cc: Markus Neteler neteler@osgeo.org; grass-user grass-user grass-user@lists.osgeo.org; Kyngesburye William kyngchaos@kyngchaos.com; Benjamin Ducke benjamin.ducke@ufg.uni-kiel.de
Sent: Thursday, January 8, 2015 4:54 PM
Subject: Re: [GRASS-user] g.extension gives an error when installing r.prominence

I just tested this on my computer and r.prominence installs from the g.extension GUI fine.

So my guess is the conflict between gettext installed via home-brew and gettext used to compile 6.4.5 (and packaged with it).

Michael


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
Tempe, AZ 85287-2402
USA

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

On Jan 8, 2015, at 11:21 AM, Thayer Young <thayeray@yahoo.com> wrote:

Michael,

Thank you for your suggestions. I just installed the most recent binary from your site, I had the previous version. I am still getting the same compilation error when I try to install certain raster extensions (r.prominence, r.whereistheriver).

I do have the most recent OSX command line tools for my version of OSX (10.10). And according to Homebrew I have the most recent version of gettext. Maybe Homebrew isn’t playing nice with XCode?

-Thayer


From: Michael Barton <Michael.Barton@asu.edu>
To: Markus Neteler <neteler@osgeo.org>
Cc: Thayer Young <thayeray@yahoo.com>; grass-user grass-user <grass-user@lists.osgeo.org>; William Kyngesburye <kyngchaos@kyngchaos.com>
Sent: Thursday, January 8, 2015 12:17 PM
Subject: Re: [GRASS-user] g.extension gives an error when installing r.prominence

William Kyngesburye might have a better idea about why compilation failed.

I do remember having compiling problems a year and a half ago for certain things. But that was on GRASS 7. You might try installing the OSX command line tools from the Apple Developer site.

The error seems to be related to internationalization (ld: library not found for -lintl). This is in gettext. I normally compile with gettext included. I posted a new binary 30 December and then revised it a couple times. When did you download this?

Michael


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 Jan 7, 2015, at 3:39 PM, Markus Neteler <neteler@osgeo.org> wrote:

On Tue, Jan 6, 2015 at 7:35 PM, Thayer Young <thayeray@yahoo.com> wrote:

When I try to install the r.prominence extension I get the following error:

g.extension.py -i extension=r.prominence
svnurl=http://svn.osgeo.org/grass/grass-addons/grass6
WARNING: GRASS_ADDON_PATH has more items, using first defined -
‘/Users/thayer/Library/GRASS/6.4/Modules/bin’

ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v
to see invocation)

ERROR: Compilation failed, sorry. Please check above error messages.

On Wed, Jan 7, 2015 at 10:37 PM, Thayer Young <thayeray@yahoo.com> wrote:

I am on Mac OS 10.10. From the About GRASS GIS window:

GRASS GIS 6.4.5svn, SVN Revision 61583M, GIS Library Revision 50937
(2012-02-25), Python: 2.7.6, wxPython: 2.8.12.1

I installed it using the Michael Barton snapshot , but I installed it using
the Kyng Chaos frameworks (I tried both GUIs and went with the Barton
version).

I see. So I add Michael in CC, perhaps he remembers the solution since
a similar issue was discussed last year:

http://lists.osgeo.org/pipermail/grass-dev/2014-April/068136.html
(and related messages).

Markus