我是初学者我需要你的帮助。我使用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 .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
发布于 2019-11-03 16:22:24
我认为编译此软件的任何问题如下:
sudo apt-get install git build-essential gfortran \
liblapack-dev libglu1-mesa-dev freeglut3-dev
cd ~/Downloads
git clone https://gitlab.com/anthonyjs/orient.git
cd orient
make
编译后,它将正常运行:
$ ./bin/orient
ORIENT version 5.0.09 (4d48c82)
by
Anthony Stone
with contributions from
Andreas Dullweber, Ola Engkvist, Elena Fraschini, Matt Hodges,
Andy Meredith, David Nutt, Paul Popelier and David Wales
Compiled with gfortran on 03 November 2019 at 19:21:08
Starting at 19:21:51 on 3 Nov 2019
Parameters for this version:
Maximum rank of multipole moments: 5
Maximum rank of polarizabilities: 4
您可能缺少一些依赖项。
https://askubuntu.com/questions/1185860
复制相似问题