[GRASS-user] Re: grassuser Digest, Vol 2, Issue 62

Thanks for the hint. Alas I cannot use this hack though as I do not
have an include/grass directory.

The only directories I have in
/usr/local/src/grass61/grass-6.1.cvs_src_snapshot_2006_06_24/include
are

CVS/ Make/ vect/

What then might be the problem beats the spam out of me!

Cheers
Dave

I had this problem last week end. I create a link from all file
in /usr/local/src/grass61/grass-6.1.cvs_src_snapshot_2006_06_24/include/grass
to /usr/local/src/grass61/grass-6.1.cvs_src_snapshot_2006_06_24/include/
except for those that already exist. And now it works :slight_smile:

Because it is not the right directory. I have to give you the one created
during installation of grass. You gave me the one in the source, ie the one
used to install grass ! And I use it :wink:
After doing ./configure, make and make install, you wil have this directory
(by default) :
/usr/local/grass-6.1.cvs/include/grass/
and you have to link file to
/usr/local/grass-6.1.cvs/include/

Sorry forthe mistake,

Y.

Le Vendredi 30 Juin 2006 18:20, David a écrit :

Thanks for the hint. Alas I cannot use this hack though as I do not
have an include/grass directory.

The only directories I have in
/usr/local/src/grass61/grass-6.1.cvs_src_snapshot_2006_06_24/include
are

CVS/ Make/ vect/

What then might be the problem beats the spam out of me!

Cheers
Dave

> I had this problem last week end. I create a link from all file
> in
> /usr/local/src/grass61/grass-6.1.cvs_src_snapshot_2006_06_24/include/gras
>s to /usr/local/src/grass61/grass-6.1.cvs_src_snapshot_2006_06_24/include/
> except for those that already exist. And now it works :slight_smile:

_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser

--
"J'aimerais être une cigarette pour naître au creux de tes mains, vivre sur
tes lèvres et mourir à tes pieds."
---
Yves Jacolin
Appt. 55, 3e ét.
Val de Loire Nord
18 boulevard Aristide Briand
45 000 Orléans

Port. : 06 64 28 27 92
Tél. : 02 38 52 96 35
Freebox : 0872 14 2008
http://yjacolin.gloobe.org
http://questioniup.gloobe.org
http://www.gloobe.org

--
Yves Jacolin
-------------
http://yjacolin.gloobe.org
http://softlibre.gloobe.org

Thanks Jacolin, I never knew this directory was created so things are
advancing 8^)

I tried what you said. I filled /usr/local/grass-6.1.cvs/include/ with
links to all the files in /usr/local/grass-6.1.cvs/include/grass/

...but the problem persists.

Then I editing ld.so.conf to point to the /usr/local/grass-6.1.cvs and
not the source directory, ran ldconif and then

./configure --with-gdal=/usr/local/bin/gdal-config
--with-grass=/usr/local/grass-6.1.cvs/include

but again the same errors in the terminal and the config.log file.

checking for G_asprintf in -lgrass_gis... no
configure: error: --with-grass=/usr/local/grass-6.1.cvs requested, but libraries not found!

configure:1999: $? = 0
configure:2002: test -s conftest.o
configure:2005: $? = 0
configure:2023: result: none needed
configure:2041: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: syntax error before 'me'
configure:2047: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif

configure:2493: g++ -c -g -O2 conftest.cc >&5
conftest.cc: In function 'int main()':
conftest.cc:13: error: 'exit' was not declared in this scope
configure:2499: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
| exit (42);
| ;
| return 0;
| }

By the way I am using Debian Etch AMD64. Could that have anything to
do with the the difficulty I'm having getting the plugin to work?

cheers
Dave

On Fri, Jun 30, 2006 at 05:42:50PM +0200, Jacolin Yves wrote:

Because it is not the right directory. I have to give you the one created
during installation of grass. You gave me the one in the source, ie the one
used to install grass ! And I use it :wink:
After doing ./configure, make and make install, you wil have this directory
(by default) :
/usr/local/grass-6.1.cvs/include/grass/
and you have to link file to
/usr/local/grass-6.1.cvs/include/

Sorry forthe mistake,

David wrote:

...but the problem persists.

Then I editing ld.so.conf to point to the /usr/local/grass-6.1.cvs and
not the source directory, ran ldconif and then

/etc/ld.so.conf needs to be pointed to the LIBS dir.

for a hint, in grass try:
echo $GRASS_LD_LIBRARY_PATH
  or
echo $GISBASE/libs

then run ldconfig again.

./configure --with-gdal=/usr/local/bin/gdal-config
--with-grass=/usr/local/grass-6.1.cvs/include

    ^^^^^^^^^^^^^^ this should be "ARG=GRASS install tree dir"

for a hint, in grass try:
echo $GISBASE

Hamish