[R-br] [Dúvida] Problema na instalação: rgdal

Fernando Mayer fernandomayer em gmail.com
Terça Fevereiro 14 17:24:00 BRST 2012


Ainda falta o libproj-dev

fernando em spock:~$ apt-file search proj_api.h
libproj-dev: /usr/include/proj_api.h

[]s,

---
Fernando Mayer
Universidade Federal de Santa Catarina - UFSC
Departamento de Ecologia e Zoologia - ECZ/CCB
URL: http://sites.google.com/site/fernandomayer
e-mail: fernandomayer [@] gmail.com



2012/2/14 Pedro Rafael <pedro.rafael.marinho em gmail.com>:
> Atualizei o sistema e instalei todas os pacotes que refere-se a gdal mesmo
> sabendo que alguns não teria muito haver com o problema. Os pacotes foram:
>
> root em tulio-dplan:/home/tulio/Área de trabalho/gdal-1.9.0# apt-cache search
> gdal
> dans-gdal-scripts - Ferramentas contribuídas de GDAL da Rede de Informação
> Geográfica do Alaska
> gdal-bin - Biblioteca de abstracção de dados geoespaciais - programas
> utilitários
> libgdal-doc - Documentação para a biblioteca Geospatial Data Abstraction
> Library
> libgdal-perl - Perl bindings to the Geospatial Data Abstraction Library
> libgdal-ruby - vínculos Ruby para a biblioteca de abstração de dados
> geoespaciais
> libgdal-ruby1.8 - Ruby 1.8 bindings to the Geospatial Data Abstraction
> Library
> libgdal1-1.7.0-grass - Extensão GRASS para a biblioteca GDAL
> libgdal1-dev - Geospatial Data Abstraction Library - Development files
> python-gdal - Python bindings to the Geospatial Data Abstraction Library
> qlandkartegt - Mapeamento GPS (GeoTiff e vectorial) e gestão de GPSr
> libgdal1-1.7.0 - Geospatial Data Abstraction Library
>
>
> Após atualizar o sistema e instalar essas bibliotecas o R reclama de umas
> bibliotecas de C++ que são:
>
> checking proj_api.h usability... no
> checking proj_api.h presence... no
> checking for proj_api.h... no
> Error: proj_api.h not found.
>
> Ver o erro abaixo:
>
>> install.packages("rgdal")
> Installing package(s) into ‘/usr/local/lib/R/site-library’
> (as ‘lib’ is unspecified)
> tentando a URL
> 'http://www.vps.fmvz.usp.br/CRAN/src/contrib/rgdal_0.7-8.tar.gz'
> Content type 'application/x-gzip' length 1427851 bytes (1.4 Mb)
> URL aberta
> ==================================================
> downloaded 1.4 Mb
>
> * installing *source* package ‘rgdal’ ...
> ** package ‘rgdal’ successfully unpacked and MD5 sums checked
> gdal-config: gdal-config
> checking for gcc... gcc -std=gnu99
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc -std=gnu99 accepts -g... yes
> checking for gcc -std=gnu99 option to accept ISO C89... none needed
> checking how to run the C preprocessor... gcc -std=gnu99 -E
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking proj_api.h usability... no
> checking proj_api.h presence... no
> checking for proj_api.h... no
> Error: proj_api.h not found.
> If the PROJ.4 library is installed in a non-standard location,
> use --configure-args='--with-proj-include=/opt/local/include'
> for example, replacing /opt/local/* with appropriate values
> for your installation. If PROJ.4 is not installed, install it.
> ERROR: configuration failed for package ‘rgdal’
> * removing ‘/usr/local/lib/R/site-library/rgdal’
>
> The downloaded packages are in
> ‘/tmp/Rtmpae07aZ/downloaded_packages’
> Mensagens de aviso perdidas:
> In install.packages("rgdal") :
>   installation of package ‘rgdal’ had non-zero exit status
>
>
> Em 14 de fevereiro de 2012 16:10, Leonard de Assis [via R-br]
> <ml-node+s2285057n4388170h47 em n4.nabble.com> escreveu:
>>
>> deve existir uma libgdal...-dev, essas libs fazem a diferença na hora de
>> achar referencias quebradas
>>
>> []s
>> Leonard de Assis
>> assis <dot> leonard <at> gmail <dot> com
>>
>>
>> Em 14/02/2012 16:56, Pedro Rafael escreveu:
>>
>> Mas desde o primeiro programa o gdal tá instalado. Estou no Ubuntu 11.10.
>>
>> root em tulio-dplan:/home/tulio/Área de trabalho/gdal-1.9.0# apt-get install
>> gdal-bin
>> Lendo listas de pacotes... Pronto
>> Construindo árvore de dependências
>> Lendo informação de estado... Pronto
>> gdal-bin já é a versão mais nova.
>> 0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e
>> 17 não atualizados.
>>
>>
>>
>>
>> Em 14 de fevereiro de 2012 15:48, Daniel C Bezerra [via R-br] <[hidden
>> email]> escreveu:
>>
>>> Se vc estiver usando Ubuntu gdal está disponível nos repositórios. O
>>> problema é que só vai funcionar se vc estiver rodando a última versão do
>>> Ubuntu (11.10). Para versões anteriores vc tem que baixar do site mesmo.
>>>
>>> Abs,
>>>
>>> D
>>>
>>> 2012/2/14 Benilton Carvalho <[hidden email]>
>>>
>>>> o arquivo nao eh instalado pelo pacote...
>>>>
>>>> vc tem q ir no site www.gdal.org (o mostrado na mensagem de erro) e
>>>> instalar a biblioteca do sistema (isso eh independente do R) que vai
>>>> estar disponivel la...
>>>>
>>>> depois de vc instalar a biblioteca GDAL, vc volta ao R e tenta
>>>> instalar o pacote rgdal.
>>>>
>>>> b
>>>>
>>>> 2012/2/14 Pedro Rafael <[hidden email]>:
>>>> > Eu abri o condigo fonte do pacote e o arquivo que ele reclama não está
>>>> > dentro do pacote....Vou tentar ver como resolver o problema por aqui.
>>>> >
>>>> > Em 14 de fevereiro de 2012 15:26, beniltoncarvalho [via R-br]
>>>> > <[hidden email]> escreveu:
>>>> >>
>>>> >> a msg de erro descreve nao ter encontrado o GDAL instalado (que ele
>>>> >> checa via gdal-config)... dai' sugere:
>>>> >>
>>>> >> 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.
>>>> >>
>>>> >>
>>>> >> b
>>>> >>
>>>> >> 2012/2/14 Pedro Rafael <[hidden email]>:
>>>> >>
>>>> >> > Pessoal alguém sabe me informar como corrigir este problema na
>>>> >> > instalação do pacote rgdal?
>>>> >> >
>>>> >> >> install.packages("rgdal")
>>>> >> > Installing package(s) into ‘/usr/local/lib/R/site-library’
>>>> >> > (as ‘lib’ is unspecified)
>>>> >> > tentando a URL
>>>> >> > 'http://www.vps.fmvz.usp.br/CRAN/src/contrib/rgdal_0.7-8.tar.gz'
>>>> >> > Content type 'application/x-gzip' length 1427851 bytes (1.4 Mb)
>>>> >> > URL aberta
>>>> >> > ==================================================
>>>> >> > downloaded 1.4 Mb
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >> > * installing *source* package ‘rgdal’ ...
>>>> >> > ** package ‘rgdal’ successfully unpacked and MD5 sums checked
>>>> >> > gdal-config: gdal-config
>>>> >> > ./configure: line 2013: gdal-config: command not found
>>>> >> > 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 ‘/usr/local/lib/R/site-library/rgdal’
>>>> >> >
>>>> >> >
>>>> >> > The downloaded packages are in
>>>> >> >        ‘/tmp/RtmpcOSraQ/downloaded_packages’
>>>> >> > Mensagens de aviso perdidas:
>>>> >> > In install.packages("rgdal") :
>>>> >> >   installation of package ‘rgdal’ had non-zero exit status
>>>> >> >
>>>> >> > --
>>>> >> > Saudações,
>>>> >> > Pedro Rafael Diniz Marinho.
>>>> >> > Estatístico - Secretaria de Estado da Saúde - PB.
>>>> >> > _______________________________________________
>>>> >> > R-br mailing list
>>>> >> > [hidden email]
>>>> >> > https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>>>> >> > Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e
>>>> >> > forneça
>>>> >> > código mínimo reproduzível.
>>>> >> _______________________________________________
>>>> >> R-br mailing list
>>>> >> [hidden email]
>>>> >> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>>>> >> Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça
>>>> >> código mínimo reproduzível.
>>>> >>
>>>> >>
>>>> >> ________________________________
>>>> >> If you reply to this email, your message will be added to the
>>>> >> discussion
>>>> >> below:
>>>> >>
>>>> >>
>>>> >> http://r-br.2285057.n4.nabble.com/R-br-Duvida-Problema-na-instalacao-rgdal-tp4387969p4387990.html
>>>> >> To unsubscribe from R-br, click here.
>>>> >> NAML
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > --
>>>> > Saudações,
>>>> > Pedro Rafael Diniz Marinho.
>>>> > Estatístico - Secretaria de Estado da Saúde - PB.
>>>> >
>>>> >
>>>> >
>>>> > _______________________________________________
>>>> > R-br mailing list
>>>> > [hidden email]
>>>> > https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>>>> > Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça
>>>> > código
>>>> > mínimo reproduzível.
>>>> _______________________________________________
>>>> R-br mailing list
>>>> [hidden email]
>>>> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>>>> Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça
>>>> código mínimo reproduzível.
>>>
>>>
>>>
>>> _______________________________________________
>>> R-br mailing list
>>> [hidden email]
>>> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>>> Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça
>>> código mínimo reproduzível.
>>>
>>> ________________________________
>>> If you reply to this email, your message will be added to the discussion
>>> below:
>>>
>>> http://r-br.2285057.n4.nabble.com/R-br-Duvida-Problema-na-instalacao-rgdal-tp4387969p4388079.html
>>> To unsubscribe from R-br, click here.
>>> NAML
>>
>>
>>
>>
>> --
>> Saudações,
>> Pedro Rafael Diniz Marinho.
>> Estatístico - Secretaria de Estado da Saúde - PB.
>>
>>
>>
>>
>> _______________________________________________
>> R-br mailing list
>> [hidden email]
>> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>> Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça
>> código mínimo reproduzível.
>>
>>
>> _______________________________________________
>> R-br mailing list
>> [hidden email]
>> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
>> Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça
>> código mínimo reproduzível.
>>
>> ________________________________
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://r-br.2285057.n4.nabble.com/R-br-Duvida-Problema-na-instalacao-rgdal-tp4387969p4388170.html
>> To unsubscribe from R-br, click here.
>> NAML
>
>
>
>
> --
> Saudações,
> Pedro Rafael Diniz Marinho.
> Estatístico - Secretaria de Estado da Saúde - PB.
>
>
>
> _______________________________________________
> R-br mailing list
> R-br em listas.c3sl.ufpr.br
> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
> Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código
> mínimo reproduzível.


Mais detalhes sobre a lista de discussão R-br