MATLAB Answers


Why do I get an error when running the MEX file from a non standard location on SELinux?

MathWorks Support Team さんによって質問されました 2010 年 11 月 22 日
最新アクティビティ Dmytro Lituiev さんによって 編集されました 2015 年 3 月 10 日
If you call a mex file from a non-standard location such as an external drive on SELinux, the following error is generated:
??? Invalid MEX-file '/media/sda3/.../timestwo.mexglx':
/media/sda3/.../timestwo.mexglx: failed to map segment from shared
object: Operation not permitted.




2 件の回答

回答者: MathWorks Support Team 2010 年 11 月 22 日

This issue is specific to bad device loading on SELinux.
As a workaround, copy the MEX file from the non standard location to a standard location such as a subdirectory in your home folder and try loading the MEX file from there.

  0 件のコメント

サインイン to comment.

回答者: Dmytro Lituiev 2015 年 3 月 10 日
編集済み: Dmytro Lituiev 2015 年 3 月 10 日

For me removing 'users' option in `/etc/fstab` worked:
sudo umount [your disk location]
sudo gedit /etc/fstab
In order to have read, write, and exec rights, I put following line:
UUID="..." [your disk location] ntfs-3g nls=iso8859-1,uid=1001,umask=0000,defaults,auto,permissions 0 0
It is crucial to remove `users` from this line. Then run:
sudo mount [your disk location]
And it is fixed.

  0 件のコメント

サインイン to comment.

Translated by