Hi Claus,
The path should be identical to the path you see when you run the command 'echo $PATH' in your shell. There should not be spaces at either end.
Also, make sure the file is called "environment.plist" and is in the directory .MacOSX
If this still does not work, you can add a PATH environment variable on the Environment tab in the C/C++ Build properties for the project. Again, the path must be exactly the same as the path you're using for your shell.
Regards, Greg
On Sep 14, 2012, at 2:29 AM, Claus wrote: I am still trying to build a simple fortran project within photran. I followed the approach suggested by Greg and I created a plist file which resides in ~/.MacOSX This is what's in it:
<?xml version="1.0" encoding="UTF-8"?> <plist version="1.0"> <dict> <key>PATH</key> <string> /usr/local/bin/gfortran </string> </dict> </plist>
I tried it with various combinations of spaces around the gfortran path and restarted eclipse each time. However, the same error persists: 08:25:01 **** Incremental Build of configuration Release for project EDK **** make all Building file: ../edk.f90 /bin/sh: gfortran: command not found make: *** [edk.o] Error 127 Invoking: GNU Fortran Compiler gfortran -funderscoring -O3 -Wall -c -fmessage-length=0 -o "edk.o" "../edk.f90"
08:25:01 Build Finished (took 146ms)
Following the approach in the tutorial, I created one simple fortran file, edk.for within a fortran project. The build of the project fails.
Doe anybody have further suggestions?
Is gfortran a preferred compiler with photran? Are there other (preferably open source) options?
Thanks for your help!
Cheers, Claus
[…] Message: 2 Date: Thu, 13 Sep 2012 08:10:19 -0400 From: Greg Watson <g.watson@xxxxxxxxxxxx> To: Photran Information <photran@xxxxxxxxxxx> Subject: Re: [photran] gfortran Message-ID: <0381CBAD-0B24-4E22-BBBF-A25447F3CFD1@xxxxxxxxxxxx> Content-Type: text/plain; charset=us-ascii
Claus,
In your home directory, create the directory .MacOSX (the dot at case are important). In this directory, create a file called environment.plist containing the following:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>PATH</key> <string>your shell path include the path to gfortran</string> </dict> </plist>
Quit out of Eclipse and restart.
Regards, Greg
On Sep 12, 2012, at 3:46 AM, Claus wrote:
Hi,
I am running OS 10.8.1 Eclipse 4.2.0 Photran 8.0.1
in Terminal, i can compile fortran code using gfortran (GNU Fortran (GCC) 4.2.3)
After I follow the steps outlined here Starting a New Project using an auto generated makefile
I end up getting this error:
09:35:33 **** Build of configuration Release for project EDK **** make all Building file: ../edk.f90 Invoking: GNU Fortran Compiler gfortran -funderscoring -O3 -Wall -c -fmessage-length=0 -o "edk.o" "../edk.f90" /bin/sh: gfortran: command not found make: *** [edk.o] Error 127
- I made sure to check the related faq entries (http://bit.ly/Q1tI0B): I chose Mach-O (obsolete) and Mach-O64 -- the same error occurs regardless and there are no spaces in my workspace
- in terminal I switched to /bin/sh and I can execute fortran just fine computername:~ username$ /bin/sh sh-3.2$ gfortran i686-apple-darwin8-gfortran-4.2: no input files sh-3.2$
What could the problem be? Thanks for your help!
Cheers, Claus _______________________________________________ photran mailing list photran@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/photran
_______________________________________________ photran mailing list photran@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/photran
|