Jack,

>   Did you try executing...
> 
> which gfortran

Yes.

> ...to make sure you really are using the one from fink as well as trying to 
> compile with an explicit path...
> 
> /sw/bin/gfortran -o prov prov.f

too!

Monte-Carlo>which gfortran
/sw/bin/gfortran
Monte-Carlo>ls -l `which gfortran`
lrwxr-xr-x  1 root  admin    35B Aug 16 14:12 /sw/bin/gfortran -> 
/sw/lib/gcc4.7/bin/gfortran-fsf-4.7
Monte-Carlo>/sw/bin/gfortran -o prov prov.f
gfortran: error trying to exec 'f951': execvp: No such file or directory

while 

Monte-Carlo>/usr/local/bin/gfortran -o prov prov.f
Monte-Carlo>

works!

I tried to put back /usr/local but that made no difference.

/sw and /sw/bin appear first in the PATH. And it was working with the previous 
install of gcc via fink (gcc46 package).

This error is mentioned on the web but no clear solution seems to exist. One 
person mentioned disinstalling everything, removing xcode, etc… and starting 
from scratch again (and it worked) but his problem was with 
/usr/local/gfortran, not fink.

Laurent 
> to see of that helps. From the information provided, I can only guess that 
> you are executing a gfortran
> binary installed outside of /usr/local and that moving /usr/local aside 
> prevented gfortran from finding
> f951. Note that the error message doesn't explicitly say where it is looking 
> at for f951 so you may not
> really be running the copy of gfortran from fink's gcc47 package.
>             Jack
> 
>> 
>> though the file is there :
>> 
>> bin>ll /sw/lib/gcc4.7/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.1/f951
>> -rwxr-xr-x  1 root  admin    16M Aug 16 14:07 
>> /sw/lib/gcc4.7/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.1/f951
>> 
>> 
>> I updated XCODE from 4.2.1 to 4.4.1, reinstalled fink, rebuilt gcc4.7 but 
>> the result is the same.
>> 
>> LP>fink --version
>> Package manager version: 0.34.2
>> Distribution version: selfupdate-rsync Tue Aug 14 12:49:19 2012, 10.7, x86_64
>> Trees: local/main stable/main
>> 
>> Copyright (c) 2001 Christoph Pfisterer
>> Copyright (c) 2001-2012 The Fink Package Manager Team
>> This program is distributed in the hope that it will be useful,
>> but WITHOUT ANY WARRANTY; without even the implied warranty of
>> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>> GNU General Public License for more details.
>> 
>> LP>fink list xcode
>> Information about 5789 packages read in 5 seconds.
>> i   xcode            4.4.0.0.1.1  [virtual package representing the 
>> develop...
>> i   xcode.app        4.4.1-1      [virtual package representing Xcode]
>> 
>> I have tried to relink /sw/bin/gfortran to its previous version under gcc4.6 
>> but the result is the same. Something has changed in the /sw environment 
>> which prevents gfortran to work ?
>> 
>> I have a gfortran version under /usr/local which does work. I, of course, 
>> moved /usr/local to /usr/mylocal before doing any of these things above.
>> 
>> What is wrong with /sw/bin/gfortran ?
>> 
>> Laurent
>> PS : I am not a guru. Don't hesitate to give *uncoded* explanations. Thanks
>> 
>> Laurent Pagani
>> LERMA, UMR8112 du CNRS
>> Observatoire de Paris
>> 75014 Paris
>> France
>> Tel: (33) 1 40 51 20 13
>> Fax: (33) 1 40 51 20 02
>> e-mail: laurent.pag...@obspm.fr
>> http://aramis.obspm.fr/~pagani
>> 
>> "Falling leaves are a good sign. It's when you see them jumping back onto 
>> the trees that you're in trouble" Lucy van Pelt (C. Schulz)

Laurent Pagani
LERMA, UMR8112 du CNRS
Observatoire de Paris
75014 Paris
France
Tel: (33) 1 40 51 20 13
Fax: (33) 1 40 51 20 02
e-mail: laurent.pag...@obspm.fr
http://aramis.obspm.fr/~pagani

"Falling leaves are a good sign. It's when you see them jumping back onto the 
trees that you're in trouble" Lucy van Pelt (C. Schulz)


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to