Hi, I am installing Numpy 1.0.3 on Solaris 10. I am new to Numpy install. Here are what I did and the result of 'python setup.py install'. Please help. Thanks in advance. I set: setenv CFLAGS "-xchip=opteron " setenv CXXFLAGS "-xchip=opteron " setenv CC /opt/SUNWspro/bin/cc setenv CXX /opt/SUNWspro/bin/CC setenv LDFLAGS " -L/lib " setenv LD_LIBRARY_PATH /opt/SUNWspro/lib:$LD_LIBRARY_PATH Results of 'python setup.py install': Running from numpy source directory. F2PY Version 2_3816 blas_opt_info: blas_mkl_info: libraries mkl,vml,guide not found in /usr/sfw/lib 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 lapack,blas not found in /usr/sfw/lib libraries lapack,blas not found in /usr/local/lib libraries lapack,blas not found in /usr/lib NOT AVAILABLE atlas_blas_info: libraries lapack,blas not found in /usr/sfw/lib libraries lapack,blas not found in /usr/local/lib libraries lapack,blas not found in /usr/lib NOT AVAILABLE /net/nfs1-data/main/apps/src/numpy-1.0.3/numpy/distutils/system_info.py:1314: 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/sfw/lib libraries blas not found in /usr/local/lib libraries blas not found in /usr/lib NOT AVAILABLE /net/nfs1-data/main/apps/src/numpy-1.0.3/numpy/distutils/system_info.py:1323: UserWarning: Blas (http://www.netlib.org/blas/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [blas]) or by setting the BLAS environment variable. warnings.warn(BlasNotFoundError.__doc__) blas_src_info: NOT AVAILABLE /net/nfs1-data/main/apps/src/numpy-1.0.3/numpy/distutils/system_info.py:1326: UserWarning: Blas (http://www.netlib.org/blas/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [blas_src]) or by setting the BLAS_SRC environment variable. warnings.warn(BlasSrcNotFoundError.__doc__) NOT AVAILABLE lapack_opt_info: lapack_mkl_info: mkl_info: libraries mkl,vml,guide not found in /usr/sfw/lib 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 lapack,blas not found in /usr/sfw/lib libraries lapack_atlas not found in /usr/sfw/lib libraries lapack,blas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries lapack,blas 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 lapack,blas not found in /usr/sfw/lib libraries lapack_atlas not found in /usr/sfw/lib libraries lapack,blas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries lapack,blas not found in /usr/lib libraries lapack_atlas not found in /usr/lib numpy.distutils.system_info.atlas_info NOT AVAILABLE /net/nfs1-data/main/apps/src/numpy-1.0.3/numpy/distutils/system_info.py:1221: 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/sfw/lib libraries lapack not found in /usr/local/lib libraries lapack not found in /usr/lib NOT AVAILABLE /net/nfs1-data/main/apps/src/numpy-1.0.3/numpy/distutils/system_info.py:1232: 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 /net/nfs1-data/main/apps/src/numpy-1.0.3/numpy/distutils/system_info.py:1235: UserWarning: 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 non-existing path in '/net/nfs1-data/main/apps/src/numpy-1.0.3': 'COMPATIBILITY' non-existing path in '/net/nfs1-data/main/apps/src/numpy-1.0.3': 'scipy_compatibility' 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 extension "numpy.core.multiarray" sources adding 'build/src.solaris-2.10-i86pc-2.3/numpy/core/config.h' to sources. executing numpy/core/code_generators/generate_array_api.py adding 'build/src.solaris-2.10-i86pc-2.3/numpy/core/__multiarray_api.h' to sources. adding 'build/src.solaris-2.10-i86pc-2.3/numpy/core/src' to include_dirs. numpy.core - nothing done with h_files= ['build/src.solaris-2.10-i86pc-2.3/numpy/core/src/scalartypes.inc', 'build/src.solaris-2.10-i86pc-2.3/numpy/core/src/arraytypes.inc', 'build/src.solaris-2.10-i86pc-2.3/numpy/core/config.h', 'build/src.solaris-2.10-i86pc-2.3/numpy/core/__multiarray_api.h'] building extension "numpy.core.umath" sources adding 'build/src.solaris-2.10-i86pc-2.3/numpy/core/config.h' to sources. executing numpy/core/code_generators/generate_ufunc_api.py adding 'build/src.solaris-2.10-i86pc-2.3/numpy/core/__ufunc_api.h' to sources. adding 'build/src.solaris-2.10-i86pc-2.3/numpy/core/src' to include_dirs. numpy.core - nothing done with h_files= ['build/src.solaris-2.10-i86pc-2.3/numpy/core/src/scalartypes.inc', 'build/src.solaris-2.10-i86pc-2.3/numpy/core/src/arraytypes.inc', 'build/src.solaris-2.10-i86pc-2.3/numpy/core/config.h', 'build/src.solaris-2.10-i86pc-2.3/numpy/core/__ufunc_api.h'] building extension "numpy.core._sort" sources adding 'build/src.solaris-2.10-i86pc-2.3/numpy/core/config.h' to sources. executing numpy/core/code_generators/generate_array_api.py adding 'build/src.solaris-2.10-i86pc-2.3/numpy/core/__multiarray_api.h' to sources. numpy.core - nothing done with h_files= ['build/src.solaris-2.10-i86pc-2.3/numpy/core/config.h', 'build/src.solaris-2.10-i86pc-2.3/numpy/core/__multiarray_api.h'] building extension "numpy.core.scalarmath" sources adding 'build/src.solaris-2.10-i86pc-2.3/numpy/core/config.h' to sources. executing numpy/core/code_generators/generate_array_api.py adding 'build/src.solaris-2.10-i86pc-2.3/numpy/core/__multiarray_api.h' to sources. executing numpy/core/code_generators/generate_ufunc_api.py adding 'build/src.solaris-2.10-i86pc-2.3/numpy/core/__ufunc_api.h' to sources. numpy.core - nothing done with h_files= ['build/src.solaris-2.10-i86pc-2.3/numpy/core/config.h', 'build/src.solaris-2.10-i86pc-2.3/numpy/core/__multiarray_api.h', 'build/src.solaris-2.10-i86pc-2.3/numpy/core/__ufunc_api.h'] building extension "numpy.core._dotblas" sources building extension "numpy.lib._compiled_base" sources building extension "numpy.numarray._capi" sources building extension "numpy.fft.fftpack_lite" sources building extension "numpy.linalg.lapack_lite" sources ### Warning: Using unoptimized lapack ### adding 'numpy/linalg/lapack_litemodule.c' to sources. adding 'numpy/linalg/zlapack_lite.c' to sources. adding 'numpy/linalg/dlapack_lite.c' to sources. adding 'numpy/linalg/blas_lite.c' to sources. adding 'numpy/linalg/dlamch.c' to sources. adding 'numpy/linalg/f2c_lite.c' to sources. building extension "numpy.random.mtrand" sources customize SunFCompiler customize SunFCompiler customize SunFCompiler using config C compiler: /opt/SUNWspro/bin/cc -i -xO4 -xspace -xstrconst -xpentium -mr -DANSICPP -D__STDC_VERSION__=199409L -DNDEBUG -O -xchip=opteron compile options: '-Inumpy/core/src -Inumpy/core/include -I/usr/sfw/include/python2.3 -c' cc: _configtest.c "_configtest.c", line 7: #error: No _WIN32 cc: acomp failed for _configtest.c "_configtest.c", line 7: #error: No _WIN32 cc: acomp failed for _configtest.c failure. removing: _configtest.c _configtest.o building data_files sources running build_py copying build/src.solaris-2.10-i86pc-2.3/numpy/__config__.py -> build/lib.solaris-2.10-i86pc-2.3/numpy copying build/src.solaris-2.10-i86pc-2.3/numpy/distutils/__config__.py -> build/lib.solaris-2.10-i86pc-2.3/numpy/distutils running build_ext customize UnixCCompiler customize UnixCCompiler using build_ext building 'numpy.core.multiarray' extension compiling C sources C compiler: /opt/SUNWspro/bin/cc -i -xO4 -xspace -xstrconst -xpentium -mr -DANSICPP -D__STDC_VERSION__=199409L -DNDEBUG -O -xchip=opteron compile options: '-Ibuild/src.solaris-2.10-i86pc-2.3/numpy/core/src -Inumpy/core/include -Ibuild/src.solaris-2.10-i86pc-2.3/numpy/core -Inumpy/core/src -Inumpy/core/include -I/usr/sfw/include/python2.3 -c' /sgnome/tools/x86-solaris/forte/SOS8/SUNWspro/bin/cc -G -L/lib -xchip=opteron build/temp.solaris-2.10-i86pc-2.3/numpy/core/src/multiarraymodule.o -lm -o build/lib.solaris-2.10-i86pc-2.3/numpy/core/multiarray.so sh: /sgnome/tools/x86-solaris/forte/SOS8/SUNWspro/bin/cc: not found sh: /sgnome/tools/x86-solaris/forte/SOS8/SUNWspro/bin/cc: not found error: Command "/sgnome/tools/x86-solaris/forte/SOS8/SUNWspro/bin/cc -G -L/lib -xchip=opteron build/temp.solaris-2.10-i86pc-2.3/numpy/core/src/multiarraymodule.o -lm -o build/lib.solaris-2.10-i86pc-2.3/numpy/core/multiarray.so" failed with exit status 1
Yang, Lu wrote:
Hi, I am installing Numpy 1.0.3 on Solaris 10. I am new to Numpy install. Here are what I did and the result of 'python setup.py install'. Please help. Thanks in advance.
[snip]
C compiler: /opt/SUNWspro/bin/cc -i -xO4 -xspace -xstrconst -xpentium -mr -DANSICPP -D__STDC_VERSION__=199409L -DNDEBUG -O -xchip=opteron
compile options: '-Ibuild/src.solaris-2.10-i86pc-2.3/numpy/core/src -Inumpy/core/include -Ibuild/src.solaris-2.10-i86pc-2.3/numpy/core -Inumpy/core/src -Inumpy/core/include -I/usr/sfw/include/python2.3 -c' /sgnome/tools/x86-solaris/forte/SOS8/SUNWspro/bin/cc -G -L/lib -xchip=opteron build/temp.solaris-2.10-i86pc-2.3/numpy/core/src/multiarraymodule.o -lm -o build/lib.solaris-2.10-i86pc-2.3/numpy/core/multiarray.so sh: /sgnome/tools/x86-solaris/forte/SOS8/SUNWspro/bin/cc: not found sh: /sgnome/tools/x86-solaris/forte/SOS8/SUNWspro/bin/cc: not found error: Command "/sgnome/tools/x86-solaris/forte/SOS8/SUNWspro/bin/cc -G -L/lib -xchip=opteron build/temp.solaris-2.10-i86pc-2.3/numpy/core/src/multiarraymodule.o -lm -o build/lib.solaris-2.10-i86pc-2.3/numpy/core/multiarray.so" failed with exit status 1
It looks like your compiler chain is broken. It looks like the C compiler is first selected as /opt/SUNWspro/bin/cc but then an attempt is made to use /sgnome/tools/x86-solaris/forte/SOS8/SUNWspro/bin/cc for the linking step. This step is failing because it can't find the compiler. Can you build other things on your platform? -Travis
Thanks, Travis. I don't have problem building other applications on the same platform.
Are there any files in the extracted /numpy-1.0.3 that I can modify the path of the C
compiler? I have checked all the files in it withouth luck.
Thanks a lot.
Quoting Travis Oliphant
Yang, Lu wrote:
Hi, I am installing Numpy 1.0.3 on Solaris 10. I am new to Numpy install. Here are what I did and the result of 'python setup.py install'. Please help. Thanks in advance.
[snip]
C compiler: /opt/SUNWspro/bin/cc -i -xO4 -xspace -xstrconst -xpentium -mr -DANSICPP -D__STDC_VERSION__=199409L -DNDEBUG -O -xchip=opteron
compile options: '-Ibuild/src.solaris-2.10-i86pc-2.3/numpy/core/src -Inumpy/core/include -Ibuild/src.solaris-2.10-i86pc-2.3/numpy/core -Inumpy/core/src -Inumpy/core/include -I/usr/sfw/include/python2.3 -c' /sgnome/tools/x86-solaris/forte/SOS8/SUNWspro/bin/cc -G -L/lib -xchip=opteron build/temp.solaris-2.10-i86pc-2.3/numpy/core/src/multiarraymodule.o -lm -o build/lib.solaris-2.10-i86pc-2.3/numpy/core/multiarray.so sh: /sgnome/tools/x86-solaris/forte/SOS8/SUNWspro/bin/cc: not found sh: /sgnome/tools/x86-solaris/forte/SOS8/SUNWspro/bin/cc: not found error: Command "/sgnome/tools/x86-solaris/forte/SOS8/SUNWspro/bin/cc -G -L/lib -xchip=opteron build/temp.solaris-2.10-i86pc-2.3/numpy/core/src/multiarraymodule.o -lm -o build/lib.solaris-2.10-i86pc-2.3/numpy/core/multiarray.so" failed with exit status 1
It looks like your compiler chain is broken. It looks like the C compiler is first selected as /opt/SUNWspro/bin/cc but then an attempt is made to use /sgnome/tools/x86-solaris/forte/SOS8/SUNWspro/bin/cc for the linking step. This step is failing because it can't find the compiler.
Can you build other things on your platform?
-Travis
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Yang, Lu wrote:
Thanks, Travis. I don't have problem building other applications on the same platform. Are there any files in the extracted /numpy-1.0.3 that I can modify the path of the C compiler? I have checked all the files in it withouth luck.
The C-compiler that is used is the same one used to build Python. It is picked up using Python distutils. So, another problem could be that the compiler used to build Python is not available. You should look in the file $PYTHONDIR/config/Makefile where $PYTHONDIR is where Python is installed on your system. There will be a line CC = in there. That's the compiler that is going to be used. Also, check your $PATH variable when you are building numpy if a full path name is not given in the CC line to see what compiler will be picked up. These configuration issues are usually a matter of getting the right compiler and the right linker. Good luck, -Travis
On Sun, May 27, 2007 at 12:29:30PM -0600, Travis Oliphant wrote:
Yang, Lu wrote:
Thanks, Travis. I don't have problem building other applications on the same platform. Are there any files in the extracted /numpy-1.0.3 that I can modify the path of the C compiler? I have checked all the files in it withouth luck.
The C-compiler that is used is the same one used to build Python. It is picked up using Python distutils. So, another problem could be that the compiler used to build Python is not available.
You should look in the file
$PYTHONDIR/config/Makefile
where $PYTHONDIR is where Python is installed on your system.
There will be a line
CC =
in there. That's the compiler that is going to be used. Also, check your $PATH variable when you are building numpy if a full path name is not given in the CC line to see what compiler will be picked up.
Also, check that you don't have a CC environment variable defined (i.e., echo $CC should be blank), as that will overrride the Python Makefile settings. -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |cookedm@physics.mcmaster.ca
participants (3)
-
David M. Cooke
-
Travis Oliphant
-
Yang, Lu