简体   繁体   English

安装报错:编辑Linux编译文件

[英]Installation error: editing Linux compile file

I am trying to install a hydrodynamic simulation software on Ubuntu, but I get an error similar to the error mentioned in their documentation.我正在尝试在 Ubuntu 上安装一个流体动力学模拟软件,但我得到了一个类似于他们文档中提到的错误的错误。 The documentation has a recommended solution to this error, something that I am not aware of how to fix.该文档有针对此错误的推荐解决方案,我不知道如何修复。

在此处输入图像描述

Any help is greatly appreciated.任何帮助是极大的赞赏。 Thanks!谢谢!

As part of the installation, the system must compile some code to work on that machine.作为安装的一部分,系统必须编译一些代码才能在该机器上运行。 The line that starts with "gcc" is a compiler command.以“gcc”开头的行是编译器命令。 You will need to find the "x.sys.Linux.compile" file and add the -fPIC flag to the command that -presumably- is already in that file.您将需要找到“x.sys.Linux.compile”文件,并将 -fPIC 标志添加到可能已经在该文件中的命令中。

I would use the command我会使用命令

find . | grep x.sys.Linux.compile

to find it and then use vim to modify it, adding that -fPIC flag找到它然后使用 vim 修改它,添加那个 -fPIC 标志

Then, retry the installation然后,重试安装

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM