CygWin下如何安装IFort?9.1

来源:百度文库 编辑:神马文学网 时间:2024/04/27 16:37:33

CygWin下如何安装IFort?9.1 [原文地址]

分类: 未分类 | 修改 | 删除 | 推荐到分类 | 2010-01-07 21:34:04

人工解决电脑问题,7x24小时专业在线服务

想要在Cygwin给出的Linux系统下安装Intel Fortran 9.1。应该是IFort9.1 for Linux版,但安装时找不到Cygwin的root 目录,该怎么办。有安装成功的吗,共享一下经验。还是直接安装IFort9.1 for Window呢?
谢谢。




在cygwin下装intel fortran 9.1,我想应该是现装上cygwin,然后在cygwin下运行intel的安装脚本install.sh

=============================================

我装过pgi fortran 7.0.4 for Windows,就是自带cgywin,不妨玩玩。http://www.pgroup.com/


谢谢你的回复。
现在的问题是,如果选用Ifort 9.1for linux来安装到Cygwin下,Cygwin没有根目录等,无法安装而退出来了。如果选Ifort9.1 for Window,就不是在Cygwin下用了。


Ifort9.1 for Window不需要cygwin,但需要MS Visual Studio 2005


直接在windows下装Intel Fortran 9.1,然后设置好环境变量(安装时候就有提示),那么在cygwin的环境也也能使用了。


CygWin下如何安装IFort 9.1???


"直接在windows下装Intel Fortran 9.1,然后设置好环境变量(安装时候就有提示),那么在cygwin的环境也也能使用了。"
这个怎么弄呀???




CygWin下如何安装IFort 9.1???


"直接在windows下装Intel Fortran 9.1,然后设置好环境变量(安装时候就有提示),那么在cygwin的环境也也能使用了。"
这个怎么弄呀???




没人设置成功吗?


在Windows下安装ifort,可以
但是在Cygwin下无法用啊
"直接在windows下装Intel Fortran 9.1,然后设置好环境变量(安装时候就有提示),那么在cygwin的环境也也能使用了。"
这句话怎么设置?安装时候没给提示啊!


他们的处理办法是在Windows下安装intel fortran for windows,经过某些设置即可在Cygwin下使用ifort
怎么设置呢? 水看懂了,给回复一下
http://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/52955/


1.install intel fortran for windows
2. install cygwin
3. try to compile program in cygwin by : ifort *.f90


这是cygwin网站关于cygwin的说明:

What Is Cygwin?
# Cygwin is a Linux-like environment for Windows. It consists of two parts: A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing substantial Linux API functionality.
# A collection of tools which provide Linux look and feel.

The Cygwin DLL currently works with all recent, commercially released x86 32 bit and 64 bit versions of Windows, with the exception of Windows CE.

Note that the official support for Windows 95, Windows 98, and Windows Me will be discontinued with the next major version (1.7.0) of Cygwin, which is in beta testing right now.

What Isn't Cygwin?
# Cygwin is not a way to run native linux apps on Windows. You have to rebuild your application from source if you want it to run on Windows.
# Cygwin is not a way to magically make native Windows apps aware of UNIX ?? functionality, like signals, ptys, etc. Again, you need to build your apps from source if you want to take advantage of Cygwin functionality.

显然ifort for linux是不能通过cygwin在windows下运行的,除非重新编译ifort,显然没有源代码也是不行。

ifort for windows运行时需要微软的vs的运行库,与cygwin提供的类linux api是否能协同工作需要仔细分析并试过才知道。为什么不用gfortran? gfortran可以完美在cygwin下运行,并能编译大部分linux下的源代码。


感谢大家回复
有gfortran,我要在Cygwin下安装一软件,但它需要ifort (不知能否更改一下使其可以用ifort?)

Cygwin不是Linux,还正在发展完善
要装个正规Linux用,免得出现各种问题

我在Windows下安装了intel fortran for windows , ifort one.f90 通过
但在Cygwin下,ifort *.f90 出现
$ ifort one.f90
-bash: ifort: command not found

现在的问题是 怎样设置一些东西使得在 Cygwin下可以 ifort


感谢大家回复
有gfortran,我要在Cygwin下安装一软件,但它需要ifort (不知能否更改一下使其可以用gfortran?)

Cygwin不是Linux,还正在发展完善
要装个正规Linux用,免得出现各种问题

我在Windows下安装了intel fortran for windows , ifort one.f90 通过
但在Cygwin下,ifort *.f90 出现
$ ifort one.f90
-bash: ifort: command not found

现在的问题是 怎样设置一些东西使得在 Cygwin下可以 ifort



把ifort的可执行文件目录加到cygwin的搜索路径就可以找到了。
export PATH=/cygwin/c/ifort/bin:$PATH
/cygwin/c/ifort/bin只是举例,实际路径要按你的机器来改。


按照楼上的操作,进行了设置。在Cygwin下键入 ifort ,通过;但ifort one.f90 却出现link的错误
注:在Windows下的ifort命令行 中 ifort one.f90 是可以编译的


Fairy@OFFICE /test_ifort
$ ls
one.f90

Fairy@OFFICE /test_ifort
$ ifort
Intel(R) Visual Fortran Compiler Professional for applications running on IA-32, Version 11.1 Build 20090624 Package ID: w_cprof_p_11.1.038
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
30 DAY EVALUATION LICENSE

ifort: NOTE: The evaluation period for this product ends on 16-sep-2009 UTC.
ifort: command line error: no files specified; for help type "ifort /help"

Fairy@OFFICE /test_ifort
$ ifort one.f90
Intel(R) Visual Fortran Compiler Professional for applications running on IA-32, Version 11.1 Build 20090624 Package ID: w_cprof_p_11.1.038
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.

link: invalid option -- o #此处怎么解决呢??
Try `link --help' for more information.

Fairy@OFFICE /test_ifort
$


http://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/67807/
http://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/67703/page/1/#93039
“Quoting - jweyant74
1) How do I compile visual based fortran programs from cygwin command line?

2) What is the path for ifort?


It requires all the paths normally set for ifort, so the simple way is still to open the ifort command prompt window. Then, if you wish to have cygwin available as well, run the same cygwin.bat command as you see in the cygwin shortcut. In order to avoid having the cygwin link take precedence over the Microsoft one, fill in the Microsoft linker directory path in ifort.cfg. All explained at greater length in past posts.




设置了可执行文件的路径,你还需要设置库文件、包含文件的路径等等。即使都设置正确在cygwin下能否正确编译也还是未知数。因为windows下的库与linux下有区别。


关于本站 - 网站导航 - 广告服务 - 联系站长 - BUG报告 - 友情链接 - 赞助本站
Copyright(c) 1999-2008 Programfan.com. All Rights Reserved
论坛制作&维护:Hannibal Email: [url=mailto:webmaster@pfan.cn]webmaster@pfan.cn[/url]
最佳浏览效果:IE6.0+ 或 FireFox 1.5+ 分辨率:1024*768

 

  

返回顶部