[R-br] Problemas para instalar RNetCDF no Rstudio (linux)
Paulo Henrique Pimenta
paulopimenta6 em hotmail.com
Terça Outubro 11 18:00:16 BRT 2016
Olá a todos,
Estou tentando instalar o RNetCDF no R do qual uso, num ubunutu 12.04 no RStudio, porém não consigo instalar o pacote aparecendo o seguinte erro:
#######
> install.packages("RNetCDF")
Installing package into '/home/notemaster/R/i686-pc-linux-gnu-library/3.0'
(as 'lib' is unspecified)
--2016-10-11 17:49:52-- https://cran.rstudio.com/src/contrib/RNetCDF_1.8-2.tar.gz
Resolvendo cran.rstudio.com (cran.rstudio.com)... 54.192.56.107
Conectando-se a cran.rstudio.com (cran.rstudio.com)|54.192.56.107|:443... conectado.
A requisição HTTP foi enviada, aguardando resposta... 200 OK
Tamanho: 95693 (93K) [application/x-gzip]
Salvando em: "/tmp/Rtmpbh1Jqr/downloaded_packages/RNetCDF_1.8-2.tar.gz"
0K .......... .......... .......... .......... .......... 53% 68,7K 1s
50K .......... .......... .......... .......... ... 100% 50,2K=1,6s
2016-10-11 17:49:54 (58,7 KB/s) - "/tmp/Rtmpbh1Jqr/downloaded_packages/RNetCDF_1.8-2.tar.gz" salvo [95693/95693]
* installing *source* package 'RNetCDF' ...
** package 'RNetCDF' successfully unpacked and MD5 sums checked
checking for nc-config... yes
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 netcdf linker flags... -L/usr/lib -lnetcdf
checking netcdf pre-processor and compiler flags... -I/usr/include -DgFortran
checking for library containing XML_StopParser... no
checking for library containing utFree... no
checking for library containing utScan... no
configure: error: "unable to use udunits2 or udunits"
ERROR: configuration failed for package 'RNetCDF'
* removing '/home/notemaster/R/i686-pc-linux-gnu-library/3.0/RNetCDF'
Warning in install.packages :
installation of package 'RNetCDF' had non-zero exit status
The downloaded source packages are in
'/tmp/Rtmpbh1Jqr/downloaded_packages'
> library(RNetCDF)
Erro em library(RNetCDF) : there is no package called 'RNetCDF'
####################
Tentei usar o pacote netcdf, mas não consegui devido ao pacote ter sido descontinuado. Espero que alguém possa me ajudar, pois sou novo no uso de netcdf no R.
Abraços a todos.
Paulo Henrique de A. S. Pimenta.
Graduando em Meteorologia (Bacharelado) - IAG/USP.
Fone: +5511981318435.
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://listas.inf.ufpr.br/pipermail/r-br/attachments/20161011/52959881/attachment.html>
Mais detalhes sobre a lista de discussão R-br