gcc_termux
gcc_termux copied to clipboard
How to install R package ncdf4?
I've installed libhdf5, netcdf-c, and r-cran-tidyverse. Now I'm trying to install R package ncdf4, but I get the error below. I downloaded the package's source code to look at configure line 1833, but I couldn't figure out what is missing. Would appreciate any help.
- installing source package ‘ncdf4’ ... ** package ‘ncdf4’ successfully unpacked and MD5 sums checked ** using staged installation configure.ac: starting checking for nc-config... yes Using nc-config: nc-config Output of nc-config --all:
This netCDF 4.7.4 has been built with the following features:
--cc -> gcc --cflags -> -I/data/data/com.termux/files/usr/include --libs -> -L/data/data/com.termux/files/usr/lib -lnetcdf --static -> -lhdf5_hl -lhdf5 -lm -lz -lcurl
--has-c++ -> no --cxx ->
--has-c++4 -> no --cxx4 ->
--has-fortran -> no --has-dap -> yes --has-dap2 -> yes --has-dap4 -> yes --has-nc2 -> yes --has-nc4 -> yes --has-hdf5 -> yes --has-hdf4 -> no --has-logging -> no --has-pnetcdf -> no --has-szlib -> no --has-cdf5 -> yes --has-parallel4 -> no --has-parallel -> no
--prefix -> /data/data/com.termux/files/usr --includedir -> /data/data/com.termux/files/usr/include --libdir -> /data/data/com.termux/files/usr/lib --version -> netCDF 4.7.4
netcdf.m4: about to set rpath, here is source string: >-L/data/data/com.termux/files/usr/lib -lnetcdf< ./configure: 1833: Bad substitution ERROR: configuration failed for package ‘ncdf4’