Не устанавливается RGdal

Вопросы по статистическому пакету R. Не обязательно гео.
Ответить
SBoris
Участник
Сообщения: 82
Зарегистрирован: 24 мар 2011, 19:15
Репутация: 1

Не устанавливается RGdal

Сообщение SBoris » 16 сен 2012, 12:05

Здравствуйте.
Возникла проблема, после установки GRASS и R пробую установить RGdal и через меню и как описано в http://gis-lab.info/qa/rgdal.html с коммандной строки - результат одинаковый:

Код: Выделить всё

R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows"
Copyright (C) 2012 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

[Workspace loaded from ~/.RData]

> install.packages("rgdal")
Installing package(s) into ‘/home/boris/R/x86_64-pc-linux-gnu-library/2.15’
(as ‘lib’ is unspecified)
trying URL 'http://ftp5.gwdg.de/pub/misc/cran/src/contrib/rgdal_0.7-18.tar.gz'
Content type 'application/x-gzip' length 1433864 bytes (1.4 Mb)
opened URL
==================================================
downloaded 1.4 Mb

* installing *source* package ‘rgdal’ ...
** package ‘rgdal’ successfully unpacked and MD5 sums checked
configure: gdal-config: gdal-config
checking gdal-config usability... 
./configure: line 2058: gdal-config: command not found
no
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/boris/R/x86_64-pc-linux-gnu-library/2.15/rgdal’
Warning in install.packages :
  installation of package ‘rgdal’ had non-zero exit status

The downloaded source packages are in
        ‘/tmp/RtmpF2b0EU/downloaded_packages’
и для коммандной строки:

Код: Выделить всё

utils:::menuInstallPkgs()
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : 
  object 'menuInstallPkgs' not found
В чём может быть проблема?
В линуксе недавно. Debian wheezy. Gnome.

Аватара пользователя
rhot
Гуру
Сообщения: 1727
Зарегистрирован: 25 янв 2011, 17:50
Репутация: 194
Ваше звание: доктор
Откуда: Архангельск

Re: Не устанавливается RGdal

Сообщение rhot » 16 сен 2012, 12:16

Вот же ответ:

Код: Выделить всё

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.
___________(¯`·.¸(¯`·.¸ Scientia potentia est _/ {SILVA}:::{FOSS}:::{GIS} \_ Знание сила ¸.·´¯)¸.·´¯)___________

Александр Мурый
Гуру
Сообщения: 5173
Зарегистрирован: 26 сен 2009, 16:26
Репутация: 793
Ваше звание: званий не имею
Откуда: Москва

Re: Не устанавливается RGdal

Сообщение Александр Мурый » 16 сен 2012, 12:22

SBoris писал(а):В чём может быть проблема?
В том, что вы невнимательно читаете сообщения об ошибках :)

Установите пакеты gdal-bin и libgdal-dev.
Редактор материалов, модератор форума

SBoris
Участник
Сообщения: 82
Зарегистрирован: 24 мар 2011, 19:15
Репутация: 1

Re: Не устанавливается RGdal

Сообщение SBoris » 16 сен 2012, 13:12

Спасибо за ответ! :) rhot & amury
rhot писал(а):Вот же ответ:

Код: Выделить всё

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.
Ну, это я читал. Дело в том, что Synaptic показывал что у меня gdal-bin 1.9.0-3+b1 имеется.- "GDAL is a translator library for raster geospatial data formats". Или это не то же самое?
Вот с коммандной
wiki.americaview.org/display/miview/Introduction+to+GDAL

Код: Выделить всё

sudo apt-get install gdal-bin
sudo apt-get install python-gdal
Попробовал...
Try typing gdal-config at a
shell prompt and see if it runs...

Код: Выделить всё

boris@Castle:~/FWTools-2.0.6$ gdal-config
Usage: gdal-config [OPTIONS]
Options:
	[--prefix[=DIR]]
	[--libs]
	[--dep-libs]
	[--cflags]
	[--datadir]
	[--version]
	[--ogr-enabled]
	[--formats]
То есть он стоит. А как заставить его работать? :?:
После доустановки библиотеки lib... появилось:

Код: Выделить всё

configure: error: proj_api.h not found in standard or given locations.
ERROR: configuration failed for package ‘rgdal’
:?:

После открытия темы, я пошерстил нэт и нашел, что можна установить FWTools on Linux fwtools.maptools.org/linux-main.html
Теоретически GDAL должен был встать, после такой установки. Но, увы, тоже самое.

SBoris
Участник
Сообщения: 82
Зарегистрирован: 24 мар 2011, 19:15
Репутация: 1

Re: Не устанавливается RGdal

Сообщение SBoris » 16 сен 2012, 13:27

Код: Выделить всё

configure: error: proj_api.h not found in standard or given locations.
ERROR: configuration failed for package ‘rgdal’
Нашел, что надо доставить libproj-dev. Ставлю.

Спасибо! Есть контакт.

Код: Выделить всё

* DONE (rgdal)
:)

Ответить

Вернуться в «R»

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и 9 гостей