Error when installing ggVennDiagram "had non-zero exit status"


I got the error below when installing ggVennDiagram

Downloading GitHub repo gaospecial/ggVennDiagram@HEAD
Installing 1 packages: sf
Installing package into ‘/home/raizada/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
trying URL ''
Content type 'application/x-gzip' length 3529597 bytes (3.4 MB)

downloaded 3.4 MB

  • installing source package ‘sf’ ...
    ** package ‘sf’ successfully unpacked and MD5 sums checked
    ** using staged installation
    configure: CC: gcc
    configure: CXX: g++ -std=gnu++11
    checking for gdal-config... no
    configure: error: gdal-config not found or not executable.
    ERROR: configuration failed for package ‘sf’
  • removing ‘/home/raizada/R/x86_64-pc-linux-gnu-library/4.2/sf’

The downloaded source packages are in
:heavy_check_mark: checking for file ‘/tmp/Rtmpw8F3op/remotes38b9e440aeeb7/gaospecial-ggVennDiagram-db6742d/DESCRIPTION’
─ preparing ‘ggVennDiagram’:
:heavy_check_mark: checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ looking to see if a ‘data/datalist’ file should be added
─ building ‘ggVennDiagram_1.2.1.tar.gz’

Installing package into ‘/home/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
ERROR: dependency ‘sf’ is not available for package ‘ggVennDiagram’

  • removing ‘/home/R/x86_64-pc-linux-gnu-library/4.2/ggVennDiagram’
    Warning messages:
    1: In i.p(...) : installation of package ‘sf’ had non-zero exit status
    2: In i.p(...) :
    installation of package ‘/tmp/Rtmpw8F3op/file38b9e158b1ee/ggVennDiagram_1.2.1.tar.gz’ had non-zero exit status

You are missing a system dependency, if you are on a debian based Linux distro, run this command on a system terminal.

sudo apt install libudunits2-dev libgdal-dev libgeos-dev libproj-dev

Solved! Much thanks!

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.