[Numpy-discussion] Installing numpy under cygwin
Sun Nov 22 15:51:59 CST 2009
I attempted to install Numpy for my Cygwin python again, by simply executing:
>python setup.py install
However, I now get the following:
>File "numpy/core/setup.py", line 253, in check_mathlib
> raise EnvironmentError("math library missing; rerun "
>EnvironmentError: math library missing; rerun setup.py after setting the
I have a math library from cygwin (libm.a), but I have not managed to set it.
How should I set this?
Thank you for the help,
----- Original Message ----
> From: David Cournapeau
> To: Discussion of Numerical Python
> Sent: Wed, November 18, 2009 9:01:06 AM
> Subject: Re: [Numpy-discussion] Installing numpy under cygwin
> Olivia Cheronet wrote:
> > Hello.
> > I am currently trying to install the latest version of NumPy for my cygwin
> Python, and I am having problems...
> > I have downloaded the source, and unzipped and untarred it in my home
> > Subsequently, I included the following in the site.cfg file:
> >> [DEFAULT]
> >> library_dirs = /cygdrive/c/cygwin/lib
> >> include_dirs = /cygdrive/c/cygwin/usr/local/include
> >> [blas_opt]
> >> libraries = f77blas, cblas, atlas
> >> [lapack_opt]
> >> libraries = lapack, f77blas, cblas, atlas
> > In the Cygwin bash shell, after going to my home directory, I have executed:
> > python setup.py config --compiler=mingw32 build --compiler=mingw32 install
> > as instructed in the "Installing SciPy/Windows" page.
> If you use cygwin, you should not follow the windows instructions. For
> most purposes, cygwin works as unix. In particular, you don't think you
> should not use mingw32 build on cygwin. The -mno-cygwin flag appended to
> gcc is most likely coming from there, and this looks very wrong for a
> cygwin build.
> NumPy-Discussion mailing list
More information about the NumPy-Discussion