[R-sig-Geo] installing spgrass6
Roger Bivand
Roger.Bivand at nhh.no
Mon Jun 13 21:29:20 CEST 2005
On Mon, 13 Jun 2005, Paolo Cavallini wrote:
> Great, that helped a lot. But now I get
>
> ./configure: line 1111: gdal-config: command not found
>
> I was unable to find the gdal-config script distributed with
> GDAL. If you have not installed the GDAL libraries, you can
> download the source from http://www.remotesensing.org/gdal/
> 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, find it and add its
> path to your shell path.
>
> I checked, and I cannot locate gdal-config anywhere in my box (gdal installed
> from debian package).
> I volunteer to improve the page at
> http://grass.itc.it/statsgrass/grass6_r_install.html
> when I'll succeed.
Mine is:
$ which gdal-config
/usr/local/bin/gdal-config
but I install from source.
$ locate gdal-config
found lots, mostly in the build trees.
$ file `which gdal-config`
/usr/local/bin/gdal-config: Bourne shell script text executable
and reading it shows that it is written at build time and says where all
the good GDAL things reside.
If you can't find it, I can build a spgrass6 without the rgdal dependency,
but rgdal is worth having anyway, especially if you have the GRASS plugin.
Best wishes,
Roger
> All the best.
> pc
>
> At 20:32, lunedì 13 giugno 2005, Roger Bivand has probably written:
> > On Mon, 13 Jun 2005, Tim Keitt wrote:
> > > You need to set the CRAN option to point to a mirror. The latest
> > > versions of R don't provide a default mirror anymore.
> >
> > Yes, if capabilities(c("tcltk", "X11")) are not TRUE, (like trying to
> > install on a server with no X11 display set), then there is no automatic
> > fallback from R trying to start tcltk to show a list of CRANs. The same
> > list is shown going to CRAN from http://www.r-project.org, so
> > install.packages(c("sp","rgdal"), dependencies=TRUE,
> > repos="http://cran.arsmachinandi.it/") or one of the other Italian
> > mirrors should get you there.
> >
> > The help page for options says:
> >
> > 'repos': The URLs of the repositories for use by
> > 'update.packages'. Defaults to 'c(CRAN="@CRAN@")', a value
> > that causes some utilities to prompt for a CRAN mirror. To
> > avoid this, use something like
> > 'options(repos=c(CRAN="http://my.local.cran/R"))'.
> >
> >
> > Roger
> >
> > > THK
> > >
> > > On Mon, 2005-06-13 at 19:51 +0200, Paolo Cavallini wrote:
> > > > Hi all.
> > > > Dunno whether this is the right place to ask, but I am trying to
> > > > install spgrass6 on an updated debian testing box, and I start with:
> > > >
> > > > install.packages(c("sp","rgdal"), dependencies=TRUE)
> > > >
> > > > but I get
> > > >
> > > > Avviso in install.packages(c("sp", "rgdal"), dependencies = TRUE) :
> > > > argument 'lib' is missing: using /usr/local/lib/R/site-library
> > > > --- Please select a CRAN mirror for use in this session ---
> > > > Xlib: connection to ":0.0" refused by server
> > > > Xlib: No protocol specified
> > > > Errore in inherits(x, "factor") : oggetto "res" non trovato
> > > >
> > > > Any hint would be greaatly appreciated.
> > > >
> > > > All the best.
> > > > pc
>
>
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no
More information about the R-sig-Geo
mailing list