building library "npymath" sources
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize LaheyFCompiler
Could not locate executable lf95
customize PGroupFCompiler
Could not locate executable pgf90
Could not locate executable pgf77
customize AbsoftFCompiler
Could not locate executable f90
customize NAGFCompiler
Found executable /usr/bin/f95
customize VastFCompiler
customize CompaqFCompiler
Could not locate executable fort
customize IntelItaniumFCompiler
Could not locate executable efort
Could not locate executable efc
customize IntelEM64TFCompiler
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using config
C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
.........
building extension "numpy.random.mtrand" sources
C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/python272/include/python2.7 -c'
gcc: _configtest.c
gcc -pthread _configtest.o -o _configtest
_configtest
failure.
then :
python setup.py install --prefix=/mypath/numpy
I got:
Running from numpy source directory.non-existing path in 'numpy/distutils': 'site.cfg'
F2PY Version 2
blas_opt_info:
blas_mkl_info:
libraries mkl,vml,guide not found in /mypath/python272/lib
libraries mkl,vml,guide not found in /usr/local/lib64
libraries mkl,vml,guide not found in /usr/local/lib
libraries mkl,vml,guide not found in /usr/lib64
libraries mkl,vml,guide not found in /usr/lib
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in /
mypath/python272/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib64
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib64/sse2
libraries ptf77blas,ptcblas,atlas not found in /usr/lib64
libraries ptf77blas,ptcblas,atlas not found in /usr/lib/sse2
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in /mypath/python272/lib
libraries f77blas,cblas,atlas not found in /usr/local/lib64
libraries f77blas,cblas,atlas not found in /usr/local/lib
libraries f77blas,cblas,atlas not found in /usr/lib64/sse2
libraries f77blas,cblas,atlas not found in /usr/lib64
libraries f77blas,cblas,atlas not found in /usr/lib/sse2
libraries f77blas,cblas,atlas not found in /usr/lib
NOT AVAILABLE
UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
warnings.warn(LapackNotFoundError.__doc__)
lapack_src_info:
NOT AVAILABLE
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
warnings.warn(LapackSrcNotFoundError.__doc__)
NOT AVAILABLE
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building py_modules sources
building library "npymath" sources
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize LaheyFCompiler
Could not locate executable lf95
customize PGroupFCompiler
Could not locate executable pgf90
Could not locate executable pgf77
customize AbsoftFCompiler
Could not locate executable f90
customize NAGFCompiler
Found executable /usr/bin/f95
customize VastFCompiler
customize CompaqFCompiler
Could not locate executable fort
customize IntelItaniumFCompiler
Could not locate executable efort
Could not locate executable efc
customize IntelEM64TFCompiler
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using config
C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/remote/dcnl/Ding/backup_20100716/python272/include/python2.7 -c'
gcc: _configtest.c
gcc -pthread _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
........................
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/mypath/python272/include/python2.7 -c'
gcc: _configtest.c
gcc -pthread _configtest.o -o _configtest
_configtest
failure.
at the end:
running install_egg_info
Removing /mypath/numpy/lib/python2.7/site-packages/numpy-1.6.1-py2.7.egg-info
Writing /mypath/numpy/lib/python2.7/site-packages/numpy-1.6.1-py2.7.egg-info
running install_clib
Then
I got:
python
Python 2.7.2 (default, Dec 20 2011, 12:32:10)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named numpy
I have updated PATH for bin and lib of numpy.
I have got f2py and lib files :
add_newdocs.py distutils __init__.py numarray testing
add_newdocs.pyc doc __init__.pyc oldnumeric tests
compat dual.py lib polynomial version.py
__config__.py dual.pyc linalg random version.pyc
__config__.pyc f2py ma setup.py
core fft matlib.py setup.pyc
ctypeslib.py _import_tools.py matlib.pyc setupscons.py
ctypeslib.pyc _import_tools.pyc matrixlib setupscons.pyc
Any help is really appreciated.
thanks
> From: derek@astro.physik.uni-goettingen.de
> Date: Tue, 20 Dec 2011 20:43:53 +0100
> To: numpy-discussion@scipy.org
> Subject: Re: [Numpy-discussion] numpy1.6.1 install fortran compiler error
>
> Hi Jack,
>
> > In order to install scipy, I am trying to install numpy 1.6.1. on GNU/linux redhat 2.6.18.
> >
> > But, I got error about fortran compiler.
> >
> > I have gfortran. I do not have f77/f90/g77/g90.
> >
> that's good!
>
> > I run :
> > python setup.py build --fcompiler=gfortran
> >
> > It woks well and tells me that
> >
> > customize Gnu95FCompiler
> > Found executable /usr/bin/gfortran
> >
> > But, i run:
> >
> > building library "npymath" sources
> > customize GnuFCompiler
> > Could not locate executable g77
> > Could not locate executable f77
> > customize IntelFCompiler
> > Could not locate executable ifort
> > Could not locate executable ifc
> > customize LaheyFCompiler
> > Could not locate executable lf95
> > customize PGroupFCompiler
> > Could not locate executable pgf90
> > Could not locate executable pgf77
> > customize AbsoftFCompiler
> > Could not locate executable f90
> > customize NAGFCompiler
> > Found executable /usr/bin/f95
> > customize Gnu95FCompiler
> > customize Gnu95FCompiler using config
> > C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC
> >
> > Do I have to install f77/f90/g77/g90 ?
> >
> You did not send any actual error message here, so it's difficult to tell
> where exactly your install failed. But gfortran is preferred over f77 etc.
> and should in fact be automatically selected (without the '--fcompiler=gfortran'),
> it is apparently also found in the right place.
> Could you send us the last lines of output with the error itself, or possibly
> everything following a line starting with "Traceback:.." ;
> and also the output of `gfortran -v`?
>
> Cheers,
> Derek
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion