[MacPorts] #62874: octave @6.2.0+accelerate+app+docs+gfortran+graphicsmagick+qt5+sound+sundials can't find libgfortran.5.dylib

MacPorts noreply at macports.org
Wed Jan 19 01:42:22 UTC 2022


#62874: octave
@6.2.0+accelerate+app+docs+gfortran+graphicsmagick+qt5+sound+sundials can't
find libgfortran.5.dylib
--------------------------+---------------------------------
  Reporter:  Schamschula  |      Owner:  MarcusCalhoun-Lopez
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  BigSur
      Port:  octave       |
--------------------------+---------------------------------

Comment (by rshuston):

 This is what I did to get `octave
 @6.4.0_1+accelerate+app+docs+gfortran+graphicsmagick+qt5+sound+sundials`
 installed on my MacBook Pro M1 running Monterey. The key is to run `port
 build` instead of `port install` so that you have the opportunity to
 eliminate the `@rpath` entries placed in `octave-cli` and `octave-gui` in
 the Octave port's `${workpath}/octave-6.4.0/src/.libs` directory. Running
 `otool -L` on these files reveals the following two `@rpath` entries for
 each file:
 {{{
 @rpath/libgfortran.5.dylib
 @rpath/libquadmath.0.dylib
 }}}

 These files exist in the MacPorts directory tree in
 {{{
 /opt/local/lib/libgcc/libgfortran.5.dylib
 /opt/local/lib/libgcc/libquadmath.0.dylib
 }}}

 So the approach is to run `port build`, use `install_name_tool` to fix the
 built `octave-cli` and `octave-gui` files, and then finish with `port
 destroot` and `port install`. NOTE: You'll probably need to first patch
 the `vecLibFort` package according to
 https://trac.macports.org/ticket/63717#comment:20 before installing
 Octave.

 1. `sudo port build octave`
 2. `cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_octave/octave/work/octave-6.4.0/src/.libs`
 3. `sudo install_name_tool -change "@rpath/libgfortran.5.dylib"
 /opt/local/lib/libgcc/libgfortran.5.dylib octave-cli`
 4. `sudo install_name_tool -change "@rpath/libquadmath.0.dylib"
 /opt/local/lib/libgcc/libquadmath.0.dylib octave-cli`
 5. `sudo install_name_tool -change "@rpath/libgfortran.5.dylib"
 /opt/local/lib/libgcc/libgfortran.5.dylib octave-gui`
 6. `sudo install_name_tool -change "@rpath/libquadmath.0.dylib"
 /opt/local/lib/libgcc/libquadmath.0.dylib octave-gui`
 7. `cd -`
 8. `sudo port dest octave`
 9. `sudo port install octave`

 Hopefully, somebody who understands the Octave portfile can use the above
 information to make the appropriate fixes to get Octave building cleanly
 again.

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


More information about the macports-tickets mailing list