[Numpy-discussion] F2PY error : ... on platform 'posix' with 'gcc' compiler
Fri Sep 25 13:43:21 CDT 2009
Thank you a lot for your help. So I deleted as you said, but then I do with
--enable-framework for python, at the make there is an error :
ln -fsn 2.6 Python.framework/Versions/Current
ln -fsn Versions/Current/Python Python.framework/Python
ln -fsn Versions/Current/Headers Python.framework/Headers
ln -fsn Versions/Current/Resources Python.framework/Resources
gcc -u _PyMac_Error Python.framework/Versions/2.6/Python -o python.exe \
ld: warning: in Python.framework/Versions/2.6/Python, file is not of
"_PyMac_Error", referenced from:
"_Py_Main", referenced from:
_main in python.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [python.exe] Error 1
Do you know why I have this ? And also does "export
MACOSX_DEPLOYMENT_TARGET=10.6" is necessary ?
On Fri, Sep 25, 2009 at 2:22 PM, Robert Kern <email@example.com> wrote:
> On Fri, Sep 25, 2009 at 13:02, Arthur Bousquet <firstname.lastname@example.org>
> > I got :
> > Arths-MacBook-Pro:~ arthbous$ python2.6
> > ActivePython 188.8.131.52 (ActiveState Software Inc.) based on
> > Python 2.6.2 (r262:71600, Apr 24 2009, 21:40:46)
> > [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
> > Type "help", "copyright", "credits" or "license" for more information.
> >>>> import sys
> >>>> sys.executable
> > This is weird because when I compiled numpy, I used
> > "/usr/local/bin/python2.6 setup.py build" and
> > "sudo /usr/local/bin/python2.6 setup.py install".
> > How can I get rid of all the other python ?
> Be aware that the framework version of Python will make the symbolic
> link /usr/local/bin/python2.6 to point to its own executable. If you
> are sure that you do not need ActiveState's Python, delete the
> directory /Library/Frameworks/Python.framework/ and delete
> /usr/local/bin/python and /usr/local/bin/python2.6 and re-install your
> version into /usr/local again.
> However, I do recommend using a framework build of Python in order to
> be the most compatible with everything. In that case, delete the
> things above and also delete the Python files from /usr/local/ and
> build your Python using --enable-framework.
> 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
> NumPy-Discussion mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion