我很难从源代码安装 OpenFoam。当我执行时,./Allwmake
我收到以下错误消息:
--add-needed 不受支持,但对于 libmpi.so 中的 libopen-rte.so.20 是必需的
我在论坛上搜索过类似的--add-needed
问题,但找不到任何有用的东西。这里有什么问题?
我很难从源代码安装 OpenFoam。当我执行时,./Allwmake
我收到以下错误消息:
--add-needed 不受支持,但对于 libmpi.so 中的 libopen-rte.so.20 是必需的
我在论坛上搜索过类似的--add-needed
问题,但找不到任何有用的东西。这里有什么问题?
A possible answer was given herein by 'Hisham':
The 'nixOS has two linker programs ld.bfd and ld.gold. ... (If) ld.gold (exists), the error occurs because the gold version does not support the --add-needed.
Check the type of linker that the system uses:
ls -l /usr/bin/ld*
If /usr/bin/ld.gold
exists, remove the following:
(sudo) rm /usr/bin/ld
sudo ln -s /usr/bin/ld.bfd /usr/bin/ld
Then proceed OpenFOAM installation.