Skip to content

Libfortran3 not on ubuntu24.04 #9

@JoranAngevaare

Description

@JoranAngevaare

Issue

On ubuntu24.04 we get an error while installing eobs, because Libfortran3 is not installed.

(eobs) joran@KNMI-5CG2482BD0:~/eobs$ Rscript -e "packageurl<-'eobs.tar.gz'; install.packages(packageurl, repos=NULL,type='source')"
* installing *source* package ‘eobs’ ...
** using staged installation
** libs
make: Nothing to be done for 'all'.
installing to /home/joran/eobs/miniforge/installation/envs/eobs/lib/R/library/00LOCK-eobs/00new/eobs/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘eobs’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/joran/eobs/miniforge/installation/envs/eobs/lib/R/library/00LOCK-eobs/00new/eobs/libs/eobs.so':
  /home/joran/eobs/miniforge/installation/envs/eobs/lib/R/bin/exec/../../lib/../.././libgfortran.so.5: version `GFORTRAN_1.0' not found (required by /home/joran/eobs/miniforge/installation/envs/eobs/lib/R/library/00LOCK-eobs/00new/eobs/libs/eobs.so)
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/joran/eobs/miniforge/installation/envs/eobs/lib/R/library/eobs’

Solution
By downloading the libfortran label from conda forge, we alleviate this issue.

conda install conda-forge/label/cf201901::libgfortran

Note:
Later it seemed that this issue was actually caused by the compiled file https://github.com/ECA-D/eobs/blob/master/src/eobs.so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions