Hello, I am trying to read in a GRIB file and having trouble utilizing RGDAL and NETCDF which is needed to readGrib files and start plotting. I am having trouble getting library(“rgdal”) to install and work. Netcdf/ncdf.toold did no install either. I am running R studio in OpenSuse Leap 42.2 on a panasonic CF-31 with 4GB ram i7 processor. Any thoughts on these errors?

R version 3.3.1 (2016-06-21)
Platform: x86_64-suse-linux-gnu (64-bit)

"rgdal"


> install.packages("rgdal")
Installing package into ‘/home/Beta/R/x86_64-suse-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/rgdal_1.2-4.tar.gz'
Content type 'unknown' length 1652186 bytes (1.6 MB)
==================================================
downloaded 1.6 MB

* installing *source* package ‘rgdal’ ...
** package ‘rgdal’ successfully unpacked and MD5 sums checked
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
configure: CC: gcc -std=gnu99
configure: CXX: g++
configure: rgdal: 1.2-4
checking for /usr/bin/svnversion... yes
configure: svn revision: 643
checking for gdal-config... no
no
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/home/Beta/R/x86_64-suse-linux-gnu-library/3.3/rgdal’
Warning in install.packages :
installation of package ‘rgdal’ had non-zero exit status

The downloaded source packages are in
/tmp/RtmpGZnMxw/downloaded_packages’
"ncdf.tools"

> install.packages("ncdf.tools")
Installing package into ‘/home/Beta/R/x86_64-suse-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
also installing the dependency ‘RNetCDF’

trying URL 'https://cran.rstudio.com/src/contrib/RNetCDF_1.8-2.tar.gz'
Content type 'unknown' length 95693 bytes (93 KB)
==================================================
downloaded 93 KB

trying URL 'https://cran.rstudio.com/src/contrib/ncdf.tools_0.7.1.295.tar.gz'
Content type 'unknown' length 67074 bytes (65 KB)
==================================================
downloaded 65 KB

* installing *source* package ‘RNetCDF’ ...
** package ‘RNetCDF’ successfully unpacked and MD5 sums checked
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
checking for nc-config... no
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... /usr/bin/grep
checking for egrep... /usr/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.h usability... no
checking netcdf.h presence... no
checking for netcdf.h... no
configure: error: "netcdf.h was not compiled - defining CPPFLAGS may help"
ERROR: configuration failed for package ‘RNetCDF’
* removing ‘/home/Beta/R/x86_64-suse-linux-gnu-library/3.3/RNetCDF’
Warning in install.packages :
installation of package ‘RNetCDF’ had non-zero exit status
ERROR: dependency ‘RNetCDF’ is not available for package ‘ncdf.tools’
* removing ‘/home/Beta/R/x86_64-suse-linux-gnu-library/3.3/ncdf.tools’
Warning in install.packages :
installation of package ‘ncdf.tools’ had non-zero exit status

The downloaded source packages are in
/tmp/RtmpEtMh6m/downloaded_packages’
>



"NETCDF"



I am also not able to find the library(“netcdf”) in Rstudio also



> install.packages("netcdf")
Installing package into ‘/home/beta/R/x86_64-suse-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘netcdf’ is not available (for R version 3.3.1)
>

---
Thank you
AKA