MTEX 6.1.0 installation on Linux #2484
Replies: 7 comments 2 replies
-
|
Hi João
Yesterday I installed mtex on Linux Ubuntu (Gnome) with matlab 2025b and worked fine, can you share the errors?
The tricks that are you talking about are more related to Mac OS, but even those problems are mostly solved now in the new releases, but if you want you can have a look here
https://mtex-toolbox.github.io/installation
cheers
Luiz
… On 18 Dec 2025, at 14:56, João Quinta da Fonseca ***@***.***> wrote:
I am having trouble running MTEX on Linux. I have tried 3 different boxes (Fedora and UBUNTU) with slightly different, but similar results. In cases this seems to be due to the mex files not running properly. I have tried the commands in mtex to recompile them (mex_install) but this fails for jcvvoronoi and doesn't seem to recompile nfftmex, which is what actually is causing the crashes at the moment. Browsing through the forum, I see several references to "mex tricks" and workarounds, but couldn't find them. Can anyone point me to the location of some of these tricks so I can try them out? Thanks
—
Reply to this email directly, view it on GitHub <#2484>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ALE5IN36NQZ222XPRIHIBD34CKW7XAVCNFSM6AAAAACPN24VQOVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZZGI3DANBYG4>.
You are receiving this because you are subscribed to this thread.
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks, Luiz. I get the furthest with Ubuntu, it installs OK without errors, but when I to use |
Beta Was this translation helpful? Give feedback.
-
|
does the mtex installation goes through fine or do you have errors?
you could try to compile the mex files again, navigate to the mtex folder inside matlab and do
mex -setup
mex -setup C++
for example
then to startup_mtex again and see if that works
cheers
Luiz
… On 18 Dec 2025, at 17:04, João Quinta da Fonseca ***@***.***> wrote:
Thanks, Luiz. I get the furthest with Ubuntu, it installs OK without errors, but when I to use calcDensity for example I get: Invalid MEX-file '/home/mclsvjq2/mtex-6.1.0/mex/wignerTrafoAdjointmex.mexa64':/lib/x86_64-linux-gnu/libgomp.so.1: cannot allocate memory in static TLS block
—
Reply to this email directly, view it on GitHub <#2484 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ALE5IN3SDKR4X4MNSDMQ2QL4CLF7VAVCNFSM6AAAAACPN24VQOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMRZGEYDEMY>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
|
No installation seems to happen OK, but if I run Doing 'mex_install' doesn't seem to help |
Beta Was this translation helpful? Give feedback.
-
|
Hi Rüdiger,
a) so did you try mex_install('force')?
I did and I have different results on Ubuntu and fedora.
On Ubuntu it seems to work but then when I run check_mex I get the
message above.
On fedora, it compiled but it didn't seem to compile the nfftmex file,
it seemed to download it from somewhere.
Then when I try check_mex I get a core dump and the trace says it was
caused by nfftmex.mexa64
b) How do you start Matlab? Just taking $MATLABPATH/bin/matlab or do
you LD_PRELOAD some system libraries?
I have tried just Matlab and with preloading /usr/lib64/libstdc++.so.6
( /usr/lib/x86_64-linux-gnu/libstdc++.so.6 on ubuntu), no difference.
Everyone I have spoken to has had no problems installing mtex, and I
can run it from a container someone else has installed it in. But
directly on my machines I am struggling.
I will keep plugging away, thanks for trying to help.
João
|
Beta Was this translation helpful? Give feedback.
-
|
No but that's a good shout. I will try.
João
…On Mon, 2025-12-22 at 02:16 -0800, Rüdiger Kilian wrote:
Have you tried to LD_PRELOAD libgomp as well?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID:
<mtex-toolbox/mtex/repo-
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Hi João, I hope this helps, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am having trouble running MTEX on Linux. I have tried 3 different boxes (Fedora and UBUNTU) with slightly different, but similar results. In cases this seems to be due to the mex files not running properly. I have tried the commands in mtex to recompile them (
mex_install) but this fails forjcvvoronoiand doesn't seem to recompilenfftmex, which is what actually is causing the crashes at the moment. Browsing through the forum, I see several references to "mex tricks" and workarounds, but couldn't find them. Can anyone point me to the location of some of these tricks so I can try them out? ThanksBeta Was this translation helpful? Give feedback.
All reactions