Closed gmisha59 closed 3 years ago
Dear @gmisha59,
thanks for taking the time to report this issue. I will just write a short message here for now, hopefully I can help fix it better on Monday during working hours (CET).
Looking at the reported problem (code signature in (libcef_maci64.dylib) not valid for use in process using Library Validation: library load disallowed by system policy
) it appears to be related to Apple's Mac OS protection. This is preventing execution of compiled binary code and compiled libraries which comes from the internet.
It appears to be fixable in a few ways:
1) Disable the protection (quarantine) for this library file. One google search lead me to https://forum.blackmagicdesign.com/viewtopic.php?f=12&t=106755 which describes the command required as, in your case:
sudo xattr -d com.apple.quarantine /Users/gedalin/irfu-matlab-master/contrib/libcef/libcef_maci64.dylib
or
2) Disable the loading of this library (if your intended usage of irfu-matlab does not require the libcef library, used for Cluster Exchange Format/CEF files), simply comment out the line in question in your local downloaded copy of irf.m#L42. This should prevent trying to load the library in question , however may result in a similar error appearing for loading other libraries (mice, irbem, etc.) which were not reached the first time you ran irf;
.
or
3) Compile the code yourself in the https://github.com/irfu/irfu-matlab/tree/master/contrib/libcef directory. (Download from http://ceflib.irap.omp.eu/page=download).
With best regards,
Thomas Nilsson
Dear @gmisha59,
I have made one change to the latest development version of our code (available https://github.com/irfu/irfu-matlab/tree/devel), which should no longer result in a crash for a failure to load the libcef_maci64.dylib
file. This change will be included in our next release of irfu-matlab.
I will close this issue here and now. You can download the development version as a zip here: https://github.com/irfu/irfu-matlab/archive/devel.zip, or preferably I would suggest you use the git clone feature so you could easily update it with the latest code using a simple git pull
command.
If you still experience problems feel free to get back to us.
With best regards,
Thomas Nilsson
Step 1: Latest code?
Step 2: Describe your environment
Step 3: Describe the problem
Expected behavior
irf run complete
Actual behavior
Relevant code:
Error in cefinit (line 6) loadlibrary (['libcef' lower(computer)], @libcef_mfile,'alias','libcef')
Error in irf (line 234) cef_init();
Error in irf (line 42) irf('ceflib');
Caused by: Error using loaddefinedlibrary dlopen(/Users/gedalin/irfu-matlab-master/contrib/libcef/libcef_maci64.dylib, 6): no suitable image found. Did find: /Users/gedalin/irfu-matlab-master/contrib/libcef/libcef_maci64.dylib: code signature in (/Users/gedalin/irfu-matlab-master/contrib/libcef/libcef_maci64.dylib) not valid for use in process using Library Validation: library load disallowed by system policy