[GRASS-user] make libs stops near make -C ogr

Markus Neteler neteler at osgeo.org
Sun Oct 4 12:38:15 EDT 2009


On Sun, Oct 4, 2009 at 5:33 PM, Jeff Hamann
<jeff.hamann at forestinformatics.com> wrote:
> I'm trying to quickly come up to speed on Makefile protocols, so I might be
> a little green on this, but when I try to install the gass-addons, beginning
> with the make libs command:
> http://grass.osgeo.org/wiki/Compile_and_Install#Addons
> make -C postgres || echo
> /Users/hamannj/Documents/rufus/grass64_release/db/drivers/postgres >>
> /Users/hamannj/Documents/rufus/grass64_release/error.log
> make -C ogr || echo
> /Users/hamannj/Documents/rufus/grass64_release/db/drivers/ogr >>
> /Users/hamannj/Documents/rufus/grass64_release/error.log
> cp -f AUTHORS COPYING CHANGES REQUIREMENTS.html GPL.TXT
> /Users/hamannj/Documents/rufus/grass64_release/dist./

... I see that ARCH isn't set: "dist./" should be "dist.SOMEARCHSTUFF/".
What does
 uname -a
say?

> cp -fr --parents include
> /Users/hamannj/Documents/rufus/grass64_release/dist./
> cp: illegal option -- -
> usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
>        cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ...
> target_directory

Apparently your "cp" command does not like --parents (while -p seems
to be there which should be the same).

Please change in the main Makefile all occurencies of --parents to -p
and tell us if this helps.

> make: [libs] Error 64 (ignored)
> Jeff-Hamanns-MacBook-Pro:grass64_release hamannj$
> I don't know how this influences the ability to make and install addons
> (that seems to work fine), but not sure if this is something that needs to
> be reported.

Yes, well done. We have to understand what really happens
(I am not sure if --parents is GNU only or so, looks like that:
  http://lists.apple.com/archives/Unix-porting/2007/Jul/msg00002.html
).

> $ cd grass-addons/raster/r.clim
> $ make MODULE_TOPDIR=/usr/local/grass-6.4.0svn
> $ sudo make MODULE_TOPDIR=/usr/local/grass-6.4.0svn install

The "install" target sometimes doesn't work properly. This needs
to be checked by a person knowing more about Makefile than
me (so, most folks here :)

> $ grass64
> GRASS 6.4.0svn (rufus):~ > r.clim -h
> GRASS 6.4.0svn (rufus):~ > exit
> seemed to work fine.

ok, good.

Markus


More information about the grass-user mailing list