Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    求助 编译后出现“/usr/bin/ld:无法打开输出文件 /opt/openfoam4 ”如何处理

    OpenFOAM
    3
    4
    560
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      as_me last edited by

      请问 有人编译遇到过这个问题?先谢谢了
      2020-07-05 22-15-34屏幕截图.png

      1 Reply Last reply Reply Quote
      • 李东岳
        李东岳 管理员 last edited by

        你没有opt文件下面的写入权限。https://askubuntu.com/questions/642744/read-write-permissions-in-opt-directory

        CFD课程 改成线上了 http://dyfluid.com/class.html
        CFD高性能服务器 http://dyfluid.com/servers.html

        1 Reply Last reply Reply Quote
        • bestucan
          bestucan 版主 副教授 last edited by

          估计你的源代码是用apt下载的,或者是哪位大佬的祖传代码,所以默认安装位置改成了/opt。

          各种教程的编译安装位置基本都在$HOME\OpenFOAM,不会有权限问题。
          调整 OpenFOAM 的安装位置还是挺麻烦的。

          滚来滚去……~(~o ̄▽ ̄)~o 滚来滚去都不能让大家看出来我不是老师么 O_o

          异步沟通方式(《posting style》from wiki)(下载后打开):
          https://www.jianguoyun.com/p/Dc52X2sQsLv2BRiqnKYD
          提问的智慧(github在gitee的镜像):
          https://gitee.com/bestucan/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md

          1 Reply Last reply Reply Quote
          • A
            as_me last edited by

            @东岳 @bestucan 谢谢两位老师,我把自己打算编译的东西添加到$FOAM_USER_APPBIN路径下了。下次安装openfoam的时候再注意这个问题吧。

            1 Reply Last reply Reply Quote
            • First post
              Last post

            CFD中文网 | 东岳流体 | 京ICP备15017992号-2