External Email - Use Caution you can also use the python equivalent so you're not trying to run mex files
https://secure-web.cisco.com/1g8E_AOm3VXmhvpy6veMl40Kme1LNWWT1lb_WgkRyBt5Etmh-v8ma6TKJSQWDj5TH-KVfoGp0346fsQdTj15hy3nF8ALVxGteNWCIMe8wGmljgqEaDxSxez7d2aqs5WYVsvWzMc3YIBWkKtNAU42g8O1-JInDQ-eJeGMerRQF5XH57tiQuN6oU_SISkPIAS35OcQnQqvDZF6p5X-Um0DNA4TRZc6A6RCdgHChJgaRWz2OgkOMhNsXtiJpsVGYKOUwEjVkE1nVZDD4UGQTZmiixg/https%3A%2F%2Fsurfer.nmr.mgh.harvard.edu%2Ffswiki%2FSubregionSegmentation


On 6/27/2023 11:51 PM, fsbuild wrote:

        External Email - Use Caution


The  .mexa64 file is a matlab shared library and that error is from the linker saying it is not allowed to link in that library. Note that it did not say there was a permission denied error or that the .mexa64 file could not be found.   This Mathworks posting indicates that error can happen on systems when SElinux security is enabled,

https://secure-web.cisco.com/1yftjKDVsdxQxGr08a4yira7Ivxy7HBC7BtUKFou_BYbu3oNUAmyL2pU7YPFBstoD7QwdsTJsIIZHijZVMmJZJ_uEjLCsIsoQoEq0OElTNZ3dEZEkzZT520J74trD5358SUSo5T3DqWQjhtDFg4yCbkOKruh9XQu8ktttesJRg_JfxrJukYjG1yvPW7H1oPiHLa8XkMHkJh-RoUr9vtGFYPfpQo8aFMErPNM4uH6A7vrhsyfqkImzrmgLqd5Oq4pBnRWVBGq83otjcFexCjIniQ/https%3A%2F%2Fwww.mathworks.com%2Fmatlabcentral%2Fanswers%2F103108-why-do-i-get-an-error-when-running-the-mex-file-from-a-non-standard-location-on-selinux

This part of LD_LIBRARY_PATH looks like the standard setting after running fs_install_mcr script with the Matlab runtime environment installed in the freesurfer distribution.  I'm assuming accessing MALAB runtime environment this way is already known to work on your cluster and does not generate any run time linker errors.

LD_LIBRARY_PATH is 
.:/usr/local/freesurfer/7.1.1//MCRv84//runtime/glnxa64:/usr/local/freesurfer/7.1.1//MCRv84//bin/glnxa64:/usr/local/freesurfer/7.1.1//MCRv84//sys/os/glnxa64:/usr/local/freesurfer/7.1.1//MCRv84//sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/usr/local/freesurfer/7.1.1//MCRv84//sys/java/jre/glnxa64/jre/lib/amd64/server:/usr/local/freesurfer/7.1.1//MCRv84//sys/java/jre/glnxa64/jre/lib/amd64/client:/usr/local/freesurfer/7.1.1//MCRv84//sys/java/jre/glnxa64/jre/lib/amd64:/usr/local/freesurfer/7.1.1//lib/vtk/lib
- but the path to that .mexa64 file is not part of the standard LD_LIBRARY_PATH settings and looks like it is on some temporary mount point,

/tmp/MCR_65032579/.mcrCache8.4/segmen0/autofs/space/panamint_005/users/iglesias/software/freesurfer.GEMS2.terrier/bin/kvlGEMSMatlab.mexa64':
 
/tmp/MCR_65032579/.mcrCache8.4/segmen0/autofs/space/panamint_005/users/iglesias/software/freesurfer.GEMS2.terrier/bin/kvlGEMSMatlab.mexa64

- so I'm guessing there is some system and/or security setting that does not allow loading 3rd party libraries from paths like that.   I would ask your IT folks about it.  I could be wrong, but if kvlGEMSMatlab.mexa64 needed to be re-compiled to run on your system, then I would expect to see a different error.
-R.


On 6/27/23 22:08, Mengjie Huang (mhua0...@uni.sydney.edu.au) wrote:

Invalid MEX-file 
'/tmp/MCR_65032579/.mcrCache8.4/segmen0/autofs/space/panamint_005/users/iglesias/software/freesurfer.GEMS2.terrier/bin/kvlGEMSMatlab.mexa64'
 : failed to map segment from shared object: Operation not permitted




_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://secure-web.cisco.com/1GDSwnptdF51FegmhS1Lz3CLFFpE8WZulnNinFin67IJpXCUdoDH7SEs-dlQvAfAoDFV0dbXard5IVf-9zjsFNWxPut1q2AqGhMAKkuJlggV-8yZ9voFmrr-R0eIxxhxdg94cctfSl4llu8zGqHULQ-382cGUZGzkePqXbEccWgVoSj6-4qeHnjk8wHkJRjy-ahh3h2BNRwMcsMVyadfTH1m0bee3hvNAB6ZUu24VFwfoSPYQoIl5fqRZNo7jR0IkqZ84eShN9ZTCdQcWgKsfGw/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
The information in this e-mail is intended only for the person to whom it is 
addressed.  If you believe this e-mail was sent to you in error and the e-mail 
contains patient information, please contact the Mass General Brigham 
Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline 
<https://www.massgeneralbrigham.org/complianceline> .
Please note that this e-mail is not secure (encrypted).  If you do not wish to 
continue communication over unencrypted e-mail, please notify the sender of 
this message immediately.  Continuing to send or respond to e-mail after 
receiving this message means you understand and accept this risk and wish to 
continue to communicate over unencrypted e-mail. 

Reply via email to