[GRASS-user] R-GDAL incompatible libraries

Greetings

I have just installed R, spgrass6, rgdal into my Ubuntun installation.
While I was running an example from GRASS book I got this error

precip30n ← readVECT6(“precip_30ynormals”, ignore.stderr=TRUE)

ERROR: Incompatible library version for module. You need to rebuild GRASS
or untangle multiple installations.

Where can I find an identification of the correct libraries versions.

Thank you

Kim

Kim Besson:

I have just installed R, spgrass6, rgdal into my Ubuntun installation.
While I was running an example from GRASS book I got this error
> precip30n <- readVECT6("precip_30ynormals", ignore.stderr=TRUE)

ERROR: Incompatible library version for module. You need to rebuild
GRASS
       or untangle multiple installations.

Where can I find an identification of the correct libraries versions.

Thank you
Kim

Hi Kim!

Did you install grass from source? Did you install R, spgrass6 from
source?

- If you have installed grass from source, then try to rebuild grass
(after having installed R and the rest).

- If you have grass from the ubuntu repositories, the you should
probably stick with R and the rest from the repositories as well. If the
latter is the case and it does not work, then there is a problem.

Tell us a bit more...

Nikos

Hi

I have installed R from Ubuntu repositories. My grass installation is a Weekly snapshot.
I had to install rgdal since it doesn’t exist in UBUNTU repositories neither CRAN and the same with spgrass6.

Ok I will rebuild grass and reply again to mailing list

Thanks
Kim

Did you install grass from source? Did you install R, spgrass6 from

source?

  • If you have installed grass from source, then try to rebuild grass
    (after having installed R and the rest).

  • If you have grass from the ubuntu repositories, the you should
    probably stick with R and the rest from the repositories as well. If the
    latter is the case and it does not work, then there is a problem.

Tell us a bit more…

Nikos

Ok I have just installed latest GRASS snapshot and I got the following error

precip30n ← readVECT6(“precip_30ynormals”, ignore.stderr=TRUE)
ERROR: Incompatible library version for module. You need to rebuild GRASS
or untangle multiple installations.

What I would like to know is the versions of R and spgrass6 that I should install on my system in order to not get this errors?

Thanks
Kim

2010/3/2 Kim Besson <kimbesson1981@gmail.com>

Hi

I have installed R from Ubuntu repositories. My grass installation is a Weekly snapshot.
I had to install rgdal since it doesn’t exist in UBUNTU repositories neither CRAN and the same with spgrass6.

Ok I will rebuild grass and reply again to mailing list

Thanks

Kim

Did you install grass from source? Did you install R, spgrass6 from

source?

  • If you have installed grass from source, then try to rebuild grass
    (after having installed R and the rest).

  • If you have grass from the ubuntu repositories, the you should
    probably stick with R and the rest from the repositories as well. If the
    latter is the case and it does not work, then there is a problem.

Tell us a bit more…

Nikos

On Tue, 2010-03-02 at 12:05 +0000, Kim Besson wrote:

Ok I have just installed latest GRASS snapshot

Latest snapshot of grass65 or grass70?

and I got the following error
> precip30n <- readVECT6("precip_30ynormals", ignore.stderr=TRUE)
ERROR: Incompatible library version for module. You need to rebuild
GRASS
       or untangle multiple installations.

What I would like to know is the versions of R and spgrass6 that I
should install on my system in order to not get this errors?

Check the last posts in this thread:

-http://lists.osgeo.org/pipermail/grass-stats/2009-January/000899.html
and afterwards,

and perhaps:
-http://n2.nabble.com/error-Incompatible-library-version-for-module-You-need-to-rebuild-GRASS-or-untangle-multiple-install-td3347115.html

Maybe there is (still?) a problem with grass70... ? Not sure (since I
haven't been messing around for a while).

Nikos

2010/3/2 Kim Besson <kimbesson1981@gmail.com>:

Ok I have just installed latest GRASS snapshot and I got the following error

precip30n <- readVECT6("precip_30ynormals", ignore.stderr=TRUE)

ERROR: Incompatible library version for module. You need to rebuild GRASS
or untangle multiple installations.
What I would like to know is the versions of R and spgrass6 that I should
install on my system in order to not get this errors?

You also need to update the GRASS-GDAL plugin.

Markus

Hi Kim
I am using R 9.2 (ubuntu repo),
grass6.5 (source), and grass6.4(ubuntugis) works too,
rgdal (source, not the lates thttp://cran.r-project.org/src/contrib/Archive/rgdal/rgdal_0.6-21.tar.gz ), and
spgrass6 (install.packages("spgras6") in R)
Hope it works

Leo Hardtke

Kim Besson escribió:

Ok I have just installed latest GRASS snapshot and I got the following error
> precip30n <- readVECT6("precip_30ynormals", ignore.stderr=TRUE)
ERROR: Incompatible library version for module. You need to rebuild GRASS
       or untangle multiple installations.

What I would like to know is the versions of R and spgrass6 that I should install on my system in order to not get this errors?

Thanks
Kim

2010/3/2 Kim Besson <kimbesson1981@gmail.com <mailto:kimbesson1981@gmail.com>>

    Hi

    I have installed R from Ubuntu repositories. My grass installation
    is a Weekly snapshot. I had to install rgdal since it doesn't exist in UBUNTU
    repositories neither CRAN and the same with spgrass6.

    Ok I will rebuild grass and reply again to mailing list

    Thanks
    Kim

    Did you install grass from source? Did you install R, spgrass6 from

        source?

        - If you have installed grass from source, then try to rebuild
        grass
        (after having installed R and the rest).

        - If you have grass from the ubuntu repositories, the you should
        probably stick with R and the rest from the repositories as
        well. If the
        latter is the case and it does not work, then there is a problem.

        Tell us a bit more...

        Nikos

------------------------------------------------------------------------

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
  

Ok I reinstalled rgdal
R CMD INSTALL rgdal

And then:
R
library(spgrass6)

Output:

Loading required package: sp
Loading required package: rgdal
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.5.4, released 2009/01/07
Path to GDAL shared files: /usr/share/gdal15
Loaded PROJ.4 runtime: Rel. 4.6.1, 21 August 2008
Path to PROJ.4 shared files: (autodetected)
Loading required package: XML
GRASS GIS interface loaded with GRASS version: 6.4.0svn
and location: North-Carolina

precip30 ← readVECT6(“precip_30ynormals”, ignore.stderr=TRUE)
ERROR: Incompatible library version for module. You need to rebuild GRASS
or untangle multiple installations.

Same error.I’m running GRASSsvn6.4.0, from latest week, in a Linux Machine with:
rgdal_0.6-10
spgrass6_0.6-15.
R version 2.9.2 (2009-08-24)

Any idea of what might not be compatible?

Thank you
Kim

2010/3/2 Markus Neteler <neteler@osgeo.org>

2010/3/2 Kim Besson <kimbesson1981@gmail.com>:

Ok I have just installed latest GRASS snapshot and I got the following error

precip30n ← readVECT6(“precip_30ynormals”, ignore.stderr=TRUE)
ERROR: Incompatible library version for module. You need to rebuild GRASS
or untangle multiple installations.
What I would like to know is the versions of R and spgrass6 that I should
install on my system in order to not get this errors?

You also need to update the GRASS-GDAL plugin.

Markus

Kim…
I think you have to update gdal (1.6.3-2 in ubuntugis-unstable repo)
and maybe use grass 6.4rc5 (ubuntugis)

leo

library(spgrass6)
Loading required package: sp
Loading required package: rgdal
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.6.3, released 2009/11/19
Path to GDAL shared files: /usr/share/gdal16
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009
Path to PROJ.4 shared files: (autodetected)
Loading required package: XML
GRASS GIS interface loaded with GRASS version: 6.5.svn
and location: hardtke

Kim Besson escribió:

Following Leo’s suggestion I installed GDAL 1.6.3 and I tried again:

library(spgrass6)
Loading required package: sp
Loading required package: rgdal
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.6.3, released 2009/11/19
Path to GDAL shared files: /usr/share/gdal16
Loaded PROJ.4 runtime: Rel. 4.6.1, 21 August 2008
Path to PROJ.4 shared files: (autodetected)
Loading required package: XML
GRASS GIS interface loaded with GRASS version: 6.4.0svn
and location: nc_spm_08

(seems OK?)

precip ← readVECT6(“precip_30ynormals”, ignore.stderr)
OGR data source with driver: GRASS
Source: “/mnt/GIS/nc_spm_08/PERMANENT/vector/precip_30ynormals/head”, layer: “1”
with 136 features and 18 fields
Feature type: wkbPoint with 3 dimensions
(seems OK?)

When I did

plot(nc_state, axes=TRUE)
plot(precip30n, add=TRUE, lwd=2, col=“brown”)
Error: object ‘precip30n’ not found
Error in plot(precip30n, add = TRUE, lwd = 2, col = “brown”) :
error in evaluating the argument ‘x’ in selecting a method for function ‘plot’
THe last plot gave that error

But would you say that it seems to be working?

Thank you all for your help and support
Thanks
Kim

Question: Is there any known problem with GRASS and GDAL1.6.3?

2010/3/2 Kim Besson <kimbesson1981@gmail.com>

Ok I reinstalled rgdal
R CMD INSTALL rgdal

And then:
R
library(spgrass6)

Output:

Loading required package: sp
Loading required package: rgdal
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.5.4, released 2009/01/07
Path to GDAL shared files: /usr/share/gdal15
Loaded PROJ.4 runtime: Rel. 4.6.1, 21 August 2008
Path to PROJ.4 shared files: (autodetected)
Loading required package: XML
GRASS GIS interface loaded with GRASS version: 6.4.0svn
and location: North-Carolina

precip30 ← readVECT6(“precip_30ynormals”, ignore.stderr=TRUE)

ERROR: Incompatible library version for module. You need to rebuild GRASS
or untangle multiple installations.

Same error.I’m running GRASSsvn6.4.0, from latest week, in a Linux Machine with:
rgdal_0.6-10
spgrass6_0.6-15.
R version 2.9.2 (2009-08-24)

Any idea of what might not be compatible?

Thank you
Kim

2010/3/2 Markus Neteler <neteler@osgeo.org>

2010/3/2 Kim Besson <kimbesson1981@gmail.com>:

Ok I have just installed latest GRASS snapshot and I got the following error

precip30n ← readVECT6(“precip_30ynormals”, ignore.stderr=TRUE)
ERROR: Incompatible library version for module. You need to rebuild GRASS
or untangle multiple installations.
What I would like to know is the versions of R and spgrass6 that I should
install on my system in order to not get this errors?

You also need to update the GRASS-GDAL plugin.

Markus

Kim Besson wrote:

Following Leo's suggestion I installed GDAL 1.6.3 and I tried again:

library(spgrass6)

Loading required package: sp
Loading required package: rgdal
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.6.3, released 2009/11/19
Path to GDAL shared files: /usr/share/gdal16
Loaded PROJ.4 runtime: Rel. 4.6.1, 21 August 2008
Path to PROJ.4 shared files: (autodetected)
Loading required package: XML
GRASS GIS interface loaded with GRASS version: 6.4.0svn
and location: nc_spm_08

(seems OK?)

precip <- readVECT6("precip_30ynormals", ignore.stderr)

OGR data source with driver: GRASS
Source: "/mnt/GIS/nc_spm_08/PERMANENT/vector/precip_30ynormals/head", layer:
"1"
with 136 features and 18 fields
Feature type: wkbPoint with 3 dimensions
(seems OK?)

When I did

plot(nc_state, axes=TRUE)
plot(precip30n, add=TRUE, lwd=2, col="brown")

Error: object 'precip30n' not found
Error in plot(precip30n, add = TRUE, lwd = 2, col = "brown") :
  error in evaluating the argument 'x' in selecting a method for function
'plot'
THe last plot gave that error

But would you say that it seems to be working?

Thank you all for your help and support
Thanks
Kim

Looks like a typo this time you put your value into precip and then
tried to call precip30n.

Alex

Kim
you have to plot the R object precip, not the grass vector precip30n
plot(precip,lwd=2, col=“brown”) should work!

Leo

Kim Besson escribió:

EEHEHEHEEH You are absolutely right :slight_smile:

On Tue, Mar 2, 2010 at 5:58 PM, Leo Hardtke <leohardtke@gmail.com> wrote:

Kim
you have to plot the R object precip, not the grass vector precip30n
plot(precip,lwd=2, col=“brown”) should work!

Leo

Kim Besson escribió:

Following Leo’s suggestion I installed GDAL 1.6.3 and I tried again:

library(spgrass6)
Loading required package: sp
Loading required package: rgdal
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.6.3, released 2009/11/19
Path to GDAL shared files: /usr/share/gdal16
Loaded PROJ.4 runtime: Rel. 4.6.1, 21 August 2008
Path to PROJ.4 shared files: (autodetected)
Loading required package: XML
GRASS GIS interface loaded with GRASS version: 6.4.0svn
and location: nc_spm_08

(seems OK?)

precip ← readVECT6(“precip_30ynormals”, ignore.stderr)
OGR data source with driver: GRASS
Source: “/mnt/GIS/nc_spm_08/PERMANENT/vector/precip_30ynormals/head”, layer: “1”
with 136 features and 18 fields
Feature type: wkbPoint with 3 dimensions
(seems OK?)

When I did

plot(nc_state, axes=TRUE)
plot(precip30n, add=TRUE, lwd=2, col=“brown”)
Error: object ‘precip30n’ not found
Error in plot(precip30n, add = TRUE, lwd = 2, col = “brown”) :
error in evaluating the argument ‘x’ in selecting a method for function ‘plot’
THe last plot gave that error

But would you say that it seems to be working?

Thank you all for your help and support
Thanks
Kim

Question: Is there any known problem with GRASS and GDAL1.6.3?

2010/3/2 Kim Besson <kimbesson1981@gmail.com>

Ok I reinstalled rgdal
R CMD INSTALL rgdal

And then:
R
library(spgrass6)

Output:

Loading required package: sp
Loading required package: rgdal
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.5.4, released 2009/01/07
Path to GDAL shared files: /usr/share/gdal15
Loaded PROJ.4 runtime: Rel. 4.6.1, 21 August 2008
Path to PROJ.4 shared files: (autodetected)
Loading required package: XML
GRASS GIS interface loaded with GRASS version: 6.4.0svn
and location: North-Carolina

precip30 ← readVECT6(“precip_30ynormals”, ignore.stderr=TRUE)

ERROR: Incompatible library version for module. You need to rebuild GRASS
or untangle multiple installations.

Same error.I’m running GRASSsvn6.4.0, from latest week, in a Linux Machine with:
rgdal_0.6-10
spgrass6_0.6-15.
R version 2.9.2 (2009-08-24)

Any idea of what might not be compatible?

Thank you
Kim

2010/3/2 Markus Neteler <neteler@osgeo.org>

2010/3/2 Kim Besson <kimbesson1981@gmail.com>:

Ok I have just installed latest GRASS snapshot and I got the following error

precip30n ← readVECT6(“precip_30ynormals”, ignore.stderr=TRUE)
ERROR: Incompatible library version for module. You need to rebuild GRASS
or untangle multiple installations.
What I would like to know is the versions of R and spgrass6 that I should
install on my system in order to not get this errors?

You also need to update the GRASS-GDAL plugin.

Markus


---

_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)
  


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

EHEHE this is true inglorious. Me and Gilbert were trying to compile and put this working and a simple typo was our final error.
Thanks. Now it’s working

See ya
Kim