Re: [Numpy-discussion] Installing numpy under cygwin
Thank you. This time the building of Numpy worked with no error message. However, when I now try to import Numpy in Python, there is a problem with lapack_lite (see below). Thanks again! Olivia $ python Python 2.5.2 (r252:60911, Dec 2 2008, 09:26:14) [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> import numpy Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.5/site-packages/numpy/__init__.py", line 132, in import add_newdocs File "/usr/lib/python2.5/site-packages/numpy/add_newdocs.py", line 9, in from lib import add_newdoc File "/usr/lib/python2.5/site-packages/numpy/lib/__init__.py", line 13, in from polynomial import * File "/usr/lib/python2.5/site-packages/numpy/lib/polynomial.py", line 17, in < module> from numpy.linalg import eigvals, lstsq File "/usr/lib/python2.5/site-packages/numpy/linalg/__init__.py", line 47, in from linalg import * File "/usr/lib/python2.5/site-packages/numpy/linalg/linalg.py", line 22, in from numpy.linalg import lapack_lite ImportError: No such file or directory - Original Message > From: David Cournapeau > > Please update to the trunk - I can see the error as well for 1.3.0, > and the trunk does build correctly on cygwin. I don't understand where > the error is coming from in 1.3.0, it almost look like a cpp bug. > > cheers, > > David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Installing numpy under cygwin
On Fri, Nov 27, 2009 at 7:11 PM, Olivia Cheronet wrote: > Hi, > > I have tried to remove my entire numpy directory and starting to build it > again from a newly downloaded source (numpy-1.3.0.tar.gz), but it has made no > difference. Please update to the trunk - I can see the error as well for 1.3.0, and the trunk does build correctly on cygwin. I don't understand where the error is coming from in 1.3.0, it almost look like a cpp bug. cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Installing numpy under cygwin
Hi, I have tried to remove my entire numpy directory and starting to build it again from a newly downloaded source (numpy-1.3.0.tar.gz), but it has made no difference. I still get the output below. Thank you for the suggestions, Olivia ... ... ... creating build/temp.cygwin-1.5.25-i686-2.5 creating build/temp.cygwin-1.5.25-i686-2.5/build creating build/temp.cygwin-1.5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2.5 creating build/temp.cygwin-1.5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2.5/numpy creating build/temp.cygwin-1.5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2.5/numpy/core creating build/temp.cygwin-1.5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2.5/numpy/core/src compile options: '-Inumpy/core/include -Ibuild/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.5 -c' gcc: build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.c numpy/core/src/npy_math.c.src:186: error: parse error before '/' token numpy/core/src/npy_math.c.src:186: error: parse error before '/' token error: Command "gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Inumpy/core/include -Ibuild/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.5 -c build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.c -o build/temp.cygwin-1.5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.o" failed with exit status 1 - Original Message > > I have just tested a fresh svn checkout, and could built numpy > correctly on cygwin. I would suggest you update your sources, and > build from scratch (i.e. remove the entire build directory and start > from scratch). > > David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Installing numpy under cygwin
On Wed, Nov 25, 2009 at 7:07 PM, Olivia Cheronet wrote: > The npy_math.c is attached here. > I have just tested a fresh svn checkout, and could built numpy correctly on cygwin. I would suggest you update your sources, and build from scratch (i.e. remove the entire build directory and start from scratch). David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Installing numpy under cygwin
The npy_math.c is attached here. Cheers, Olivia - Original Message > On Wed, Nov 25, 2009 at 6:42 PM, Olivia Cheronet > wrote: > > The crt0.o file was indeed missing. I have reinstalled cygwin from the > > cygwin > setup.exe (as it seemed to be included therein), and it seems to have solved > that. > > > > compile options: '-Inumpy/core/include > -Ibuild/src.cygwin-1.5.25-i686-2.5/numpy/ > > core/include/numpy -Inumpy/core/src -Inumpy/core/include > -I/usr/include/python2. > > 5 -c' > > gcc: build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.c > > numpy/core/src/npy_math.c.src:186: error: parse error before '/' token > > numpy/core/src/npy_math.c.src:186: error: parse error before '/' token > > error: Command "gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall > -Wstrict- > > prototypes -Inumpy/core/include > -Ibuild/src.cygwin-1.5.25-i686-2.5/numpy/core/in > > clude/numpy -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.5 > > -c > bu > > ild/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.c -o > build/temp.cygwin-1. > > 5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.o" > failed > > with exit status 1 > > Which version of the trunk are you using ? From the error, it looks > like a C99-style // comment (which should not be there), but I don't > see it in the last revision. > > Could you put the content of the file > build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.c as well ? > > thanks, > > David #line 1 "numpy/core/src/npy_math.c.src" /* * ** This file was autogenerated from a template DO NOT EDIT ** ** Changes should be made to the original source (.src) file ** * */ #line 1 /* * vim:syntax=c * A small module to implement missing C99 math capabilities required by numpy * * Please keep this independant of python ! Only basic types (npy_longdouble) * can be used, otherwise, pure C, without any use of Python facilities * * How to add a function to this section * - * * Say you want to add `foo`, these are the steps and the reasons for them. * * 1) Add foo to the appropriate list in the configuration system. The *lists can be found in numpy/core/setup.py lines 63-105. Read the *comments that come with them, they are very helpful. * * 2) The configuration system will define a macro HAVE_FOO if your function *can be linked from the math library. The result can depend on the *optimization flags as well as the compiler, so can't be known ahead of *time. If the function can't be linked, then either it is absent, defined *as a macro, or is an intrinsic (hardware) function. * *i) Undefine any possible macros: * *#ifdef foo *#undef foo *#endif * *ii) Avoid as much as possible to declare any function here. Declaring *functions is not portable: some platforms define some function inline *with a non standard identifier, for example, or may put another *idendifier which changes the calling convention of the function. If you *really have to, ALWAYS declare it for the one platform you are dealing *with: * *Not ok: *double exp(double a); * *Ok: *#ifdef SYMBOL_DEFINED_WEIRD_PLATFORM *double exp(double); *#endif */ #include #include #include "config.h" #include "numpy/npy_math.h" /* * ** BASIC MATH FUNCTIONS** * */ /* Original code by Konrad Hinsen. */ #ifndef HAVE_EXPM1 static double expm1(double x) { double u = exp(x); if (u == 1.0) { return x; } else if (u-1.0 == -1.0) { return -1; } else { return (u-1.0) * x/log(u); } } #endif #ifndef HAVE_LOG1P static double log1p(double x) { double u = 1. + x; if (u == 1.0) { return x; } else { return log(u) * x / (u - 1); } } #endif #ifndef HAVE_HYPOT static double hypot(double x, double y) { double yx; x = fabs(x); y = fabs(y); if (x < y) { double temp = x; x = y; y = temp; } if (x == 0.) return 0.; else { yx = y/x; return x*sqrt(1.+yx*yx); } } #endif #ifndef HAVE_ACOSH static double acosh(double x) { return 2*log(sqrt((x+1.0)/2)+sqrt((x-1.0)/2)); } #endif #ifndef HAVE_ASINH static double asinh(double xx) { double x, d; int sign; if (xx < 0.0) { sign = -1; x = -xx; } else { sign = 1; x = xx; } if (x > 1e8) { d = x; } else { d = sqrt(x*x + 1); } return sign*log1p(x*(1.0
Re: [Numpy-discussion] Installing numpy under cygwin
On Wed, Nov 25, 2009 at 6:42 PM, Olivia Cheronet wrote: > The crt0.o file was indeed missing. I have reinstalled cygwin from the cygwin > setup.exe (as it seemed to be included therein), and it seems to have solved > that. > > compile options: '-Inumpy/core/include > -Ibuild/src.cygwin-1.5.25-i686-2.5/numpy/ > core/include/numpy -Inumpy/core/src -Inumpy/core/include > -I/usr/include/python2. > 5 -c' > gcc: build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.c > numpy/core/src/npy_math.c.src:186: error: parse error before '/' token > numpy/core/src/npy_math.c.src:186: error: parse error before '/' token > error: Command "gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall > -Wstrict- > prototypes -Inumpy/core/include > -Ibuild/src.cygwin-1.5.25-i686-2.5/numpy/core/in > clude/numpy -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.5 -c > bu > ild/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.c -o > build/temp.cygwin-1. > 5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.o" > failed > with exit status 1 Which version of the trunk are you using ? From the error, it looks like a C99-style // comment (which should not be there), but I don't see it in the last revision. Could you put the content of the file build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.c as well ? thanks, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Installing numpy under cygwin
The crt0.o file was indeed missing. I have reinstalled cygwin from the cygwin setup.exe (as it seemed to be included therein), and it seems to have solved that. However, I now get the error below. Thanks, Olivia _ 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 /usr/local/lib 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 /usr/local/lib libraries ptf77blas,ptcblas,atlas not found in /usr/lib NOT AVAILABLE atlas_blas_info: libraries f77blas,cblas,atlas not found in /usr/local/lib libraries f77blas,cblas,atlas not found in /usr/lib NOT AVAILABLE /cygdrive/c/cygwin/home/Global/numpy-1.3.0/numpy/distutils/system_info.py:1383: UserWarning: Atlas (http://math-atlas.sourceforge.net/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [atlas]) or by setting the ATLAS environment variable. warnings.warn(AtlasNotFoundError.__doc__) blas_info: libraries blas not found in /usr/local/lib FOUND: libraries = ['blas'] library_dirs = ['/usr/lib'] language = f77 FOUND: libraries = ['blas'] library_dirs = ['/usr/lib'] define_macros = [('NO_ATLAS_INFO', 1)] language = f77 lapack_opt_info: lapack_mkl_info: mkl_info: libraries mkl,vml,guide not found in /usr/local/lib libraries mkl,vml,guide not found in /usr/lib NOT AVAILABLE NOT AVAILABLE atlas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries ptf77blas,ptcblas,atlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib numpy.distutils.system_info.atlas_threads_info NOT AVAILABLE atlas_info: libraries f77blas,cblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries f77blas,cblas,atlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib numpy.distutils.system_info.atlas_info NOT AVAILABLE /cygdrive/c/cygwin/home/Global/numpy-1.3.0/numpy/distutils/system_info.py:1290: UserWarning: Atlas (http://math-atlas.sourceforge.net/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [atlas]) or by setting the ATLAS environment variable. warnings.warn(AtlasNotFoundError.__doc__) lapack_info: libraries lapack not found in /usr/local/lib FOUND: libraries = ['lapack'] library_dirs = ['/usr/lib'] language = f77 FOUND: libraries = ['lapack', 'blas'] library_dirs = ['/usr/lib'] define_macros = [('NO_ATLAS_INFO', 1)] language = f77 running install running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler opti ons running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler opt ions running build_src building py_modules sources building library "npymath" sources building extension "numpy.core._sort" sources adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h' to sources. adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig. h' to sources. executing numpy/core/code_generators/generate_numpy_api.py adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__multiarray _api.h' to sources. numpy.core - nothing done with h_files = ['build/src.cygwin-1.5.25-i686-2.5/nump y/core/include/numpy/config.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/inc lude/numpy/numpyconfig.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/ numpy/__multiarray_api.h'] building extension "numpy.core.multiarray" sources adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h' to sources. adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig. h' to sources. executing numpy/core/code_generators/generate_numpy_api.py adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__multiarray _api.h' to sources. adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src' to include_dirs. numpy.core - nothing done with h_files = ['build/src.cygwin-1.5.25-i686-2.5/nump y/core/src/scalartypes.inc', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/ar raytypes.inc', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config .h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__multiarray_api.h'] building extension "numpy.core.umath" sources adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h' to sources. adding 'build/src.cygwin
Re: [Numpy-discussion] Installing numpy under cygwin
Olivia Cheronet wrote: > compile options: '-Inumpy/core/src -Inumpy/core/include > -I/usr/include/python2.5 -c' > gcc: _configtest.c > gcc _configtest.o -llibm.a -o _configtest.exe > /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: crt0.o: > No such file: No such file or directory > collect2: ld returned 1 exit status > /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: crt0.o: > No such file: No such file or directory > collect2: ld returned 1 exit status This is your problem: crt0.o is a file part of the C runtime, necessary to create any executable. This should have been installed at the same time as gcc, I would suggest reinstalling gcc on your cygwin. If this works, you should be able to compile a hello world from the command line, cheers, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Installing numpy under cygwin
Hello David, Below is the full log. Thanks very much for the help. Olivia 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 /usr/local/lib 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 /usr/local/lib libraries ptf77blas,ptcblas,atlas not found in /usr/lib NOT AVAILABLE atlas_blas_info: libraries f77blas,cblas,atlas not found in /usr/local/lib libraries f77blas,cblas,atlas not found in /usr/lib NOT AVAILABLE /cygdrive/c/cygwin/home/Global/numpy-1.3.0/numpy/distutils/system_info.py:1383: UserWarning: Atlas (http://math-atlas.sourceforge.net/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [atlas]) or by setting the ATLAS environment variable. warnings.warn(AtlasNotFoundError.__doc__) blas_info: libraries blas not found in /usr/local/lib FOUND: libraries = ['blas'] library_dirs = ['/usr/lib'] language = f77 FOUND: libraries = ['blas'] library_dirs = ['/usr/lib'] define_macros = [('NO_ATLAS_INFO', 1)] language = f77 lapack_opt_info: lapack_mkl_info: mkl_info: libraries mkl,vml,guide not found in /usr/local/lib libraries mkl,vml,guide not found in /usr/lib NOT AVAILABLE NOT AVAILABLE atlas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries ptf77blas,ptcblas,atlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib numpy.distutils.system_info.atlas_threads_info NOT AVAILABLE atlas_info: libraries f77blas,cblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries f77blas,cblas,atlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib numpy.distutils.system_info.atlas_info /cygdrive/c/cygwin/home/Global/numpy-1.3.0/numpy/distutils/system_info.py:1290: UserWarning: Atlas (http://math-atlas.sourceforge.net/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [atlas]) or by setting the ATLAS environment variable. warnings.warn(AtlasNotFoundError.__doc__) lapack_info: libraries lapack not found in /usr/local/lib FOUND: libraries = ['lapack'] library_dirs = ['/usr/lib'] language = f77 FOUND: libraries = ['lapack', 'blas'] library_dirs = ['/usr/lib'] define_macros = [('NO_ATLAS_INFO', 1)] language = f77 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 building py_modules sources building library "npymath" sources building extension "numpy.core._sort" sources Generating build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h customize GnuFCompiler Found executable /usr/bin/g77 gnu: no Fortran 90 compiler found gnu: no Fortran 90 compiler found customize GnuFCompiler gnu: no Fortran 90 compiler found gnu: no Fortran 90 compiler found customize GnuFCompiler using config C compiler: gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes compile options: '-Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.5 -c' gcc: _configtest.c success! removing: _configtest.c _configtest.o C compiler: gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes compile options: '-Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.5 -c' gcc: _configtest.c _configtest.c:4: warning: function declaration isn't a prototype removing: _configtest.c _configtest.o C compiler: gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes compile options: '-Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.5 -c' gcc: _configtest.c _configtest.c:4: warning: function declaration isn't a prototype removing: _configtest.c _configtest.o C compiler: gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes compile options: '-Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.5 -c' gcc: _configtest.c _configtest.c:4: warning: function declaration isn't a prototype removing: _configtest.c _configtest.o C compiler: gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes compile options: '-Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.5 -c' gcc: _configtest.c _configtest.c:4: warning: function declaration isn't a prototype removing: _configtest.c _configtest.o C compiler: gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes compile options: '-Inumpy/core/src -Inump
Re: [Numpy-discussion] Installing numpy under cygwin
Hi Olivia, On Mon, Nov 23, 2009 at 6:51 AM, Olivia Cheronet wrote: > Hello, > > 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 > MATHLIB > >env variable > > > I have a math library from cygwin (libm.a), but I have not managed to set it. The message is misleading (the message is hopefully improved with the last trunk), and it is almost always caused by a broken toolchain (that is you are missing gcc, or g++, etc...). It would be helpful to have the full build log to help you better, David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Installing numpy under cygwin
Hello, 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 MATHLIB >env variable 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, Olivia - 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 > directory. > > 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. > > David > ___ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://mail.scipy.org/mailman/listinfo/numpy-discussion ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] Installing numpy under cygwin
Hi, 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 >env variable I have a math library from cygwin (libm.a). How should I set this? Thank you, Olivia - 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 > directory. > > 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. > > David > ___ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://mail.scipy.org/mailman/listinfo/numpy-discussion ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
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 > directory. > 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. David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] Installing numpy under cygwin
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 directory. 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. The result is the following: error: Command "gcc -mno-cygwin -mdll -O -Wall -Inumpy/core/include -Ibuild/src. cygwin-1.5.25-i686-2.5/numpy/core/include/numpy -Inumpy/core/src -Inumpy/core/in clude -I/usr/include/python2.5 -c build/src.cygwin-1.5.25-i686-2.5/numpy/core/sr c/npy_math.c -o build/temp.cygwin-1.5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2 .5/numpy/core/src/npy_math.o" failed with exit status 1 I have included below the complete output (and error) I get. What could be the problem? Thank you, Olivia == libraries lapack_atlas not found in /cygdrive/c/cygwin/lib numpy.distutils.system_info.atlas_threads_info NOT AVAILABLE atlas_info: libraries f77blas,cblas,atlas not found in /cygdrive/c/cygwin/lib libraries lapack_atlas not found in /cygdrive/c/cygwin/lib numpy.distutils.system_info.atlas_info NOT AVAILABLE /cygdrive/c/cygwin/home/Global/numpy-1.3.0/numpy/distutils/system_info.py:1290: UserWarning: Atlas (http://math-atlas.sourceforge.net/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [atlas]) or by setting the ATLAS environment variable. warnings.warn(AtlasNotFoundError.__doc__) lapack_info: FOUND: libraries = ['lapack'] library_dirs = ['/cygdrive/c/cygwin/lib'] language = f77 FOUND: libraries = ['lapack', 'blas'] library_dirs = ['/cygdrive/c/cygwin/lib'] define_macros = [('NO_ATLAS_INFO', 1)] language = f77 running config running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler opti ons running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler opt ions running build_src building py_modules sources building library "npymath" sources building extension "numpy.core._sort" sources adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h' to sources. adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig. h' to sources. executing numpy/core/code_generators/generate_numpy_api.py adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__multiarray _api.h' to sources. numpy.core - nothing done with h_files = ['build/src.cygwin-1.5.25-i686-2.5/nump y/core/include/numpy/config.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/inc lude/numpy/numpyconfig.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/ numpy/__multiarray_api.h'] building extension "numpy.core.multiarray" sources adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h' to sources. adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig. h' to sources. executing numpy/core/code_generators/generate_numpy_api.py adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__multiarray _api.h' to sources. adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src' to include_dirs. numpy.core - nothing done with h_files = ['build/src.cygwin-1.5.25-i686-2.5/nump y/core/src/scalartypes.inc', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/ar raytypes.inc', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config .h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__multiarray_api.h'] building extension "numpy.core.umath" sources adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h' to sources. adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig. h' to sources. executing numpy/core/code_generators/generate_ufunc_api.py adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__ufunc_api. h' to sources. adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src' to include_dirs. numpy.core - nothing done with h_files = ['build/src.cygwin-1.5.25-i686-2.5/nump y/core/src/scalartypes.inc', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/ar raytypes.inc', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/umath_funcs.inc' , 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/umath_loops.inc', 'build/src. cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h', 'build/src.cygwin-1.5 .25-i686-2.5/numpy/core/in