[STATSGRASS] GSTAT 2.4.5 compile problem with GRASS 6

Edzer J. Pebesma e.pebesma at geog.uu.nl
Mon Jun 20 12:40:45 EDT 2005


S. Koukoulas wrote:
> Thomas et al,
> 
> Since my first email I thought that I have actually sorted the problem 
> by using the -grass6 option instead of -grass.
> The "make" finished without apparent errors, but now I get the following 
> message when I run
> gstat -v
> 
> sotiris at linux:~>gstat: error while loading shared libraries: 
> libgrass_sites.so: cannot open shared object file: No such file or 
> directory

Sotiris,

You need to run gstat with grass support within a grass session, so
first start grass, then run gstat on the grass prompt.
--
Edzer

> 
> It is still looking for grass5 libraries where it should not...  I don't 
> have grass5 installed in my system...
> 
> Any help would be appreciated
> Sotiris
> 
> P.S: gstat 2.4.4 did not work either. When I use the -grass options it 
> can't find the libs, it ignores --grass6 option
> 
> 
> Thomas Adams wrote:
> 
>> Sotiris,
>>
>> It looks like the build process does not know where the GRASS libs are 
>> located starting just a few lines down:
>>
>> warning: libgrass_dbmiclient.so, needed by 
>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so, not found
>> warning: libgrass_vect.so, needed by 
>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so, not found
>> .
>> .
>> .
>> etc.
>>
>> Tom
>>
>>
>> S. Koukoulas wrote:
>>
>>>
>>> I get an error when I am trying to compile GSTAT 2.4.5 with the grass 
>>> option. Any solutions?
>>> Many thanks in advance
>>> Sotiris
>>>
>>> gcc -o gstat block.o data.o direct.o fig.o fit.o getest.o gls.o 
>>> glvars.o gstat.o lex.o lm.o map2fig.o map2gd.o mapio.o maputils.o 
>>> msim.o nsear
>>> ch.o ossfim.o palet.o parse.o plot.o polygon.o pqueue.o predict.o 
>>> random.o read.o reml.o report.o sample.o select.o sem.o sem_main.o 
>>> sim.o sta
>>> t.o ui.o userio.o utils.o vario.o vario_fn.o vario_io.o writecmd.o 
>>> xvalid.o  -L../lib  -lmeschach -lnetcdf  -lncurses -lgd -lpng -lz 
>>> -lgdal -L
>>> /usr/local/grass-6.0.0beta2/lib -lgrass_gis -lgrass_datetime 
>>> -lgrass_sites -lz -lm
>>> /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: 
>>> warning: libgrass_dbmiclient.so, needed by /usr/local/grass-6.0.0be
>>> ta2/lib/libgrass_sites.so, not found (try using -rpath or -rpath-link)
>>> /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: 
>>> warning: libgrass_dbmibase.so, needed by /usr/local/grass-6.0.0beta
>>> 2/lib/libgrass_sites.so, not found (try using -rpath or -rpath-link)
>>> /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: 
>>> warning: libgrass_vect.so, needed by /usr/local/grass-6.0.0beta2/li
>>> b/libgrass_sites.so, not found (try using -rpath or -rpath-link)
>>> /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: 
>>> warning: libgrass_dig2.so, needed by /usr/local/grass-6.0.0beta2/li
>>> b/libgrass_sites.so, not found (try using -rpath or -rpath-link)
>>> /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: 
>>> warning: libgrass_dgl.so, needed by /usr/local/grass-6.0.0beta2/lib
>>> /libgrass_sites.so, not found (try using -rpath or -rpath-link)
>>> /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: 
>>> warning: libgrass_rtree.so, needed by /usr/local/grass-6.0.0beta2/l
>>> ib/libgrass_sites.so, not found (try using -rpath or -rpath-link)
>>> /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: 
>>> warning: libgrass_linkm.so, needed by /usr/local/grass-6.0.0beta2/l
>>> ib/libgrass_sites.so, not found (try using -rpath or -rpath-link)
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_reset_line'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_get_num_rows'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_set_open_level'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_get_field'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_is_3d'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_set_map_name'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_init_string'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_get_column_sqltype'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_open_old'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_open_select_cursor'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_new_cats_struct'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_get_name'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_start_driver_open_database'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_get_date'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_write_line'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_close'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_get_value_double'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_sqltype_to_Ctype'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_close_database_shutdown_driver'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_get_value_string'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_get_column_value'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_append_string'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_cat_get'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_read_next_line'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_get_column_name'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_get_value_int'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_append_point'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_set_date'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_set_comment'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_get_table_column'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_cat_set'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_fetch'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_get_table_number_of_columns'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_set_string'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `db_get_cursor_table'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_reset_cats'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_get_comment'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_new_line_struct'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_build'
>>> /usr/local/grass-6.0.0beta2/lib/libgrass_sites.so: undefined 
>>> reference to `Vect_open_new'
>>> collect2: ld returned 1 exit status
>>> make[1]: *** [gstat] Error 1
>>> make[1]: Leaving directory `/local/phome/Installs/gstat-2.4.5/src'
>>> make: *** [src/gstat] Error 2
>>>
>>> _______________________________________________
>>> statsgrass mailing list
>>> statsgrass at grass.itc.it
>>> http://grass.itc.it/mailman/listinfo/statsgrass
>>
>>
>>
>>
> 
> _______________________________________________
> statsgrass mailing list
> statsgrass at grass.itc.it
> http://grass.itc.it/mailman/listinfo/statsgrass




More information about the grass-stats mailing list