我真的需要一些帮助。我正在尝试为我的论文编译和执行一些程序。
问题是,我以前从未使用过 Fortran,所以我盲目地依赖文档....它说使用一些命令来完成工作,特别是
setenv bc03 PATH TO SRC DIRECTORY
cd $bc03
source ./.bc_cshrc
所以,我安装了 Ubuntu 14.04(我在 Windows 上工作,这是另一个问题,我也是 Linux 新手),并在终端中使用了这些命令。
起初它没有工作,因为它无法识别 g77 命令,我按照教程安装 g77,再次启动“make all”命令,似乎它部分工作。据我所知,编译器在目录中创建了一堆 .o 文件,但是在编译 6 个主程序时
"make bin_ised ascii_ised vel_disp csp_galaxev add_bursts downgrade_resolution"
它给了我这些错误(我从意大利语翻译了一些部分)
make[1]: entering directory "/home/lews/Documenti/bc03/src"
g77 -ffixed-line-length-132 bin_ised.f ./public_utilities.a -o bin_ised
/usr/bin/ld: cannot find crt1.o: File o directory non esistente
/usr/bin/ld: cannot find crti.o: File o directory non esistente
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make[1]: *** [bin_ised] Errore 1
make[1]: leaving directory "/home/lews/Documenti/bc03/src"
make: *** [all] Errore 2
我有点迷失在这里,正如我告诉你的那样,我对 Fortran 和 Linux 都是新手,所以我真的想不通....感谢您的帮助!