Hi Mark,
I guess we should have foreseen this issue! When Apple released 10.6 they brought out more complete support for 64 bit architectures. Wayne builds code on OS X 10.4 which is very firmly 32 bit only. When you were running OSX 10.5 (also 32 bit) everything was fine, but now that you've upgraded to OSX 10.6 the Python executable in the precompiled code (32 bit) won't match the default architecture built when you run the install script (which will produce 64 bit code as you now have a 64 bit computer - congratulations!).
You can spot all this from the
> mach-o, but
> wrong architecture
line.
A quick fix (which will result in everything Analysis being 32 bit) would be to edit environment.txt :
Where you see
FPIC_FLAG =
(yours might be "FPIC_FLAG = -fPIC" keep it as it is)
add the flag
-arch i386
so you have
FPIC_FLAG = -arch i386
or
FPIC_FLAG = -fPIC -arch i386
You'll then need to
$ make clean && make && make links
This *should* force gcc to build i386 (32 bit) code which will play nicely with the bundled python. Of course, using 64 bit Analysis may have advantages (what I'm not sure) but we need to think of a smart way to handle this!
Hope that works, do let me know if it doesn't.
Dan
On 1 Dec 2009, at 22:26, Mark Pfuhl wrote:
> Hi!
> I skimmed through past posts regarding potential problems with analysis on the new
> version of Mac OS but the problem that I had doesn't feature. I had analysis 2.0 running
> as precompiled version on the previous version of Mac OS without any problems. Now I
> have upgraded to 10.6.2 and wanted to upgrade to analysis 2.1. I downloaded the
> precompiled version for intel macs and ran the config script. When I start analysis I get
> the following error message:
>
> ./analysis: line 9: 10183 Segmentation fault
> /Applications/ccpnmr/python2.5/bin/python2.5 -i -O
> ${CCPNMR_TOP_DIR}/ccpnmr2.1/python/ccpnmr/analysis/AnalysisGui.py $*
>
> I thought that maybe there is a problem using the ccpn copy of python and started the
> script with the Macs own python (2.5) but that also crashes, but maybe the message is a
> bit more helpful:
>
> Error, the Analysis module will not work, something is wrong with the C code.
> Traceback (most recent call last):
> File "AnalysisGui.py", line 81, in <module>
> from ccpnmr.analysis.AnalysisPopup import AnalysisPopup
> File "/Applications/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py", line
> 90, in <module>
> from ccpnmr.analysis.Analysis import Analysis
> File "/Applications/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/Analysis.py", line 87, in
> <module>
> from memops.c.MemCache import MemCache
> ImportError: dlopen(/Applications/ccpnmr/ccpnmr2.1/python/memops/c/MemCache.so,
> 2): no suitable image found. Did find:
> /Applications/ccpnmr/ccpnmr2.1/python/memops/c/MemCache.so: mach-o, but
> wrong architecture
>
> Any suggestions welcome!
> thanks,
> mark
Daniel O'Donovan
[log in to unmask]
|