Installation of Rgraphviz fails - missing gvc.h
1
0
Entering edit mode
gvds • 0
@gvds-23478
Last seen 16 months ago

Installing Rgraphviz in R ver. 4.0 & Bioconductor ver. 3.11.1 on Kubuntu 20.04 fails with the following error.

In file included from LL_funcs.c:1:
common.h:16:10: fatal error: gvc.h: No such file or directory
   16 | #include <gvc.h>
      |          ^~~~~~~
compilation terminated.
make: *** [/usr/lib/R/etc/Makeconf:167: LL_funcs.o] Error 1
ERROR: compilation failed for package ‘Rgraphviz’

.

sessionInfo output:
R version 4.0.0 (2020-04-24)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0

locale:
 [1] LC_CTYPE=en_ZA.UTF-8       LC_NUMERIC=C               LC_TIME=en_ZA.UTF-8        LC_COLLATE=en_ZA.UTF-8     LC_MONETARY=en_ZA.UTF-8    LC_MESSAGES=en_ZA.UTF-8   
 [7] LC_PAPER=en_ZA.UTF-8       LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_ZA.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] BiocManager_1.30.10

loaded via a namespace (and not attached):
 [1] rstudioapi_0.11   magrittr_1.5      usethis_1.6.1     devtools_2.3.0    pkgload_1.0.2     R6_2.4.1          rlang_0.4.5       fansi_0.4.1       tools_4.0.0       pkgbuild_1.0.7   
[11] packrat_0.5.0     sessioninfo_1.1.1 cli_2.0.2         withr_2.2.0       ellipsis_0.3.0    remotes_2.1.1     assertthat_0.2.1  digest_0.6.25     rprojroot_1.3-2   crayon_1.3.4     
[21] processx_3.4.2    callr_3.4.3       fs_1.4.1          ps_1.3.2          curl_4.3          testthat_2.3.2    memoise_1.1.0     glue_1.4.0        compiler_4.0.0    desc_1.2.0       
[31] backports_1.1.6   prettyunits_1.1.1
software error Rgraphviz • 208 views
ADD COMMENT
0
Entering edit mode
@kevin
Last seen 4 hours ago
Republic of Ireland

Outside R, you will likely have to, first, install the graphviz development libraries via:

sudo apt-get install graphviz-dev

Kevin

ADD COMMENT
0
Entering edit mode

How are you installing Rgraphviz? You should not be using an external Graphviz by default, so I am surprised by this error. You can send me the entire installation output.

Best, Kasper

ADD REPLY

Login before adding your answer.

Traffic: 224 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6