[f2py] f2py installation to Mac OSX

Nevin Gerek Nevin.Gerek at asu.edu
Mon Jan 29 23:08:38 EET 2007


Hello,
I am trying to install f2py to MacOSX-Intel machine and I was able to  
install
it. When I try to test 'hello' program, I am getting this error:

=========================================
poseidon:~/Desktop zgerek$ f2py -c -m hello hello.f
numpy_info:
   FOUND:
     define_macros = [('NUMERIC_VERSION', '"\\"24.2\\""')]
     include_dirs =
['/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4']

running build
running config_fc
running build_src
building extension "hello" sources
f2py:> /tmp/tmpRFZShA/src/hellomodule.c
creating /tmp/tmpRFZShA
creating /tmp/tmpRFZShA/src
Reading fortran codes...
         Reading file 'hello.f'
Post-processing...
         Block: hello
                         Block: foo
Post-processing (stage 2)...
Building modules...
         Building module "hello"...
         Wrote C/API module "hello" to file "/tmp/tmpRFZShA/src/ 
hellomodule.c"
   adding '/tmp/tmpRFZShA/src/fortranobject.c' to sources.
   adding '/tmp/tmpRFZShA/src' to include_dirs.
copying
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages
/f2py2e/src/fortranobject.c
-> /tmp/tmpRFZShA/src
copying
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages
/f2py2e/src/fortranobject.h
-> /tmp/tmpRFZShA/src
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize NAGFCompiler
customize AbsoftFCompiler
customize IbmFCompiler
Could not locate executable g77
Could not locate executable f77
customize GnuFCompiler
customize GnuFCompiler
customize NAGFCompiler
customize NAGFCompiler using build_ext
building 'hello' extension
compiling C sources
gcc options: '-arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-fno-common -dynamic -DNDEBUG -g -O3'
creating /tmp/tmpRFZShA/tmp
creating /tmp/tmpRFZShA/tmp/tmpRFZShA
creating /tmp/tmpRFZShA/tmp/tmpRFZShA/src
compile options:
'-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
-I/tmp/tmpRFZShA/src
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4  
-c'
gcc: /tmp/tmpRFZShA/src/fortranobject.c
gcc: /tmp/tmpRFZShA/src/hellomodule.c
compiling Fortran sources
f95(f77) options: '-fixed -O4 -target=native'
f95(f90) options: '-O4 -target=native'
f95(fix) options: '-fixed -O4 -target=native'
compile options:
'-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
-I/tmp/tmpRFZShA/src
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4  
-c'
f95:f77: hello.f
f95: unrecognized option '-target=native'
f951: error: unrecognized command line option "-fixed"
f95: unrecognized option '-target=native'
f951: error: unrecognized command line option "-fixed"
error: Command "f95 -fixed -O4 -target=native
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
-I/tmp/tmpRFZShA/src
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4  
-c -c
hello.f -o /tmp/tmpRFZShA/hello.o" failed with exit status 1



It seems like it can not find the location of g77 and f77. In which  
file for
f2py, I can define the path? Any help would be great.

Thanks,
Nevin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cens.ioc.ee/pipermail/f2py-users/attachments/20070129/9fec42a8/attachment.html


More information about the f2py-users mailing list