Tuesday, July 02, 2013

Mex files in Matlab for linux: failed to map segment from shared object: Operation not permitted

This happens when you have no permissions to execute given file or library. In my case it was happening because I was trying to run mex files using Matlab for linux that were located in NTFS partition. Often the partition is mounted in linux without exec arguments. To fix it, I edited my /etc/fstab file and aded exec argument to the line responsible for mounting NTFS partition:

UUID=F4B664646C02A51D /mnt/c ntfs users,defaults,exec 0 0

No comments:

Post a Comment