[MacPorts] #72015: lapack @3.12.1_0+gfortran: Library not loaded: @rpath/libgfortran.5.dylib

MacPorts noreply at macports.org
Wed Feb 12 10:30:12 UTC 2025


#72015: lapack @3.12.1_0+gfortran: Library not loaded: @rpath/libgfortran.5.dylib
----------------------+----------------------
  Reporter:  nilason  |      Owner:  tenomoto
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:  lapack   |
----------------------+----------------------

Comment (by tomio-arisaka):

 I don't know your situation, but I don't think this is the issue of
 MacPorts.\\

 LAPACK port works well for me.\\

 For example:

 {{{
 $ cat ./example-01.c
 /* Calling DGELS using row-major order */

 #include <stdio.h>
 #include <lapack/lapacke.h>

 int main (int argc, const char * argv[])
 {
    double a[5][3] = {1,1,1,2,3,4,3,5,2,4,2,5,5,4,3};
    double b[5][2] = {-10,-3,12,14,14,12,16,16,18,16};
    lapack_int info,m,n,lda,ldb,nrhs;
    int i,j;

    m = 5;
    n = 3;
    nrhs = 2;
    lda = 3;
    ldb = 2;

    info = LAPACKE_dgels(LAPACK_ROW_MAJOR,'N',m,n,nrhs,*a,lda,*b,ldb);

    for(i=0;i<n;i++)
    {
       for(j=0;j<nrhs;j++)
       {
          printf("%lf ",b[i][j]);
       }
       printf("\n");
    }
    return(info);
 }

 $
 $ gcc-mp-14 -O2 -I/opt/local/include -L/opt/local/lib/lapack -llapacke -o
 ./example-01 ./example-01.c
 $
 $ ./example-01
 2.000000 1.000000
 1.000000 1.000000
 1.000000 2.000000
 $
 }}}

 Note: GCC knows where libgfortran.5.dylib exists.

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


More information about the macports-tickets mailing list