<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-3" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 07/12/2009 19:42, Glynn Clements wrote:
<blockquote
 cite="mid:19229.19576.810034.900071@cerise.gclements.plus.com"
 type="cite">
  <pre wrap="">Luigi Ponti wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">This is likely naive and/or just out of ignorance, but I am not sure 
whether there is a chance to get GRASS 6.4 running on Cygwin should I be 
able to compile it from source on my Cygwin installation. Sorry in 
advance if this is nonsense.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
All I know is that the binaries which I compiled work fine on my
Windows XP system.
  </pre>
</blockquote>
<br>
Update: you are right -- it works on XP, but I am on Windows 7.<br>
While installing on Cygwin the packages required to compile GRASS, it
occurred to me I had read on Cygwin website that Windows 7 would have
been supported starting next major version 1.7 (see
<a class="moz-txt-link-freetext" href="http://cygwin.com/">http://cygwin.com/</a>). However, 1.7 is in beta testing and available to
install, which I did. Things work much better, and now GRASS 6.4.0RC5
starts up fine with tcltk gui.<br>
<br>
First problem I encountered next is with the dbf driver. The output of <i>db.connect
-p</i> seems ok:<br>
<br>
driver:dbf<br>
database:$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/<br>
schema:<br>
group:<br>
<br>
But when I do <i>db.test test1</i> errors arise:<br>
<br>
create table grass_test1 (i1 integer, d1 double precision, c1
varchar(20))<br>
EXECUTE: OK<br>
insert into grass_test1 values ( 1, 123.456, 'abcd' )<br>
EXECUTE: OK<br>
insert into grass_test1 values ( 2, null, 'xxx' )<br>
EXECUTE: OK<br>
select * from grass_test1<br>
EXECUTE: OK<br>
1c1<br>
&lt; 1|123.456|abcd<br>
---<br>
&gt; 1|123.456000|abcd<br>
ERROR: RESULT: ******** ERROR ********<br>
select c1 from grass_test1 where d1 &lt; 500 / 2 and i1 &lt;&gt; 2  and
c1 ~ 'bc'<br>
EXECUTE: OK<br>
RESULT: OK<br>
insert into grass_test1 values ( 3, 0.0, '_''_' )<br>
      3 [main] db.execute 2616 fork: child -1 - died waiting for
longjmp before initialization, retry 0, exit code 0xC0000005, errno 11<br>
Resource temporarily unavailable: can't create fork<br>
ERROR: Unable to start driver &lt;dbf&gt;<br>
ERROR: EXECUTE: ******** ERROR ********<br>
alter table grass_test1 add column i2 integer<br>
dbmi: Protocol error<br>
ERROR: Unable to start driver &lt;dbf&gt;<br>
ERROR: EXECUTE: ******** ERROR ********<br>
update grass_test1 set d1 = 18.6, i2 = 987  where i1 = 2<br>
DBMI-DBF driver error:<br>
Column 'i2' not found<br>
Error in db_execute_immediate()<br>
<br>
ERROR: Error while executing: 'update grass_test1 set d1 = 18.6, i2 =
987<br>
       where i1 = 2<br>
       '<br>
ERROR: EXECUTE: ******** ERROR ********<br>
select * from grass_test1<br>
      3 [main] db.select 4772 fork: child -1 - died waiting for longjmp
before initialization, retry 0, exit code 0xC0000005, errno 11<br>
Resource temporarily unavailable: can't create fork<br>
ERROR: Unable to start driver &lt;dbf&gt;<br>
ERROR: EXECUTE: ******** ERROR ********<br>
0a1,3<br>
&gt; 1|123.456000|abcd|<br>
&gt; 2|18.600000|xxx|987<br>
&gt; 3|0.000000|_'_|<br>
ERROR: RESULT: ******** ERROR ********<br>
drop table grass_test1<br>
EXECUTE: OK<br>
<br>
Any idea what happens and/or testing hints for better diagnosis?<br>
Kind regards,<br>
Luigi<br>
<br>
<blockquote
 cite="mid:19229.19576.810034.900071@cerise.gclements.plus.com"
 type="cite">
  <pre wrap="">
If you compile from source, even if you have problems with the
resulting binaries, it will be easier to debug such problems with
debug info.

The Cygwin binaries on the GRASS website have been stripped, as
unstripped binaries are over twice as large, which is inconvenient
both for me and for anyone downloading them.

FWIW, I configured with:

./configure
 --with-includes=/usr/local/include
 --with-libs=/usr/local/lib
 --with-proj-share=/usr/share/proj
 --with-cxx
 --with-freetype
 --with-opengl
 --with-readline
 --with-nls
 --without-odbc
 --with-cairo
 --with-sqlite
 --with-blas
 --with-lapack
 --with-postgres
 --with-cairo-includes=/usr/include/cairo
 '--with-cairo-ldflags=-lcairo -lX11'
 --with-freetype-includes=/usr/include/freetype2
 --with-python
 --with-motif
 --with-glw

[I need /usr/local/{include,lib} for GDAL and Tcl/Tk.]

For a basic GRASS installation, most of the above --with-* switches
aren't needed. As I was building a package for distribution, I
included every option which I could get to work.

  </pre>
</blockquote>
<br>
</body>
</html>