Problems to install Rcmdr

I have problems to install Rcmdr, I am using R studio 3.6.1, intalled in Manjaro system.

I use CRAN to install Rcmdr, all is fine but suddenly:

  • installing source package ‘acepack’ ...
    ** package ‘acepack’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    gfortran -fno-optimize-sibling-calls -fpic -g -O2 -c ace.f -o ace.o
    make: gfortran: Command not found
    make: *** [/usr/lib64/R/etc/Makeconf:190: ace.o] Error 127
    ERROR: compilation failed for package ‘acepack’
  • removing ‘/home/eudald/R/x86_64-pc-linux-gnu-library/3.6/acepack’
    Warning in install.packages :
    installation of package ‘acepack’ had non-zero exit status
  • installing source package ‘SparseM’ ...
    ** package ‘SparseM’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    gfortran -fno-optimize-sibling-calls -fpic -g -O2 -c bckslv.f -o bckslv.o
    make: gfortran: Command not found
    make: *** [/usr/lib64/R/etc/Makeconf:190: bckslv.o] Error 127
    ERROR: compilation failed for package ‘SparseM’
  • removing ‘/home/eudald/R/x86_64-pc-linux-gnu-library/3.6/SparseM’
    Warning in install.packages :
    installation of package ‘SparseM’ had non-zero exit status
  • installing source package ‘minqa’ ...
    ** package ‘minqa’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    gfortran -fno-optimize-sibling-calls -fpic -g -O2 -c altmov.f -o altmov.o
    make: gfortran: Command not found
    make: *** [/usr/lib64/R/etc/Makeconf:190: altmov.o] Error 127
    ERROR: compilation failed for package ‘minqa’
  • removing ‘/home/eudald/R/x86_64-pc-linux-gnu-library/3.6/minqa’
    Warning in install.packages :
    installation of package ‘minqa’ had non-zero exit status
  • installing source package ‘tcltk2’ ...
    ** package ‘tcltk2’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    Error: package or namespace load failed for ‘tcltk’:
    .onLoad failed in loadNamespace() for 'tcltk', details:
    call: dyn.load(file, DLLpath = DLLpath, ...)
    error: unable to load shared object '/usr/lib/R/library/tcltk/libs/tcltk.so':
    libtk8.6.so: no s’ha pogut obrir el fitxer d’objecte compartit: El fitxer o directori no existeix
    Error: package ‘tcltk’ could not be loaded
    Execution halted
    ERROR: lazy loading failed for package ‘tcltk2’
  • removing ‘/home/eudald/R/x86_64-pc-linux-gnu-library/3.6/tcltk2’
    Warning in install.packages :
    installation of package ‘tcltk2’ had non-zero exit status

That happens to all depends package and are removed and Rcmdr is not installed.

Any help?

Thanks a lot

Eudald

Hi, welcome!

This part indicates that R is not being able to find a fortran compiler in your system, make sure yo have gcc-fortran library installed, I'm not a Manajaro user but I think the command for that would be pacman -S gcc-fortran (you have to run this on a system terminal, not int R).

1 Like

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