From: Peter K. <pet...@us...> - 2012-07-17 14:22:44
|
On 07/17/2012 03:45 PM, Strong, Shadrian B. wrote: > I am having a lot of Mac installation problems. I understand you > recommend a linux machine, but I don't have one to work from. Are there > any suggestions you might have with building on a Mac? I continue to get > fatal errors when trying to build (see below) > > *bash-3.2$* python setup.py build > > running build > running build_ext > building 'cctk' extension > gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv > -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch > x86_64 -pipe > -I/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/numpy/core/include > -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 > -c cctkmodule.c -o build/temp.macosx-10.6-universal-2.6/cctkmodule.o > /usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler > (/usr/bin/../libexec/gcc/darwin/ppc/as or > /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not > installed > Installed assemblers are: > /usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64 > /usr/bin/../libexec/gcc/darwin/i386/as for architecture i386 > cctkmodule.c:467: fatal error: error writing to -: Broken pipe > compilation terminated. > lipo: can't open input file: > /var/folders/5n/5nmXq6bHFwGnb61yF+TAkVwwcxU/-Tmp-//ccHNmoeO.out (No such > file or directory) > error: command 'gcc-4.2' failed with exit status 1 > > Thanks, > Shay Strong > > *Dr. Shadrian B. Strong* > The Johns Hopkins University Applied Physics Laboratory > Space Department > EO/IR Sensors and Atmospheric Modeling > > Office: (443)778-9998 > Email: Sha...@jh... Dear Shay, I don't own a mac system, so I can't really test myself, but is seems to me that this report relates to the same problem: http://stackoverflow.com/questions/6324912/issue-installing-python-module-on-osx-10-6-and-with-gcc-4-0-and-4-2 Allegedly, it is an incompatibility between the version of Xcode and Python. On the python release page for 2.7.3 there is a note: `Also, on Mac OS X 10.6, if you need to build C extension modules with the 32-bit-only Python installed, you will need Apple Xcode 3, not 4. The 64-bit/32-bit Python can use either Xcode 3 or Xcode 4.' Therefore, I'd suggest you install the 64-bit version of Python if you haven't already. If you have, the problem might be somewhere else. Please do let me know in that case. Also note that the version of python ccplot is compatible with is restricted by pynio. Unless you are willing the compile the library from source (rather complicated), the binaries are available only for python up to 2.7.1 on the EOS, or 2.6.5 on ccplot.org, even though the version for 2.7.1 might happen to work with the latest 2.7.3. Good luck! Regards, Peter |