Fwd: [f2py] f2py -- getting Intel 8.0 to work with f2py with fib1.f90 example

William Henney w.henney at astrosmo.unam.mx
Sun Feb 3 16:34:03 EET 2008


Try again from correct mail address....

---------- Forwarded message ----------
From: William Henney <whenney at gmail.com>
Date: Feb 3, 2008 8:31 AM
Subject: Re: [f2py] f2py -- getting Intel 8.0 to work with f2py with
fib1.f90 example
To: Vitaly Marin <integrated.m at gmail.com>
Cc: f2py-users at cens.ioc.ee


Hi Vitaly

On Feb 2, 2008 4:31 PM, Vitaly Marin <integrated.m at gmail.com> wrote:
> f2py -c --noarch --f90exec=/opt/intel_fc_80/bin/ifort
> --f90flags="-ccdefault list -tpp6 -W0 -L/opt/intel_fc_80/lib -lifport"
> --fcompiler=intel fib1.f90 -m fib1
>
> I am able to compile the code but when I do ldd on fib1.so I get
>
>     libifport.so.5 => not found
>         libifcore.so.5 => not found
>         libimf.so => not found
>         libm.so.6 => /lib/i686/libm.so.6 (0x4000c000)
>         libcxa.so.5 => not found
>         libunwind.so.5 => not found
>         libc.so.6 => /lib/i686/libc.so.6 (0x40031000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
>

You need to set up your environment variables for using the compiler.
If you use the bash shell, this would be via a command like

$ source /opt/intel_fc_80/bin/ifortvars.sh

This has nothing to do with f2py. I suspect you would have the same
problem if you tried to compile and run a pure fortran program.

By the way, version 8 of ifort is very old now. You may want to upgrade.

Cheers

Will




--

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia



-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia



More information about the f2py-users mailing list