Skip to content

Oscar / Polymake is looking for mpfr in wrong spot on arm64 mac #428

Closed
@tom111

Description

@tom111

Hi there,

when precompiling Oscar on a freshly installed arm64 Mac I run into this:

ERROR: LoadError: InitError: "/Users/tom/.julia/artifacts/e75f8bd18c56df0983c9054335c32294bb1eebac/share/polymake/perllib/Polymake/Core/CPlusPlus.pm", line 1785: Can't load shared module /Users/tom/.julia/artifacts/e75f8bd18c56df0983c9054335c32294bb1eebac/lib/polymake/lib/common.bundle: dlopen(/Users/tom/.julia/artifacts/e75f8bd18c56df0983c9054335c32294bb1eebac/lib/polymake/lib/common.bundle, 0x0009): Library not loaded: @rpath/libmpfr.6.dylib
  Referenced from: <08F73057-714A-3F9D-A853-9DE02FE45C14> /Users/tom/.julia/artifacts/e75f8bd18c56df0983c9054335c32294bb1eebac/lib/polymake/lib/common.bundle
  Reason: tried: '/Users/tom/temp/prefix/lib/libmpfr.6.dylib' (no such file)
'/Users/tom/.julia/artifacts/e75f8bd18c56df0983c9054335c32294bb1eebac/lib/polymake/lib/../../libmpfr.6.dylib' (no such file), 
[...]
'/opt/homebrew/Cellar/julia/1.8.5/lib/libmpfr.6.dylib' (no such file), '/usr/local/lib/libmpfr.6.dylib' (no such file), '/usr/lib/libmpfr.6.dylib' (no such file, not in dyld cache)

Possible location for mpfr on this machine are:

~ locate libmpfr
/Applications/Mathematica.app/Contents/SystemFiles/Libraries/MacOSX-ARM64/libmpfr.dylib
/Applications/Mathematica.app/Contents/SystemFiles/Libraries/MacOSX-x86-64/libmpfr.dylib
/opt/homebrew/Caskroom/miniconda/base/pkgs/mpfr-4.2.0-he09a6ba_0/lib/libmpfr.6.dylib
/opt/homebrew/Caskroom/miniconda/base/pkgs/mpfr-4.2.0-he09a6ba_0/lib/libmpfr.dylib
/opt/homebrew/Cellar/julia/1.8.5/lib/julia/libmpfr.dylib
/opt/homebrew/Cellar/mpfr/4.2.0/lib/libmpfr.6.dylib
/opt/homebrew/Cellar/mpfr/4.2.0/lib/libmpfr.a
/opt/homebrew/Cellar/mpfr/4.2.0/lib/libmpfr.dylib
/opt/homebrew/lib/libmpfr.6.dylib
/opt/homebrew/lib/libmpfr.a
/opt/homebrew/lib/libmpfr.dylib

I would suggest looking for it in /opt/homebrew/lib/. Note that the one inside the Julia install is called libmpfr.dylib while the code above is looking for libmpfr6.dylib.

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