Try this:
Create a directory called ".MacOSX" in your home directory. Create a file called "environment.plist" in this directory with the contents:
<?xml version="1.0" encoding="UTF-8"?> <plist version="1.0"> <dict> <key>PATH</key> <string>/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/texbin:/usr/local/bin:/usr/X11R6/bin</string> </dict> </plist>
Log out of the Mac desktop, then back in again (or reboot).
Greg On Feb 18, 2011, at 10:25 AM, Cyril Georgy wrote: Ok, it works perfectly.
Is there a way to make this variable appears as default case ? (ie, whithout having to set it manually for each new project ?)
Thanks for the solution !
Cyril
Le 18 févr. 2011 à 16:19, Greg Watson a écrit : Cyril,
I've had problems with compiler paths lately also. I think something changed in CDT. I suggest you try setting a PATH environment variable (Fortran Build>Environment) in the project properties to your shell path.
Greg On Feb 18, 2011, at 9:54 AM, Cyril Georgy wrote: From the terminal, my path is /sw/bin/:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/texbin:/usr/local/bin:/usr/X11R6/bin
and ld is in /usr/bin, so yes.
The problem is that I can perfectly compile and link if I do that by hand in the terminal.
Thanks for your answer !
Sorry, couldn't resist. You have ld in your path?
From: Mike Hudson <mike_hudson_uk@xxxxxxxxxxx> To: Photran Information <photran@xxxxxxxxxxx> Sent: Fri, 18 February, 2011 14:46:12 Subject: Re: [photran] Strange problem
Your crystal ball is probably broken
From: Cyril Georgy <Cyril.Georgy@xxxxxxxx> To: Photran Information <photran@xxxxxxxxxxx> Sent: Fri, 18 February, 2011 14:34:34 Subject: [photran] Strange problem
Hi !
From tomorrow, I have some problems compiling with photran. It seems that Eclipse is unable to compile some projects (that I could prefectly compile yesterday). The problem occurs during the linking. The following message appears in the console :
Building target: SurfaceRotation.e Invoking: MacOS X Fortran Linker /usr/local/bin/gfortran -o "SurfaceRotation.e" ./AAvariables.o ./Convert.o ./Main.o ./NewRaph.o ./aniso.o collect2: cannot find 'ld' make: *** [SurfaceRotation.e] Error 1
I probably change something somewhere, but I absolutely don't know what...
Somebody can help ?
Thanks
Cyril -------------------------------------------------- Cyril Georgy tél direct: +41 22 379 24 55 -------------------------------------------------- Observatoire de Genève Faculté des Sciences Chemin des Maillettes 51 CH - 1290 Versoix --------------------------------------------------
_______________________________________________ photran mailing list photran@xxxxxxxxxxxhttps://dev.eclipse.org/mailman/listinfo/photran
-------------------------------------------------- Cyril Georgy tél direct: +41 22 379 24 55 -------------------------------------------------- Observatoire de Genève Faculté des Sciences Chemin des Maillettes 51 CH - 1290 Versoix --------------------------------------------------
_______________________________________________ photran mailing list photran@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/photran
_______________________________________________ photran mailing list photran@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/photran
-------------------------------------------------- Cyril Georgy tél direct: +41 22 379 24 55 -------------------------------------------------- Observatoire de Genève Faculté des Sciences Chemin des Maillettes 51 CH - 1290 Versoix --------------------------------------------------
_______________________________________________ photran mailing list photran@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/photran
|