AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[fortran](ubuntu)

Martin Hope
Kratos_GoS
Asked: 2020-10-08 07:47:47 +0800 CST

makedepf90:为 Fortran 源代码自动创建 Makefile 样式依赖列表的程序

  • 0

我以为安装这个程序只需几秒钟,但老实说它让我感到困惑。该程序用于为 Fortran 源代码自动创建 Makefile 样式的依赖项列表。

我按照指南进行操作,但“./configure [options]”步骤不起作用,开发人员说了一些话以某种方式修复此错误,但我不够专业,不知道“ tweaking ”是什么意思。我试图按照这个自述文件的第 50-66 行作为解决方案,但没有运气: https ://github.com/outpaddling/makedepf90/blob/master/readme

程序: https ://github.com/outpaddling/makedepf90

有救人吗???

和平

software-installation makefile fortran
  • 1 个回答
  • 133 Views
Martin Hope
Adrian Barbuio
Asked: 2020-09-27 06:57:49 +0800 CST

无法在 ubuntu 20.04 上为 gfortran 安装 open-coarrays-bin

  • 1

我一直在尝试使用以下命令从这里安装 opencoarrays:

sudo apt-get update -y
sudo apt-get install -y open-coarrays-bin

似乎每个其他 Ubuntu 版本都可以正常工作。正如问题标题中提到的,我正在运行 Ubuntu 20.04,这似乎是这个包的一个问题,因为它不存在。运行上面的代码给出:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package open-coarrays-bin

有谁知道如何在 Ubuntu 20.04 上安装 OpenCoarrays?

apt fortran 20.04
  • 1 个回答
  • 524 Views
Martin Hope
Ria Dunn
Asked: 2020-08-24 15:02:05 +0800 CST

如何为 fortran 安装 ygraph?

  • 1

所以我刚刚开始使用 Ubuntu,并且需要将 fortran 用于我正在从事的项目。我被告知要安装 ygraph,但是当我尝试使用

$ sudo apt-get update
$ sudo apt-get install ygraph

它找不到'ygraph'

我得到了安装编译代码的建议,但老实说,我对计算机一无所知,我无法从谷歌找到这意味着什么。

请帮忙,不要担心“过度解释”,因为我需要它。

software-installation fortran
  • 1 个回答
  • 67 Views
Martin Hope
Ninja
Asked: 2020-06-08 09:48:42 +0800 CST

如何在 ubuntu 20.04 上安装 gfortran-4.6 或 gcc-4.6

  • 1

我最近将我的工作计算机升级到了 ubuntu 20.04,并且我的代码特别需要 gfortran-4.6 才能运行。如何在最新的 gfrotran 旁边安装 gfortran-4.6 或作为运行 gfortran-4.6 的单独用户同时仍然拥有运行较新 gfortran 的用户帐户?我之前通过安装较旧的 ppa 存储库找到了解决此问题的方法,但那是几年前的事了,我无法通过搜索互联网找到有关它的信息。

gcc fortran 20.04
  • 2 个回答
  • 2270 Views
Martin Hope
Tejas Shetty
Asked: 2020-03-02 03:29:25 +0800 CST

mpif.h 未找到错误 [安装 openmpi]

  • 2

我试图在 ubuntu 上安装 openpi。我有一个 Ubuntu 18.04.4 LTS(64 位)桌面。我使用安装了openmpi

sudo apt-get install openmpi-bin openmpi-common openmpi-doc libopenmpi2 libopenmpi-dev openssh-client openssh-server

然后,在 .bashrc 中,我添加了以下两行:

echo export PATH="$PATH:/home/$USER/.openmpi/bin" >> /home/$USER/.bashrc

回声导出 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/$USER/.openmpi/lib/" >> /home/$USER/.bashrc

之后我用dartmouth hello world mpi 写了一个小程序,编译运行,通过输入检查openmpi安装是否OKgfortran ubuntu.f90

这导致以下错误

ubuntu.f90:2:错误:无法打开包含的文件“mpif.h”

ubuntu.f90 中的代码:

program hello
include 'mpif.h'
integer rank, size, ierror, tag, status(MPI_STATUS_SIZE)

call MPI_INIT(ierror)
call MPI_COMM_SIZE(MPI_COMM_WORLD, size, ierror)
call MPI_COMM_RANK(MPI_COMM_WORLD, rank, ierror)
print*, 'node', rank, ': Hello world'
call MPI_FINALIZE(ierror)
end

我已尝试按照此问题的答案安装 libblacs-mpi-dev。这个问题似乎无关紧要。

mpi fortran
  • 1 个回答
  • 2018 Views
Martin Hope
Tejas Shetty
Asked: 2020-03-02 02:39:40 +0800 CST

如何在 Ubuntu 上安装 fortran?[复制]

  • 2
这个问题在这里已经有了答案:
如何安装 gfortran? (1 个回答)
2年前关闭。

所以,我刚刚开始学习 Fortran 编程。我是编程的新手。我对 Ubuntu 的经验很少。在 Ubuntu 上安装 Fortran 的推荐方法是什么?

fortran
  • 3 个回答
  • 12514 Views
Martin Hope
Ken
Asked: 2019-11-04 02:43:58 +0800 CST

如何解决这个错误?(collect2:致命错误:找不到'ld')

  • 2

我是初学者,我需要你的帮助。我使用 Ubuntu18.04 并想安装 Orient 包进行分子计算。 https://gitlab.com/anthonyjs/orient 使用 gfortran 编译器编译时出现此错误。

gfortran -o orient-5.0.09 -L/home/src/Mesa-6.2.1/lib64 -L/usr/lib/x86_64-linux-gnu  -L/usr/lib \
         -static-libgfortran -static-libgcc <something>.o -llapack -lblas -lpthread -lgfortran -lc -lglut -lGL -lGLU -lX11 -lm

collect2: fatal error: cannot find 'ld' compilation terminated.

我认为这表明用于编译的链接器无法正常工作。但是,尽管我研究了类似错误的问题,但我不知道下一步该怎么做。

感谢您的意见。


让我补充一些信息。

$ gfortran --version
GNU Fortran (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ gfortran--print-prog-name=ld
ld

$ type -a ld
-bash: type: ld: not found
compiling make fortran
  • 1 个回答
  • 2258 Views
Martin Hope
Shaimaa Mostafa
Asked: 2019-07-04 04:00:17 +0800 CST

如何共享 PATH?

  • 0

我使用以下命令在 Ubuntu 19.04 上安装 g77 编译器:

sudo gedit /etc/apt/sources.list   

然后在该文件的底部添加:

deb [trusted=yes] old-releases.ubuntu.com/ubuntu hardy universe   
deb-src [trusted=yes] old-releases.ubuntu.com/ubuntu hardy universe 
deb [trusted=yes] old-releases.ubuntu.com/ubuntu hardy-updates universe 
deb-src [trusted=yes] old-releases.ubuntu.com/ubuntu hardy-updates universe

然后:

sudo apt update
sudo apt install g77

我也试过:

sudo apt update 
sudo apt install fort77 gfortran 

使用“make”命令安装HypoDD双差震源定位程序时,出现以下行:

/usr/bin/ld: cannot find crt1.o: No such file or directory 
/usr/bin/ld: cannot find crti.o: No such file or directory 

使用此命令时:

find /usr/ -name crti*

我发现这些文件存在于以下路径中:

/usr/libx32/crti.o
/usr/mipsel-linux-gnu/lib/crti.o
/usr/lib32/crti.o
/usr/lib/x86_64-linux-gnu/crti.o

如何解决此问题以运行“make”命令?

paths make fortran 19.04
  • 1 个回答
  • 232 Views
Martin Hope
Shaimaa Mostafa
Asked: 2019-06-30 15:35:20 +0800 CST

如何在 Ubuntu 19.04 上安装 g77?

  • 5

我刚刚下载了 Ubuntu 19.04。我想安装一个需要 g77 编译器才能运行的程序。我按照在 Ubuntu >=14.04 上安装 G77 中解释的说明进行操作,但是在输入命令时

sudo apt install g77

出现错误:

E: Package 'g77' has no installation candidate

我该如何解决这个问题?

software-installation apt gcc fortran 19.04
  • 1 个回答
  • 5379 Views
Martin Hope
SANDIPAN DAWN
Asked: 2019-02-15 04:04:22 +0800 CST

Ubuntu 18.04 中的 gfortran 7.4 升级

  • 1

我在 Ubuntu 18.04 中使用 gfortran 7.3。现在其中一个软件代码 (FLUKA-CERN) 需要 gfortran 7.4 才能运行。如何在 Ubuntu 18.04 中升级 gfortran 7.4 或更高版本 8.2。

gcc 18.04 fortran
  • 1 个回答
  • 965 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve