How do I install gfortran (via cygwin and etexteditor) and enable ifort under Windows XP?
I'm a newbie in the Unix world so all this is a little confusing to me. I'm having trouble compiling some Fortran files under Cygwin on Windows XP.
Here's what I've done so far:
- Installed the e text editor.
- Installed Cygwin via the "automatic" option inside e text editor.
- I need to compile some Fortran files so via the "manage bundles" option I installed the Fortran bundle as well.
However, when I select "compile single file" I get an error saying gfortran
was missing, and then that I need to set the TM_FORTRAN
variable to the full path of my compiler.
I tried opening a Cygwin bash shell at the path mentioned (.../bin/gfortran), but the compiler was nowhere to be found.
Can someone tell me how to install this from the Cygwin command line? Where do I need to update the TM_FORTRAN
variable for the bundle to work?
Also, how do I change the bundle "compile" option to work with ifort
(my native compiler) on Windows? I've read the bundle file, but it is totally incomprehensible to me. Ifort is a Windows compiler, invoked simply by ifort filename.f90
, since it is on the Windows path.
I know this is a lot to ask of a first time user here, but I really would appreciate any time you can spare to help.
windows windows-xp cygwin
migrated from stackoverflow.com Jan 15 '12 at 3:46
This question came from our site for professional and enthusiast programmers.
add a comment |
I'm a newbie in the Unix world so all this is a little confusing to me. I'm having trouble compiling some Fortran files under Cygwin on Windows XP.
Here's what I've done so far:
- Installed the e text editor.
- Installed Cygwin via the "automatic" option inside e text editor.
- I need to compile some Fortran files so via the "manage bundles" option I installed the Fortran bundle as well.
However, when I select "compile single file" I get an error saying gfortran
was missing, and then that I need to set the TM_FORTRAN
variable to the full path of my compiler.
I tried opening a Cygwin bash shell at the path mentioned (.../bin/gfortran), but the compiler was nowhere to be found.
Can someone tell me how to install this from the Cygwin command line? Where do I need to update the TM_FORTRAN
variable for the bundle to work?
Also, how do I change the bundle "compile" option to work with ifort
(my native compiler) on Windows? I've read the bundle file, but it is totally incomprehensible to me. Ifort is a Windows compiler, invoked simply by ifort filename.f90
, since it is on the Windows path.
I know this is a lot to ask of a first time user here, but I really would appreciate any time you can spare to help.
windows windows-xp cygwin
migrated from stackoverflow.com Jan 15 '12 at 3:46
This question came from our site for professional and enthusiast programmers.
The Fortran Compiler is in the package gcc-g77 in the Cygwin installer (/bin/g77)
– Amro
Nov 3 '09 at 5:33
haven't tried butecho $TM_FORTRAN
andTM_FORTRAN=WHATEVERITSHOULDBE
– barlop
May 1 '15 at 19:53
add a comment |
I'm a newbie in the Unix world so all this is a little confusing to me. I'm having trouble compiling some Fortran files under Cygwin on Windows XP.
Here's what I've done so far:
- Installed the e text editor.
- Installed Cygwin via the "automatic" option inside e text editor.
- I need to compile some Fortran files so via the "manage bundles" option I installed the Fortran bundle as well.
However, when I select "compile single file" I get an error saying gfortran
was missing, and then that I need to set the TM_FORTRAN
variable to the full path of my compiler.
I tried opening a Cygwin bash shell at the path mentioned (.../bin/gfortran), but the compiler was nowhere to be found.
Can someone tell me how to install this from the Cygwin command line? Where do I need to update the TM_FORTRAN
variable for the bundle to work?
Also, how do I change the bundle "compile" option to work with ifort
(my native compiler) on Windows? I've read the bundle file, but it is totally incomprehensible to me. Ifort is a Windows compiler, invoked simply by ifort filename.f90
, since it is on the Windows path.
I know this is a lot to ask of a first time user here, but I really would appreciate any time you can spare to help.
windows windows-xp cygwin
I'm a newbie in the Unix world so all this is a little confusing to me. I'm having trouble compiling some Fortran files under Cygwin on Windows XP.
Here's what I've done so far:
- Installed the e text editor.
- Installed Cygwin via the "automatic" option inside e text editor.
- I need to compile some Fortran files so via the "manage bundles" option I installed the Fortran bundle as well.
However, when I select "compile single file" I get an error saying gfortran
was missing, and then that I need to set the TM_FORTRAN
variable to the full path of my compiler.
I tried opening a Cygwin bash shell at the path mentioned (.../bin/gfortran), but the compiler was nowhere to be found.
Can someone tell me how to install this from the Cygwin command line? Where do I need to update the TM_FORTRAN
variable for the bundle to work?
Also, how do I change the bundle "compile" option to work with ifort
(my native compiler) on Windows? I've read the bundle file, but it is totally incomprehensible to me. Ifort is a Windows compiler, invoked simply by ifort filename.f90
, since it is on the Windows path.
I know this is a lot to ask of a first time user here, but I really would appreciate any time you can spare to help.
windows windows-xp cygwin
windows windows-xp cygwin
asked Oct 16 '09 at 16:31
bez
migrated from stackoverflow.com Jan 15 '12 at 3:46
This question came from our site for professional and enthusiast programmers.
migrated from stackoverflow.com Jan 15 '12 at 3:46
This question came from our site for professional and enthusiast programmers.
The Fortran Compiler is in the package gcc-g77 in the Cygwin installer (/bin/g77)
– Amro
Nov 3 '09 at 5:33
haven't tried butecho $TM_FORTRAN
andTM_FORTRAN=WHATEVERITSHOULDBE
– barlop
May 1 '15 at 19:53
add a comment |
The Fortran Compiler is in the package gcc-g77 in the Cygwin installer (/bin/g77)
– Amro
Nov 3 '09 at 5:33
haven't tried butecho $TM_FORTRAN
andTM_FORTRAN=WHATEVERITSHOULDBE
– barlop
May 1 '15 at 19:53
The Fortran Compiler is in the package gcc-g77 in the Cygwin installer (/bin/g77)
– Amro
Nov 3 '09 at 5:33
The Fortran Compiler is in the package gcc-g77 in the Cygwin installer (/bin/g77)
– Amro
Nov 3 '09 at 5:33
haven't tried but
echo $TM_FORTRAN
and TM_FORTRAN=WHATEVERITSHOULDBE
– barlop
May 1 '15 at 19:53
haven't tried but
echo $TM_FORTRAN
and TM_FORTRAN=WHATEVERITSHOULDBE
– barlop
May 1 '15 at 19:53
add a comment |
2 Answers
2
active
oldest
votes
Rerun the cygwin installer, and choose a Fortran compiler: gcc-g77 for the older Fortran 77, gcc4-gfortran for newer standards (Fortran 95 and parts of Fortran 2003 & 2008).
add a comment |
You dont have to re-run the installer. Type in the cygwin command prompt:
apt-cyg install gcc-g77
to install the gfortran package
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f378517%2fhow-do-i-install-gfortran-via-cygwin-and-etexteditor-and-enable-ifort-under-wi%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Rerun the cygwin installer, and choose a Fortran compiler: gcc-g77 for the older Fortran 77, gcc4-gfortran for newer standards (Fortran 95 and parts of Fortran 2003 & 2008).
add a comment |
Rerun the cygwin installer, and choose a Fortran compiler: gcc-g77 for the older Fortran 77, gcc4-gfortran for newer standards (Fortran 95 and parts of Fortran 2003 & 2008).
add a comment |
Rerun the cygwin installer, and choose a Fortran compiler: gcc-g77 for the older Fortran 77, gcc4-gfortran for newer standards (Fortran 95 and parts of Fortran 2003 & 2008).
Rerun the cygwin installer, and choose a Fortran compiler: gcc-g77 for the older Fortran 77, gcc4-gfortran for newer standards (Fortran 95 and parts of Fortran 2003 & 2008).
answered Mar 9 '10 at 8:56
F'xF'x
17126
17126
add a comment |
add a comment |
You dont have to re-run the installer. Type in the cygwin command prompt:
apt-cyg install gcc-g77
to install the gfortran package
add a comment |
You dont have to re-run the installer. Type in the cygwin command prompt:
apt-cyg install gcc-g77
to install the gfortran package
add a comment |
You dont have to re-run the installer. Type in the cygwin command prompt:
apt-cyg install gcc-g77
to install the gfortran package
You dont have to re-run the installer. Type in the cygwin command prompt:
apt-cyg install gcc-g77
to install the gfortran package
answered Aug 7 '17 at 11:20
Andreas Haahr LarsenAndreas Haahr Larsen
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f378517%2fhow-do-i-install-gfortran-via-cygwin-and-etexteditor-and-enable-ifort-under-wi%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The Fortran Compiler is in the package gcc-g77 in the Cygwin installer (/bin/g77)
– Amro
Nov 3 '09 at 5:33
haven't tried but
echo $TM_FORTRAN
andTM_FORTRAN=WHATEVERITSHOULDBE
– barlop
May 1 '15 at 19:53