我现在用的系统是14.04,安装了gfortran编译器。终端输入gfortran -v后显示:
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
应该是已经安装好了。
但是我在终端输入gfortran结果显示:
gfortran: fatal error: no input files
compilation terminated.
这是为什么呀!我在编译其他软件的时候直接结束了。愁死了,希望各位大虾帮忙。
gfortran编译出现问题
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 19
- 注册时间: 2014-04-13 18:38
- 系统: ubuntu 13.04
-
- 帖子: 19
- 注册时间: 2014-04-13 18:38
- 系统: ubuntu 13.04
Re: gfortran编译出现问题
poloshiao,
还是一样的效果。
还是一样的效果。
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: gfortran编译出现问题
抱歉
我已先刪除上面的貼文
才看到你的貼文
Ubuntu 14.04 的 gcc 目前是 4.8.2-1ubuntu6
2. http://packages.ubuntu.com/search?suite ... ds=postfix
Ubuntu 14.04 的 gfortran 目前是 4.8.2-1ubuntu6
3. 你的 4.8.2-19ubuntu1 從哪裡安裝 ?
4. gfortran 指令格式及參數 參見
http://manpages.ubuntu.com/manpages/tru ... ran.1.html
gfortran - GNU Fortran compiler
4-1. The gfortran command supports all the options supported by the gcc command.
5. gcc 指令格式及參數 參見
http://manpages.ubuntu.com/manpages/tru ... gcc.1.html
gcc - GNU project C and C++ compiler
我已先刪除上面的貼文
才看到你的貼文
我现在用的系统是14.04
1. http://packages.ubuntu.com/search?suite ... chon=namesgcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
Ubuntu 14.04 的 gcc 目前是 4.8.2-1ubuntu6
2. http://packages.ubuntu.com/search?suite ... ds=postfix
Ubuntu 14.04 的 gfortran 目前是 4.8.2-1ubuntu6
3. 你的 4.8.2-19ubuntu1 從哪裡安裝 ?
4. gfortran 指令格式及參數 參見
http://manpages.ubuntu.com/manpages/tru ... ran.1.html
gfortran - GNU Fortran compiler
4-1. The gfortran command supports all the options supported by the gcc command.
5. gcc 指令格式及參數 參見
http://manpages.ubuntu.com/manpages/tru ... gcc.1.html
gcc - GNU project C and C++ compiler
-
- 帖子: 893
- 注册时间: 2011-02-14 17:46
Re: gfortran编译出现问题
gfortran后面接你要编译的文件名
不然当然会说没输入文件
不然当然会说没输入文件
- 月下叹逍遥
- 论坛版主
- 帖子: 33994
- 注册时间: 2010-10-07 14:23
- 系统: Archdows10
- 来自: 某系某星某洲某国某省某市
- 联系:
-
- 帖子: 2148
- 注册时间: 2012-12-16 15:43
- 系统: debian
Re: gfortran编译出现问题
一点英文都不会真搞不到是怎么用linux怎么编程的
-
- 帖子: 1
- 注册时间: 2016-04-14 20:05
- 系统: 14.04
Re: gfortran编译出现问题
楼主,我在14.04下怎么都装不上gfortran,总提示有未满足的依赖关系,你是怎么装的啊?