Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libgfortran issues #178

Open
mretier opened this issue Nov 3, 2024 · 1 comment
Open

libgfortran issues #178

mretier opened this issue Nov 3, 2024 · 1 comment

Comments

@mretier
Copy link

mretier commented Nov 3, 2024

Hi,
I'd like to use phangorn but fail to get it to work on my system:

  • M3 MacOS Sequoia 15.0.1
  • Mamba environment with phangorn installed (see environment yaml below) with the following command to enable x86 emulation CONDA_SUBDIR=osx-64 mamba env create --file=./environment.yml

Environment yaml:

name: test
channels:
  - conda-forge
  - bioconda
dependencies:
  - conda-forge::r-ape
  - bioconda::r-phangorn
  - r::r-codetools

Installation works fine but when I open R and want to load the module using library(phangorn) I get the following error message:

> library(phangorn)
Lade nötiges Paket: ape
Fehler: package or namespace load failed for ‘phangorn’ in dyn.load(file, DLLpath = DLLpath, ...):
 kann shared object '/Users/user/miniforge3/envs/test/lib/R/library/phangorn/libs/phangorn.so' nicht laden:
  dlopen(/Users/user/miniforge3/envs/test/lib/R/library/phangorn/libs/phangorn.so, 0x0006): Library not loaded: @rpath/libgfortran.3.dylib
  Referenced from: <3DB1D09A-9FF9-358C-9565-CEEE4A163666> /Users/user/miniforge3/envs/test/lib/R/library/phangorn/libs/phangorn.so
  Reason: tried: '/Users/user/miniforge3/envs/test/lib/libgfortran.3.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/user/miniforge3/envs/test/lib/libgfortran.3.dylib' (no such file), '/Users/user/miniforge3/envs/test/lib/R/library/phangorn/libs/../../../../libgfortran.3.dylib' (no such file), '/Users/user/miniforge3/envs/test/lib/libgfortran.3.dylib' (no such file), '/System/Volumes/Preboot

When I check the mamba environment folder I find a file called libgfortran.4.dylib but not libgfortran.3.dylib. I can't seem to find a way to get the latter.

How could this be resolved?

Thanks for the input!

@KlausVigo
Copy link
Owner

Dear @mretier,

this seems to be a problem with mamba / conda and less with phangorn itself. I don't really know about mamba, so I can' t comment what's wrong with the yaml file.
Maybe you give install.packages to install the package directly from CRAN or `install.packages('phangorn', repos = c('https://klausvigo.r-universe.dev', 'https://cloud.r-project.org')) to install a binary for the development version a try. This usually seem to work quite well.

Kind regards,
Klaus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants