Mac Os Errro Dyld Library Not Loaded Rpath Libgfortran.3.dylib

It is likely that a function in the libgfortran runtime library is not found in the MATLAB application directory, where it is expected. A possible workaround would be to use a soft (symbolic) link for the libgfortran.3.dylib. Dec 14, 2016  This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site.

Jun 17, 2017  MAC Office 2016 crashes at startup Hi folks I just installed Office 2016 on my Mac, Sierra 10.12.5 and it will not start, any office application will fail. Here is the trace output from the failed startup. Aug 06, 2019  This is a dependency issue in a very old R release (3.3.1). While we should try to fix it, I suspect you would not want that old version of R now-a-days. May 10, 2017 Dismiss Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. The first entries from otool -L show the libraries but seem suspicious in that there is no path (or even @rpath). I think this is part of the problem but I am not sure why. On a side note the name of the library file generated after compiling doesn't have the version information: libgridfiles.dylib and not libgridfiles.1.dylib. Topic Frequently Asked Questions / SeaDAS 6 FAQ / Issue with PPC Mac and libgfortran.3.dylib (locked) By SeanBailey Date 2010-06-17 12:49 If you are running a PPC Mac and do NOT already have gfortran installed, you will need to install the gfortranlibmacppc.tar.gz.

Problem :

Build an Intel® MKL program on Mac OS* with Intel® Fortran Compiler,

For example, compilers_and_libraries_2017.0.065,
MKLPATH=/opt/intel/compilers_and_libraries_2017.0.065/mac/mkl/lib
MKLINCLUDE=/opt/intel/compilers_and_libraries_2017.0.065/mac/mkl/include
> ifort main. f -o main -L$(MKLPATH) -I$(MKLINCLUDE) -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lpthread

get compiler warning:
ld64 warning: indirect library libiomp5.dylib could not be loaded: file not found: libiomp5.dylib
Or runtime error:
dyld: Library not loaded: libiomp5.dylib
Referenced from: @rpath/libmkl_intel_thread.dylib
Reason: image not found
Trace/BPT trap
Root Cause :
Since MKL 11.2, the MKL libraries for Mac OS* have been integrated into Intel® C++/Fortran Compiler Professional Edition or Intel® C++/Fortran Composer XE for Mac OS* X. The default path of MKL libraries were changed from
'/opt/intel/Compiler/11.x/0xx/Frameworks/mkl/'
to '/opt/intel/compilers_and_libraries_201*.*.***/mac/mkl'

for MKL version 11.0-11.1, please refer to '/opt/intel/Compiler/11.x/0xx/Frameworks/mkl/'
for MKL version 10.*, please refer to '/Library/Frameworks/Intel_MKL.framework/Versions/10.0.x.xxx/'

At the same time, the default OpenMP libraries (libiomp5.dylib, libiomp5.a) used by MKL are not in <MKL Libraries>/lib directory as in previous versions. They are under the Intel compiler lib directory now.
for instance, /opt/intel/compilers_and_libraries_2017.0.065/mac/compiler/lib

If you use openMP in c++ application and build with Intel C++ compiler, please firstly make sure you have enable the option 'ICC Intel® C++ 17.*.***-Language' » 'Process OpenMp Directives'.
IPP is the same, please see the article XCode link error: 'file not found: libiomp5.dylib'

Solution:

For compiler warning:
Please refer to the MKL link line advisor.
the command line could be
>ifort main. f -o main -L$(MKLPATH) -I$(MKLINCLUDE) -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread
or
ifort main. f -o main -L$(MKLPATH) -I$(MKLINCLUDE) -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -L/opt/intel/compilers_and_libraries_2017.0.065/mac/compiler/lib -liomp5 -lpthread

Problem:

Mac Os Errro Dyld Library Not Loaded Rpath Libgfortran.3.dylib

Get runtime error:
like dyld: Library not loaded: @rpath/lib[mkl ipp]_x.dylib

Root Cause:
You did not set environment variables of MKL/IPP path or did not link your application to MKL/IPP path.

Library

Dyld 0x1 Library Missing

Solution:

Please add the path of lib<product>.dylib in system environment before run binary (The <product> could be 'mkl' or 'ipp'). There are two methods to realize the solution:

  • Run shell script file to set environment variables, for example, setting MKL:
    > /opt/intel/compilers_and_libraries_2017.*.***/mac/mkl/bin/mklvars.sh <ia32 intel64>
  • Or write command to set directly, for example, setting MKL:
    >
    export DYLD_LIBRARY_PATH='/opt/intel/compilers_and_libraries_2017.*.***/mac/mkl/lib:$DYLD_LIBRARY_PATH

In Xcode 7.3.1 Development Environment:
Click solution/application, select 'All' and 'Combined', then find 'Linking', add 'Runpath search path' like following:
/opt/intel/compilers_and_libraries_2017.*.***/mac/mkl/lib
/opt/intel/compilers_and_libraries_2017.*.***/mac/compiler/lib

If after set the MKL library and Compiler library, you still got the error dyld: Library not loaded: @rpath/libimp5.dylib,

Oct 28, 2019  Once you've imported your biggest library on your Mac, make sure iCloud Photo Library is turned on and syncing. You can do this by following these steps: Launch Photos on your Mac. Click Photos in the menu bar. Select Preferences (or do this quicker by pressing ⌘,). Jan 06, 2014  Yes, if both Macs are running the same iPhoto version and the Library is stored on a central storage (e.g. External disk or a server) then both clients can use the same iPhoto Library in turns I wouldn't recommend doing at the same time. Select the library you wish to use as your main library from the list, and then click the Choose Library button. 3) In the Photos app, select Preferences from the Photos menu. 4) Select the General tab. 5) The main library needs to be the System Photo Library. How to have the same photo library on two macs online. Feb 26, 2018  The third group is Mac users who have and use Photos. The fourth group needs multiple photo libraries. Here are two ways you can get and manage multiple Photos photo libraries on your Mac. First, if there is a scourge that existed on my Photos and iPhoto library for years, and exists on the new Photos, too, it’s photo duplicates. Apr 22, 2015  When you first set up Photos for Mac, it asks you to choose a library. This becomes your default library, or the System Photo Library in Apple's parlance. You might logically conclude that Photos always opens the System Photo Library unless otherwise instructed, but the app instead opens the Last Opened library.

please consider the solutions provided inhttps://software.intel.com/en-us/forums/intel-c-compiler/topic/698021

Library Not Loaded Rpath

or

adding -Wl,-rpath,@executable_path options to your build command line.

Before this solution, you must make sure you have already use Intel C++/Fortran compiler and set 'Header Search Path' and 'Library Search Path' and 'Other Link Flags'.
Learn more information about linking and compiling Intel MKL in Mac OS*, please see:
Compiling and linking MKL with Xcode*
How to link application against Intel MKL using XCode IDE

For more complete information about compiler optimizations, see our Optimization Notice.