Paulo, o link abaixo deve ajudar. http://stackoverflow.com/questions/11319698/how-to-install-r-packages-rnetcdf-and-ncdf-on-ubuntu
On Tue, Oct 11, 2016 at 6:00 PM, Paulo Henrique Pimenta via R-br < r-br@listas.c3sl.ufpr.br> wrote: > 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.gzResolvendo > cran.rstudio.com (cran.rstudio.com)... 54.192.56.107Conectando-se a > cran.rstudio.com (cran.rstudio.com)|54.192.56.107|:443... conectado.A > requisição HTTP foi enviada, aguardando resposta... 200 OKTamanho: 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 checkedchecking 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... noconfigure: 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. > > _______________________________________________ > R-br mailing list > R-br@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. > -- ############################################################### ## Jônatan Dupont Tatsch ## Professor do Departamento de Física ## Centro de Ciências Exatas e Naturais (CCNE) ## Universidade Federal de Santa Maria - UFSM ## Faixa de Camobi, Prédio 13 - Campus UFSM - Santa Maria, RS, Brasil - 97105-900 ## Telefone: +55(55)33012083 ## www.ufsm.br/meteorologia ###############################################################
_______________________________________________ R-br mailing list R-br@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.