configuration failed for package ‘units’

While installing Biotools, I am getting the error message as
configure: error: in `/tmp/RtmpoFuWzp/R.INSTALL35c0a63c2a0bd/units':
configure: error:

Configuration failed because libudunits2.so was not found. Try installing:
* deb: libudunits2-dev (Debian, Ubuntu, ...)
* rpm: udunits2-devel (Fedora, EPEL, ...)
* brew: udunits (OSX)
If udunits2 is already installed in a non-standard location, use:
--configure-args='--with-udunits2-lib=/usr/local/lib'
if the library was not found, and/or:
--configure-args='--with-udunits2-include=/usr/include/udunits2'
if the header was not found, replacing paths with appropriate values.
You can alternatively set UDUNITS2_INCLUDE and UDUNITS2_LIBS manually.

See `config.log' for more details
ERROR: configuration failed for package ‘units’

  • removing ‘/home/rnsarma/R/x86_64-pc-linux-gnu-library/3.6/units’
    Warning in install.packages :
    installation of package ‘units’ had non-zero exit status
    ERROR: dependency ‘units’ is not available for package ‘sf’
  • removing ‘/home/rnsarma/R/x86_64-pc-linux-gnu-library/3.6/sf’
    Warning in install.packages :
    installation of package ‘sf’ had non-zero exit status
    ERROR: dependency ‘sf’ is not available for package ‘spdep’
  • removing ‘/home/rnsarma/R/x86_64-pc-linux-gnu-library/3.6/spdep’
    Warning in install.packages :
    installation of package ‘spdep’ had non-zero exit status
    ERROR: dependency ‘spdep’ is not available for package ‘SpatialEpi’
  • removing ‘/home/rnsarma/R/x86_64-pc-linux-gnu-library/3.6/SpatialEpi’
    Warning in install.packages :
    installation of package ‘SpatialEpi’ had non-zero exit status
    ERROR: dependency ‘SpatialEpi’ is not available for package ‘biotools’
  • removing ‘/home/rnsarma/R/x86_64-pc-linux-gnu-library/3.6/biotools’
    Warning in install.packages :
    installation of package ‘biotools’ had non-zero exit status

My versions
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 3
minor 6.3
year 2020
month 02
day 29
svn rev 77875
language R
version.string R version 3.6.3 (2020-02-29)
nickname Holding the Windsock

What Linux distro do you use ?

My Linux distro details:

Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal

Then you have to install this system dependency, on a terminal (not the R console) run this command.

sudo apt install libudunits2-dev
1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.