1

我很难从源代码安装 OpenFoam。当我执行时,./Allwmake我收到以下错误消息:

--add-needed 不受支持,但对于 libmpi.so 中的 libopen-rte.so.20 是必需的

我在论坛上搜索过类似的--add-needed问题,但找不到任何有用的东西。这里有什么问题?

4

1 回答 1

0

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.

于 2018-04-19T20:24:53.847 回答