[R-br] falha na instalação pacote maps no ubuntu

Paulo J Ribeiro Jr paulojus em leg.ufpr.br
Terça Fevereiro 14 16:18:22 BRST 2012


Adriano

eu consegui aqui no meu Ubuntu 10.04
mas realmente nao sei o que houve ai 
pela msg de erro

talvez reinstalar/verificar opcoes e pacotes relacionados ao
compuilador?

de uma olhada na pagina do pacote para ver se há dependencias externas


> install.packages("maps", dep=T)
--- Please select a CRAN mirror for use in this session ---
Carregando a interface Tcl/Tk ... pronto
tentando a URL
'http://cran-r.c3sl.ufpr.br/src/contrib/maps_2.2-5.tar.gz'
Content type 'application/x-gzip' length 1428846 bytes (1.4 Mb)
URL aberta
==================================================
downloaded 1.4 Mb

* installing *source* package ‘maps’ ...
** package ‘maps’ successfully unpacked and MD5 sums checked
** libs
** arch - 
gcc -std=gnu99 -g -O2 -I/usr/local/include -L/usr/local/lib  Gmake.c
-o Gmake
gcc -std=gnu99 -g -O2 -I/usr/local/include -L/usr/local/lib  Lmake.c
-o Lmake
Converting world to world2
gawk -f convert.awk < world.line > world2.line
make county.L state.L usa.L nz.L world.L world2.L italy.L france.L
state.vbm.L state.carto.L
make[1]: Entrando no diretório
`/tmp/Rtmpo3pSb1/R.INSTALL12d468bce883/maps/src'
./Lmake 0 s b county.line county.linestats ../inst/mapdata/county.L
./Lmake 0 s b state.line state.linestats ../inst/mapdata/state.L
./Lmake 0 s b usa.line usa.linestats ../inst/mapdata/usa.L
./Lmake 0 s b nz.line nz.linestats ../inst/mapdata/nz.L
./Lmake 0 s b world.line world.linestats ../inst/mapdata/world.L
./Lmake 0 s b world2.line world2.linestats ../inst/mapdata/world2.L
./Lmake 0 s b italy.line italy.linestats ../inst/mapdata/italy.L
./Lmake 0 s b france.line france.linestats ../inst/mapdata/france.L
./Lmake 0 p b state.vbm.line
state.vbm.linestats ../inst/mapdata/state.vbm.L
./Lmake 0 p b state.carto.line
state.carto.linestats ../inst/mapdata/state.carto.L
make[1]: Saindo do diretório
`/tmp/Rtmpo3pSb1/R.INSTALL12d468bce883/maps/src'
make county.G state.G usa.G nz.G world.G world2.G italy.G france.G
state.vbm.G state.carto.G
make[1]: Entrando no diretório
`/tmp/Rtmpo3pSb1/R.INSTALL12d468bce883/maps/src'
./Gmake b county.gon
county.gonstats ../inst/mapdata/county.G ../inst/mapdata/county.L
./Gmake b state.gon
state.gonstats ../inst/mapdata/state.G ../inst/mapdata/state.L
./Gmake b usa.gon
usa.gonstats ../inst/mapdata/usa.G ../inst/mapdata/usa.L
./Gmake b nz.gon nz.gonstats ../inst/mapdata/nz.G ../inst/mapdata/nz.L
./Gmake b world.gon
world.gonstats ../inst/mapdata/world.G ../inst/mapdata/world.L
./Gmake b world2.gon
world2.gonstats ../inst/mapdata/world2.G ../inst/mapdata/world2.L
./Gmake b italy.gon
italy.gonstats ../inst/mapdata/italy.G ../inst/mapdata/italy.L
./Gmake b france.gon
france.gonstats ../inst/mapdata/france.G ../inst/mapdata/france.L
./Gmake b state.vbm.gon
state.vbm.gonstats ../inst/mapdata/state.vbm.G ../inst/mapdata/state.vbm.L
./Gmake b state.carto.gon
state.carto.gonstats ../inst/mapdata/state.carto.G ../inst/mapdata/state.carto.L
make[1]: Saindo do diretório
`/tmp/Rtmpo3pSb1/R.INSTALL12d468bce883/maps/src'
make county.N state.N usa.N nz.N world.N world2.N italy.N france.N
state.vbm.N state.carto.N
make[1]: Entrando no diretório
`/tmp/Rtmpo3pSb1/R.INSTALL12d468bce883/maps/src'
make[1]: Saindo do diretório
`/tmp/Rtmpo3pSb1/R.INSTALL12d468bce883/maps/src'
gcc -std=gnu99 -I/usr/local/lib/R/include  -I/usr/local/include    -fpic
-g -O2 -c mapget.c -o mapget.o
gcc -std=gnu99 -I/usr/local/lib/R/include  -I/usr/local/include    -fpic
-g -O2 -c smooth.c -o smooth.o
gcc -std=gnu99 -I/usr/local/lib/R/include  -I/usr/local/include    -fpic
-g -O2 -c thin.c -o thin.o
/usr/local/lib/R/bin/R CMD SHLIB -o maps.so mapget.o smooth.o thin.o
make[1]: Entrando no diretório
`/tmp/Rtmpo3pSb1/R.INSTALL12d468bce883/maps/src'
gcc -std=gnu99 -shared -L/usr/local/lib -o maps.so mapget.o smooth.o
thin.o -L/usr/local/lib/R/lib -lR
make[1]: Saindo do diretório
`/tmp/Rtmpo3pSb1/R.INSTALL12d468bce883/maps/src'
installing to /usr/local/lib/R/library/maps/libs
** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded

* DONE (maps)

The downloaded packages are in
	‘/tmp/Rtmp743Xz4/downloaded_packages’
Updating HTML index of packages in '.Library'
Making packages.html  ... done


Em Ter, 2012-02-14 às 11:27 -0200, Adriano S. Melo escreveu:
> Prezados colegas,
> Não estou conseguindo instalar o pacote 'maps'. Uso ubuntu 10.04 e R
> 2.14.1.
> 
> 
> Consigo instalar outros pacotes normalmente, mas não o 'maps'.
> Já tentei baixar os arquivos manualmente (inclusive de versões
> anteriores), mas sempre tenho erro, aparentemente na compilação. A
> mensagem de erro segue abaixo.
> Fico grato por qualquer ajuda.
> Abraços,
> Adriano S. Melo
> Dep. Ecologia - UFG
> 
> 
> install.packages('maps')
> Installing package(s) into ‘/home/aa/R/i486-pc-linux-gnu-library/2.14’
> (as ‘lib’ is unspecified)
> --- Please select a CRAN mirror for use in this session ---
> Carregando a interface Tcl/Tk ... pronto
> tentando a URL
> 'http://www.vps.fmvz.usp.br/CRAN/src/contrib/maps_2.2-5.tar.gz'
> Content type 'application/x-gzip' length 1428846 bytes (1.4 Mb)
> URL aberta
> ==================================================
> downloaded 1.4 Mb
> 
> 
> * installing *source* package ‘maps’ ...
> ** package ‘maps’ successfully unpacked and MD5 sums checked
> ** libs
> ** arch - 
> gcc -std=gnu99 -g -O2    Gmake.c   -o Gmake
> gcc -std=gnu99 -g -O2    Lmake.c   -o Lmake
> Converting world to world2
> f convert.awk < world.line > world2.line
> /bin/bash: f: comando não encontrado
> make: [world2.line] Erro 127 (ignorado)
> make county.L state.L usa.L nz.L world.L world2.L italy.L france.L
> state.vbm.L state.carto.L
> make[1]: Entrando no diretório
> `/tmp/RtmpOHSZmi/R.INSTALL79b85cf8d6ef/maps/src'
> ./Lmake 0 s b county.line county.linestats ../inst/mapdata/county.L
> ./Lmake 0 s b state.line state.linestats ../inst/mapdata/state.L
> ./Lmake 0 s b usa.line usa.linestats ../inst/mapdata/usa.L
> ./Lmake 0 s b nz.line nz.linestats ../inst/mapdata/nz.L
> ./Lmake 0 s b world.line world.linestats ../inst/mapdata/world.L
> ./Lmake 0 s b world2.line world2.linestats ../inst/mapdata/world2.L
> Cannot read left and right at line 1
> make[1]: ** [world2.L] Erro 1
> make[1]: Saindo do diretório
> `/tmp/RtmpOHSZmi/R.INSTALL79b85cf8d6ef/maps/src'
> make: ** [ldata] Erro 2
> ERROR: compilation failed for package ‘maps’
> * removing ‘/home/aa/R/i486-pc-linux-gnu-library/2.14/maps’
> 
> 
> The downloaded packages are in
> ‘/tmp/RtmpSDbTyV/downloaded_packages’
> Mensagens de aviso perdidas:
> In install.packages("maps") :
>   installation of package ‘maps’ had non-zero exit status
> 
> 
> 
> 
> _______________________________________________
> 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.

-- 
Paulo Justiniano Ribeiro Jr
LEG (Laboratorio de Estatistica e Geoinformacao)
Universidade Federal do Parana
Caixa Postal 19.081
CEP 81.531-990
Curitiba, PR  -  Brasil
Tel: (+55) 41 3361 3573
VOIP: (+55) (41) (3361 3600) 1053 1066
Fax: (+55) 41 3361 3141
e-mail: paulojus AT  ufpr  br
http://www.leg.ufpr.br/~paulojus




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