[GRASS-user] Re: CYGWIN
Luigi Ponti
lponti at infinito.it
Thu Dec 10 13:36:48 EST 2009
On 07/12/2009 19:42, Glynn Clements wrote:
> Luigi Ponti wrote:
>
>
>> 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.
>>
>
> All I know is that the binaries which I compiled work fine on my
> Windows XP system.
>
Update: you are right -- it works on XP, but I am on Windows 7.
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 http://cygwin.com/).
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.
First problem I encountered next is with the dbf driver. The output of
/db.connect -p/ seems ok:
driver:dbf
database:$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/
schema:
group:
But when I do /db.test test1/ errors arise:
create table grass_test1 (i1 integer, d1 double precision, c1 varchar(20))
EXECUTE: OK
insert into grass_test1 values ( 1, 123.456, 'abcd' )
EXECUTE: OK
insert into grass_test1 values ( 2, null, 'xxx' )
EXECUTE: OK
select * from grass_test1
EXECUTE: OK
1c1
< 1|123.456|abcd
---
> 1|123.456000|abcd
ERROR: RESULT: ******** ERROR ********
select c1 from grass_test1 where d1 < 500 / 2 and i1 <> 2 and c1 ~ 'bc'
EXECUTE: OK
RESULT: OK
insert into grass_test1 values ( 3, 0.0, '_''_' )
3 [main] db.execute 2616 fork: child -1 - died waiting for longjmp
before initialization, retry 0, exit code 0xC0000005, errno 11
Resource temporarily unavailable: can't create fork
ERROR: Unable to start driver <dbf>
ERROR: EXECUTE: ******** ERROR ********
alter table grass_test1 add column i2 integer
dbmi: Protocol error
ERROR: Unable to start driver <dbf>
ERROR: EXECUTE: ******** ERROR ********
update grass_test1 set d1 = 18.6, i2 = 987 where i1 = 2
DBMI-DBF driver error:
Column 'i2' not found
Error in db_execute_immediate()
ERROR: Error while executing: 'update grass_test1 set d1 = 18.6, i2 = 987
where i1 = 2
'
ERROR: EXECUTE: ******** ERROR ********
select * from grass_test1
3 [main] db.select 4772 fork: child -1 - died waiting for longjmp
before initialization, retry 0, exit code 0xC0000005, errno 11
Resource temporarily unavailable: can't create fork
ERROR: Unable to start driver <dbf>
ERROR: EXECUTE: ******** ERROR ********
0a1,3
> 1|123.456000|abcd|
> 2|18.600000|xxx|987
> 3|0.000000|_'_|
ERROR: RESULT: ******** ERROR ********
drop table grass_test1
EXECUTE: OK
Any idea what happens and/or testing hints for better diagnosis?
Kind regards,
Luigi
> 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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20091210/fb880e1c/attachment.html
More information about the grass-user
mailing list