From: <ar...@st...> - 2006-11-04 21:22:27
|
Hi, I'm sorry if this might seem like a stupid question to some of you, =20 but I have been struggling for the better part of the afternoon trying =20 to install NumPy on my G4 iBook, so I hope somebody can take the time =20 to lend me a helping hand. I have searched a little in the mail =20 archives and tried to follow the instructions on this page: http://www.scipy.org/Installing_SciPy/Mac_OS_X Python 2.5 is installed, and I have installed Apple's Developer's =20 Tools (i.e. the package "December 2002 Mac OS X Developer Tools"). The =20 GCC/G77-installation seemed to go ok. When I try to install the FFW libraries however, I get an error =20 message telling me that my "C compiler cannot create executables" =20 (full output below). After that I didn't really expect the installation of NumPy to work, =20 but I got a "permission denied"-error message that I'm not so sure is =20 connected to the missing FFW. So I'm at loss... Anyone? Many thanks, Arild N=E6ss =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D %pwd /Users/arildnss/Desktop/fftw-3.1.2 %./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking build system type... powerpc-apple-darwin8.8.0 checking host system type... powerpc-apple-darwin8.8.0 checking for gcc... gcc checking for C compiler default output file name... configure: error: =20 C compiler cannot create executables See `config.log' for more details. %pwd /Users/arildnss/Desktop/numpy-1.0 %python setup.py build Running from numpy source directory. F2PY Version 2_3396 blas_opt_info: FOUND: extra_link_args =3D ['-Wl,-framework', '-Wl,Accelerate'] define_macros =3D [('NO_ATLAS_INFO', 3)] extra_compile_args =3D ['-faltivec', =20 '-I/System/Library/Frameworks/vecLib.framework/Headers'] lapack_opt_info: FOUND: extra_link_args =3D ['-Wl,-framework', '-Wl,Accelerate'] define_macros =3D [('NO_ATLAS_INFO', 3)] extra_compile_args =3D ['-faltivec'] running build running config_fc running build_src building py_modules sources error: build/src.macosx-10.3-fat-2.5/numpy/distutils/__config__.py: =20 Permission denied |
From: Robert K. <rob...@gm...> - 2006-11-04 21:59:05
|
ar...@st... wrote: > Hi, > > I'm sorry if this might seem like a stupid question to some of you, > but I have been struggling for the better part of the afternoon trying > to install NumPy on my G4 iBook, so I hope somebody can take the time > to lend me a helping hand. I have searched a little in the mail > archives and tried to follow the instructions on this page: > http://www.scipy.org/Installing_SciPy/Mac_OS_X Note that these are instructions for installing scipy, so there is a lot there that you don't need to do just to install numpy. Notably, some of the things that you are having problems with. > Python 2.5 is installed, and I have installed Apple's Developer's > Tools (i.e. the package "December 2002 Mac OS X Developer Tools"). The > GCC/G77-installation seemed to go ok. You probably can't use g77 along with Python 2.5. Python 2.5 is built with gcc 4.0 but g77 never got ported to the 4.x platform. However, it's not at all necessary for numpy. > When I try to install the FFW libraries however, I get an error > message telling me that my "C compiler cannot create executables" > (full output below). numpy does not use FFTW at all, so don't let this hold you up. If you want to troubleshoot the problem, however, look at the config.log file for more information. grep for the string "cannot create executables". > After that I didn't really expect the installation of NumPy to work, > but I got a "permission denied"-error message that I'm not so sure is > connected to the missing FFW. You probably tried to run a previous build or install as root. Delete the build/ directory (probably as root) and try another build as a regular user. Don't use root until you actually want to install (and then, only if you need to). -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |
From: <ar...@st...> - 2006-11-04 22:32:18
|
Siterer Robert Kern <rob...@gm...>: > ar...@st... wrote: >> Hi, >> >> I'm sorry if this might seem like a stupid question to some of you, >> but I have been struggling for the better part of the afternoon trying >> to install NumPy on my G4 iBook, so I hope somebody can take the time >> to lend me a helping hand. I have searched a little in the mail >> archives and tried to follow the instructions on this page: >> http://www.scipy.org/Installing_SciPy/Mac_OS_X > > Note that these are instructions for installing scipy, so there is a =20 > lot there > that you don't need to do just to install numpy. Notably, some of the thin= gs > that you are having problems with. I did get the impression that it was kind of an overkill... >> After that I didn't really expect the installation of NumPy to work, >> but I got a "permission denied"-error message that I'm not so sure is >> connected to the missing FFW. > > You probably tried to run a previous build or install as root. =20 > Delete the build/ > directory (probably as root) and try another build as a regular =20 > user. Don't use > root until you actually want to install (and then, only if you need to). That got the installation a lot further, but it still halts with an =20 error message, this time about failing to test the configuration. Arild N=E6ss =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D % python setup.py build Running from numpy source directory. F2PY Version 2_3396 blas_opt_info: FOUND: extra_link_args =3D ['-Wl,-framework', '-Wl,Accelerate'] define_macros =3D [('NO_ATLAS_INFO', 3)] extra_compile_args =3D ['-faltivec', =20 '-I/System/Library/Frameworks/vecLib.framework/Headers'] lapack_opt_info: FOUND: extra_link_args =3D ['-Wl,-framework', '-Wl,Accelerate'] define_macros =3D [('NO_ATLAS_INFO', 3)] extra_compile_args =3D ['-faltivec'] running build running config_fc running build_src building py_modules sources creating build creating build/src.macosx-10.3-fat-2.5 creating build/src.macosx-10.3-fat-2.5/numpy creating build/src.macosx-10.3-fat-2.5/numpy/distutils building extension "numpy.core.multiarray" sources creating build/src.macosx-10.3-fat-2.5/numpy/core Generating build/src.macosx-10.3-fat-2.5/numpy/core/config.h customize NAGFCompiler customize AbsoftFCompiler customize IbmFCompiler Could not locate executable g77 Could not locate executable f77 Could not locate executable gfortran Could not locate executable f95 customize GnuFCompiler customize Gnu95FCompiler customize G95FCompiler customize GnuFCompiler customize Gnu95FCompiler customize NAGFCompiler customize NAGFCompiler using config C compiler: gcc -arch ppc -arch i386 -isysroot =20 /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double =20 -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 compile options: =20 '-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 =20 -Inumpy/core/src -Inumpy/core/include =20 -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 =20 -c' gcc: _configtest.c gcc: cannot specify -o with -c or -S and multiple compilations gcc: cannot specify -o with -c or -S and multiple compilations failure. removing: _configtest.c _configtest.o numpy/core/setup.py:50: DeprecationWarning: raising a string exception =20 is deprecated raise "ERROR: Failed to test configuration" Traceback (most recent call last): File "setup.py", line 89, in <module> setup_package() File "setup.py", line 82, in setup_package configuration=3Dconfiguration ) File "/Users/arildnss/Desktop/numpy-1.0/numpy/distutils/core.py", =20 line 174, in setup return old_setup(**new_attr) File =20 "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/c= ore.py", line 151, in =20 setup dist.run_commands() File =20 "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/d= ist.py", line 974, in =20 run_commands self.run_command(cmd) File =20 "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/d= ist.py", line 994, in =20 run_command cmd_obj.run() File =20 "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/c= ommand/build.py", line 112, in =20 run self.run_command(cmd_name) File =20 "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/c= md.py", line 333, in =20 run_command self.distribution.run_command(command) File =20 "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/d= ist.py", line 994, in =20 run_command cmd_obj.run() File =20 "/Users/arildnss/Desktop/numpy-1.0/numpy/distutils/command/build_src.py", li= ne =20 87, in run self.build_sources() File =20 "/Users/arildnss/Desktop/numpy-1.0/numpy/distutils/command/build_src.py", li= ne =20 106, in build_sources self.build_extension_sources(ext) File =20 "/Users/arildnss/Desktop/numpy-1.0/numpy/distutils/command/build_src.py", li= ne =20 212, in build_extension_sources sources =3D self.generate_sources(sources, ext) File =20 "/Users/arildnss/Desktop/numpy-1.0/numpy/distutils/command/build_src.py", li= ne =20 270, in generate_sources source =3D func(extension, build_dir) File "numpy/core/setup.py", line 50, in generate_config_h raise "ERROR: Failed to test configuration" ERROR: Failed to test configuration |
From: Robert K. <rob...@gm...> - 2006-11-04 22:36:32
|
ar...@st... wrote: > gcc: _configtest.c > gcc: cannot specify -o with -c or -S and multiple compilations > gcc: cannot specify -o with -c or -S and multiple compilations > failure. You're using OS X 10.3.9? There is a bug in distutils on that platform. It was fixed in Python's trunk, but I'm not sure where to find it. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |
From: <ar...@st...> - 2006-11-05 08:09:46
|
Siterer Robert Kern <rob...@gm...>: > ar...@st... wrote: >> gcc: _configtest.c >> gcc: cannot specify -o with -c or -S and multiple compilations >> gcc: cannot specify -o with -c or -S and multiple compilations >> failure. > > You're using OS X 10.3.9? There is a bug in distutils on that =20 > platform. It was > fixed in Python's trunk, but I'm not sure where to find it. > > -- > Robert Kern No, I'm on OS X 10.4.8, so my OS version shouldn't be the problem Arild N=E6ss |
From: Robert K. <rob...@gm...> - 2006-11-04 22:40:06
|
ar...@st... wrote: > Python 2.5 is installed, and I have installed Apple's Developer's > Tools (i.e. the package "December 2002 Mac OS X Developer Tools"). By the way, this is *really* old. Long before there were Universal binaries (which is what Python 2.5 is). I believe you will want to install Xcode 2.4.1 which was released on Tuesday. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |
From: <ar...@st...> - 2006-11-05 08:17:33
|
Siterer Robert Kern <rob...@gm...>: > ar...@st... wrote: > >> Python 2.5 is installed, and I have installed Apple's Developer's >> Tools (i.e. the package "December 2002 Mac OS X Developer Tools"). > > By the way, this is *really* old. Long before there were Universal binarie= s > (which is what Python 2.5 is). I believe you will want to install Xcode 2.= 4.1 > which was released on Tuesday. > > -- > Robert Kern I was wondering about that, the instructions page on scipy.org wasn't =20 very specific. I don't need anything else than Xcode 2.4.1, so I can =20 remove the Dec2002 package? And do I need even to run numpy (and not =20 scipy)? Arild N=E6ss |
From: Robert K. <rob...@gm...> - 2006-11-05 08:47:43
|
ar...@st... wrote: > Siterer Robert Kern <rob...@gm...>: > >> ar...@st... wrote: >> >>> Python 2.5 is installed, and I have installed Apple's Developer's >>> Tools (i.e. the package "December 2002 Mac OS X Developer Tools"). >> By the way, this is *really* old. Long before there were Universal binaries >> (which is what Python 2.5 is). I believe you will want to install Xcode 2.4.1 >> which was released on Tuesday. >> >> -- >> Robert Kern > > I was wondering about that, the instructions page on scipy.org wasn't > very specific. I don't need anything else than Xcode 2.4.1, so I can > remove the Dec2002 package? And do I need even to run numpy (and not > scipy)? Yes, remove the Dec2002 package and install Xcode 2.4.1. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |
From: Steve L. <lis...@ar...> - 2006-11-05 16:17:26
|
Hi, > And do I need even to run numpy (and not scipy)? I'm not sure what you mean with you last question here, but just in case it's not clear: If you want to use scipy, you need to install numpy. You do *not* have to install scipy if all you need is numpy. -steve |
From: <ar...@st...> - 2006-11-05 18:33:05
|
Siterer Steve Lianoglou <lis...@ar...>: > Hi, > >> And do I need even to run numpy (and not scipy)? > > I'm not sure what you mean with you last question here, but just in > case it's not clear: > > If you want to use scipy, you need to install numpy. > You do *not* have to install scipy if all you need is numpy. > > -steve I'm sorry, I was a tad too quick typing there. I meant to say "And do I even need to [install Xcode] to run numpy?" Robert pointed out that a lot things mentioned in the install guide were necessary to run scipy, but that you could run numpy without them. Therefore I was wondering if installing the newest Xcode package was likely to fix the error message I am now getting when trying to install numpy: File "numpy/core/setup.py", line 50, in generate_config_h raise "ERROR: Failed to test configuration" ERROR: Failed to test configuration Arild |
From: Steve L. <lis...@ar...> - 2006-11-05 19:28:05
|
> I'm sorry, I was a tad too quick typing there. I meant to say "And do > I even need to [install Xcode] to run numpy?" Robert pointed out that > a lot things mentioned in the install guide were necessary to run > scipy, but that you could run numpy without them. > > Therefore I was wondering if installing the newest Xcode package was > likely to fix the error message I am now getting when trying to > install numpy: I think Robert may have suggested to install the newest XCode because it will give you a newer gcc that can have a better chance compiling numpy correctly (or at least will remove another "unkown" to help find your true problem). Maybe there'd be some "Universal Binary-aware"ness that the old xcode gcc might be missing that you'll get w/ the new one and since Python 2.5 is universal, this might be it. Getting the new xcode would be the simplest part of the install anyway, so .. why not :-) -steve |
From: Christopher B. <Chr...@no...> - 2006-11-06 17:38:14
|
I think it's time to get MacPython2.5 and a set up packages on PythonMac org, and build a numpy for it (and SciPy and Matplotlib too...) Bob, can you set up the page, and then we can start populating it? -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |
From: Bob I. <bo...@re...> - 2006-11-06 17:42:40
|
On 11/6/06, Christopher Barker <Chr...@no...> wrote: > > I think it's time to get MacPython2.5 and a set up packages on PythonMac > org, and build a numpy for it (and SciPy and Matplotlib too...) > > Bob, can you set up the page, and then we can start populating it? I'll put it up when there's something to put there. Doesn't make sense to have an empty page. -bob |
From: Christopher B. <Chr...@no...> - 2006-11-06 17:41:35
|
ar...@st... wrote: > I'm sorry, I was a tad too quick typing there. I meant to say "And do > I even need to [install Xcode] to run numpy?" You need Xcode to build numpy (or anything else). If you can find a binary, then you should be able to just run that. One of us should get a binary for 2.5 out there soon. by the way, if you can run 2.4 instead, you'll find a lot of binaries for various packages here: http://www.pythonmac.org/packages/py24-fat/index.html -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |