在Unix上编译的Fortran程序是否可以在Linux上运行 [英] Will a Fortran program compiled on Unix run on Linux

查看:88
本文介绍了在Unix上编译的Fortran程序是否可以在Linux上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Unix或Linux没有任何经验,所以我需要一些帮助。我们有一些在Unix上编译的旧Fortran程序,我们不再拥有源数据。这些程序正在运行的Unix机器开始出现硬件问题,因此我们希望将程序迁移到新的Linux机器。有谁知道这些编译好的Fortran程序是否可以在Linux上运行?如果没有,我们还有其他选择,然后尝试找到翻新的Unix盒子吗?



谢谢,

I don't have any experience with Unix or Linux so I need some help. We have some old Fortran programs that were compiled on Unix that we no longer have the source data. The Unix box these programs are running on is starting to have hardware issues so we would like to migrate the programs to a new Linux box. Does anyone know whether these compiled Fortran programs will run on Linux? If not, do we have any other options other then to try to find a refurbished Unix box?

Thanks,

推荐答案

如果你只有可执行文件,那么我会说你不太可能让它在另一个盒子上运行:Unix不是一个独立于处理器的操作系统,所以可执行文件将是为在特定盒子上运行的特定Unix版本编译。



您可以尝试找到与您原来相同的翻新boix,但坦率地说这是一个非常好的,非常短期的解决方案 - 如果您的老人因年龄而死亡,很可能任何更换都是类似的一代,很可能会很快以相似的方式失败......



我建议您咬紧牙关并使用旧的可执行文件作为规范/基础,以更现代的语言重新创建软件,以获得更现代的平台。而这一次,请继续查看源代码!
If you only have the executable files, then I would say it is unlikely that you will get it to run on a different box: Unix was not a "processor independent" operating system, so the executable file will have been compiled for the particular version of Unix running on that particular box.

You can try to find a refurbished boix that is identical to your original, but frankly that is a very, very short term solution - if you old one has died due to age, it is very likely that any replacement will be of a similar generation and will probably fail in a similar way fairly soon...

I would suggest that you "bite the bullet" and get the software recreated in a more modern language for a more modern platform using the old executables as the specification / basis. And this time, hang on to that source code!


这篇关于在Unix上编译的Fortran程序是否可以在Linux上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆