Salve a tutti, ho già inviato un messaggio l’altro giorno ma non sono ancora riuscito a risolvere il problema, faccio un (breve) riepilogo:
su Qgis 2.2 non riesco a far funzionare gli scripts di R che trovo sul toolbox, non ne va neppure uno!
Credo che sia un problema di impostazioni che però non riesco a risolvere.
Se provo ad esguire un comando come “kernel h ref” tra quelli compresi tra gli scripts dell’ Home Range Analysis su uno shape file con dei punti ottengo questo messaggio:
“Oooops! The following output layers could not be open
Home_ranges: /tmp/processing/18cdd1c5517c40488cbd1675c3ca0c3a/Homeranges.shp
The above files could not be opened, which probably indicates that they were not correctly produced by the executed algorithm Checking the log information might help you see why those layers were not created as expected This algorithm requires R to be run. A test to check if R is correctly installed and configured in your system has been performed, with the following result:
R seems to be correctly installed and configured
The script you have executed needs the following packages:
adehabitatHR
Make sure they are installed in your R environment before trying to execute this script.”
il pacchetto “adehabitatHR” che mi chiede io ce l’ho installato nella versione 0.4.11.
In più nel messaggio di log tra le varie cose mi dice (e credo che sia la parte importante):
Error: gdal-config not found
The gdal-config script distributed with GDAL could not be found.
If you have not installed the GDAL libraries, you can
download the source from http://www.gdal.org/
If you have installed the GDAL libraries, then make sure that
gdal-config is in your path. Try typing gdal-config at a
shell prompt and see if it runs. If not, use:
–configure-args=‘–with-gdal-config=/usr/local/bin/gdal-config’
with appropriate values for your installation.
ERROR: configuration failed for package rgdal
- removing â/home/francesco/R/x86_64-pc-linux-gnu-library/3.0/rgdal
The downloaded source packages are in
â/tmp/RtmpoBP1gg/downloaded_packages
Warning message:
In install.packages(“rgdal”, dependencies = TRUE) :
installation of package rgdal had non-zero exit status
tryCatch(find.package(“raster”), error=function(e) install.packages(“raster”, dependencies=TRUE))
[1] “/home/francesco/R/x86_64-pc-linux-gnu-library/3.0/raster”
library(“raster”)
Carico il pacchetto richiesto: sp
library(“rgdal”)
Errore in library(“rgdal”) : there is no package called rgdal
Esecuzione interrotta
Io non capisco dove sia il problema? gdal non dovrebbe essere giù tutto installato in Qgis e il pachetto rgdal di R, credo che abbia cambiato nome ora è: “gdalUtils” forse è per quello che non lo riconosce??
Il sistema operativo che uso è UBUNTU 12.10
Qualcuno ha riscontrato un problema simile, o ha quache idea su come risolverlo?
Grazie a tutti
Francesco Carpita