[MacPorts] #64800: xcrysden: Library not loaded: @rpath/libgfortran.5.dylib

MacPorts noreply at macports.org
Fri Mar 11 14:32:57 UTC 2022


#64800: xcrysden: Library not loaded: @rpath/libgfortran.5.dylib
------------------------------+----------------------
  Reporter:  giovannicantele  |      Owner:  dstrubbe
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:
      Port:  xcrysden         |
------------------------------+----------------------

Comment (by giovannicantele):

 Thank you a lot for you prompt message.Unfortunately, after following the
 suggested steps ( uninstall + clean + install with variant), exactly the
 same error shows up:

 {{{
 dyld[80836]: Library not loaded: @rpath/libgfortran.5.dylib
   Referenced from: /opt/local/lib/xcrysden-1.6.2/ftnunit
   Reason: tried: '/opt/local/lib/xcrysden-1.6.2/libgfortran.5.dylib' (no
 such file), '/opt/local/lib/libgfortran.5.dylib' (no such file),
 '/opt/local/lib/gcc-devel/gcc/aarch64-apple-
 darwin21/12.0.0/libgfortran.5.dylib' (no such file), '/opt/local/lib/gcc-
 devel/gcc/aarch64-apple-darwin21/12.0.0/../../../libgfortran.5.dylib' (no
 such file), '/opt/local/lib/xcrysden-1.6.2/libgfortran.5.dylib' (no such
 file), '/opt/local/lib/libgfortran.5.dylib' (no such file),
 '/opt/local/lib/gcc-devel/gcc/aarch64-apple-
 darwin21/12.0.0/libgfortran.5.dylib' (no such file), '/opt/local/lib/gcc-
 devel/gcc/aarch64-apple-darwin21/12.0.0/../../../libgfortran.5.dylib' (no
 such file), '/usr/local/lib/libgfortran.5.dylib' (no such file),
 '/usr/lib/libgfortran.5.dylib' (no such file)
 }}}

 However, after a closer and deep inspection, I realised that xcrysden (or
 maybe any other code needing libgfortran) looks fo that library in
 standard paths, such as /opt/local/lib . On the other hand, the output of
 the command
 {{{
 port contents libgcc-devel | grep gfort
 }}}
 is
 {{{
 /opt/local/lib/libgcc/libgfortran.5.dylib
 }}}

 That means that libgcc-devel puts libgfortran.5.dylib in a non-standard
 path (under libgcc under lib), that causes the issue. This is probably a
 bug or an issue, in any case.
 After

 {{{
 cd /opt/local/lib
 sudo ln -s libgcc/libgfortran.5.dylib .
 }}}

 everything works fine.

-- 
Ticket URL: <https://trac.macports.org/ticket/64800#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list