Questions tagged «fortran»

5
Bash:./filename:无法执行二进制文件
我无法在32位ubuntu 11.10中执行fortran编译代码。 错误消息是 bash: ./filename : Cannot execute binary file. 我也安装了gcc和gfortran库。 有人可以帮忙吗? $ file um um: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped

3
如何安装Fortran 77编译器?
我刚刚在笔记本电脑上安装了12.04 LTS,这有点新。我需要用Fortran 77编写一些程序,并且需要Fortran 77编译器。我已经尝试按照Ubuntu网站中的说明安装g77,但无法执行。我在终端中输入了以下内容: sudo apt-get install g77 并获得以下信息: Reading package lists... Done Building dependency tree Reading state information... Done Package g77 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source …

4
找不到-lgfortran
我正在尝试在R中安装一个软件包(软件包“ ks”)。它失败,并显示错误消息: /usr/bin/ld: cannot find -lgfortran 我已经安装了Ubuntu软件包build-essential: sudo apt-get install build-essential 我也尝试添加符号链接: sudo ln -s /usr/lib/x86_64-linux-gnu/libgfortran.so.3 /usr/lib/libgfortran.so sudo ln -s /usr/lib/libgfortran.so.3.0.0 /usr/lib/libgfortran.so sudo ldconfig 我经常使用gcc和g ++,但还没有理由使用gfortran。 我在gcc-4.7(http://ubuntuforums.org/showthread.php?t=2123821)上见过其他人遇到此问题,所以我想知道这是否来自手动安装gcc-4.7。我跟着从接受的答案在这里的配方在这里,在这里在这里。 运行lsb_release -a打印 Ubuntu 12.04.2 LTS 和运行uname -r打印 3.2.0-39通用Pae 谁能提供建议,为什么ld不起作用?
12 compiling  gcc  fortran  ld 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.