Problems installing lars

Hi! I'm trying to install lars and I'm currently facing this problem:

Installing package into ‘/home/dimitra/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
trying URL ''
Content type 'application/x-gzip' length 184025 bytes (179 KB)
downloaded 179 KB

  • installing source package ‘lars’ ...
    ** package ‘lars’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    gfortran -fno-optimize-sibling-calls -fpic -g -O2 -fdebug-prefix-map=/build/r-base-apO4Ea/r-base-4.2.0=. -fstack-protector-strong -c delcol.f -o delcol.o
    /bin/bash: gfortran: command not found
    make: *** [/usr/lib/R/etc/Makeconf:191: delcol.o] Error 127
    ERROR: compilation failed for package ‘lars’
  • removing ‘/home/dimitra/R/x86_64-pc-linux-gnu-library/4.2/lars’
    Warning in install.packages :
    installation of package ‘lars’ had non-zero exit status

The downloaded source packages are in

I have no idea what to do.

You are missing the fortran compiler in your system, you haven't told us what operating system you are using but very likely you can get specific installation instructions if you google: "how to install gfortran in <<your Linux distribution>>?"

1 Like

I did what you said and i installed the compiler. The package is now installed!!! Thanks a lot! <3

This topic was automatically closed 7 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.