[Numpy-discussion] Installing numpy under cygwin
Wed Nov 18 12:55:52 CST 2009
I have started again, 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 MATHLIB
I have a math library from cygwin (libm.a).
How should I set this?
----- Original Message ----
> From: David Cournapeau <email@example.com>
> To: Discussion of Numerical Python <firstname.lastname@example.org>
> 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