Skip to main content
 首页 » 编程设计

matlab之Matlab在Linux上崩溃

2025年05月04日25davidwang456

我启动了“曲线拟合工具箱”,MATLAB崩溃了。这是Linux控制台中显示的内容:

OMP: Error #15: Initializing libiomp5.a, but found libiomp5.so already initialized.
OMP: Hint: This may cause performance degradation and correctness issues. Set environment variable KMP_DUPLICATE_LIB_OK=TRUE to ignore this problem and force the program to continue anyway. Please note that the use of KMP_DUPLICATE_LIB_OK is unsupported and using it may cause undefined behaviour. For more information, please contact Intel(R) Premier Support.
Killed



我尝试了 KMP_DUPLICATE_LIB_OK=TRUE无济于事。我知道这是静态库和动态库之间的冲突。有什么帮助吗?

请您参考如下方法:

我不知道您遇到的问题,但是可以通过 setenv function在Matlab中设置环境变量:

setenv('KMP_DUPLICATE_LIB_OK', 'TRUE');