Error installing corrgram package

Hi guys,

I'm triyng to install corrgram package but it comes with a "ERROR: dependency 'seriation' is not available for package 'corrgram'". Could you help me?

Below a copy of the terminal exit:



 Installing package into '/home/viniciusoliveira/R/x86_64-pc-linux-gnu-library/4.0'
(as 'lib' is unspecified)
also installing the dependencies 'qap', 'seriation'

trying URL 'https://cran.rstudio.com/src/contrib/qap_0.1-1.tar.gz'
Content type 'application/x-gzip' length 517180 bytes (505 KB)
==================================================
downloaded 505 KB

trying URL 'https://cran.rstudio.com/src/contrib/seriation_1.2-9.tar.gz'
Content type 'application/x-gzip' length 972004 bytes (949 KB)
==================================================
downloaded 949 KB

trying URL 'https://cran.rstudio.com/src/contrib/corrgram_1.13.tar.gz'
Content type 'application/x-gzip' length 285832 bytes (279 KB)
==================================================
downloaded 279 KB

During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C" 
2: Setting LC_TIME failed, using "C" 
3: Setting LC_MESSAGES failed, using "C" 
4: Setting LC_MONETARY failed, using "C" 
5: Setting LC_PAPER failed, using "C" 
6: Setting LC_MEASUREMENT failed, using "C" 
* installing *source* package 'qap' ...
** package 'qap' successfully unpacked and MD5 sums checked
** using staged installation
** libs
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c RNG_wrapper.c -o RNG_wrapper.o
gcc -I"/usr/include/R/" -DNDEBUG   -D_FORTIFY_SOURCE=2   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt  -c init.c -o init.o
gfortran -fno-optimize-sibling-calls  -fpic  -g -O2  -c qapsim.f -o qapsim.o
make: gfortran: No such file or directory
make: *** [/usr/lib64/R/etc/Makeconf:195: qapsim.o] Error 127
ERROR: compilation failed for package 'qap'
* removing '/home/viniciusoliveira/R/x86_64-pc-linux-gnu-library/4.0/qap'
Warning in install.packages :
  installation of package 'qap' had non-zero exit status
During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C" 
2: Setting LC_TIME failed, using "C" 
3: Setting LC_MESSAGES failed, using "C" 
4: Setting LC_MONETARY failed, using "C" 
5: Setting LC_PAPER failed, using "C" 
6: Setting LC_MEASUREMENT failed, using "C" 
ERROR: dependency 'qap' is not available for package 'seriation'
* removing '/home/viniciusoliveira/R/x86_64-pc-linux-gnu-library/4.0/seriation'
Warning in install.packages :
  installation of package 'seriation' had non-zero exit status
During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C" 
2: Setting LC_TIME failed, using "C" 
3: Setting LC_MESSAGES failed, using "C" 
4: Setting LC_MONETARY failed, using "C" 
5: Setting LC_PAPER failed, using "C" 
6: Setting LC_MEASUREMENT failed, using "C" 
ERROR: dependency 'seriation' is not available for package 'corrgram'
* removing '/home/viniciusoliveira/R/x86_64-pc-linux-gnu-library/4.0/corrgram'
Warning in install.packages :
  installation of package 'corrgram' had non-zero exit status

The downloaded source packages are in
	'/tmp/RtmpHq9W5W/downloaded_packages'

At a rough guess you need to manually install 'qap' and then manually install 'seriation'. It looks like they are not installing automatically as dependencies.

You are missing the gfortran library in your system (not in R) you have to install it for being able to compile R packages from source. What Linux distribution are you using?

Well, the terminal I had mentioned was the Rstudio one and not my system's, but I am using Manjaro. I've checked for qap and gfortran but they are avaliable only at the AUR and are orphans. Should I install anyway?

You have shown output from the R console, not a terminal.

Just to clarify qap is an R package and you should install it from CRAN once you have installed your missing system dependency which is gfortran.

gfortran is a compiler that you need for compiling packages from source, which is almost always the case on Linux systems, another option would be to use the RStudio Public Package Manager so you can get access to precompiled binaries.

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.