[IPython-user] Can somebody help me with readline support?
Nathan
frizop at yahoo.com
Thu Aug 24 10:41:39 CDT 2006
I figured it out,
listed here: http://mail.python.org/pipermail/python-bugs-list/2006-March/032348.html
it says that there is a bug in the python Makefile when you do a ./configure --framework and then make.
--- Start Quote ----
analysis:
---------
The arch flag for the Python shared library in
the framework is incorrect.
file shows Python.framework/Versions/2.4/Python
to be a PPC binary.
scroll up in terminal to find link statement for
Python:
libtool -o Python.framework/Versions/2.4/Python
-dynamic libpython2.4.a \
-lSystem -lSystemStubs -arch_only ppc
-install_name
/Library/Frameworks/Python.framework/Python.framework/Versions/2.4/Python
-compatibility_version 2.4 -current_version 2.4
The '-arch_only ppc' flag is the problem.
workaround:
-----------
After running configure, open makefile and so
a s/arch_only ppc/arch_only i386/g
--- end quote ---
So there you have it, I did a ./configure, then a "sed -i 's/arch_only ppc/arch_only i386/g' Makefile"
make; sudo make install
and it works fine.
Thanks for all of your help.
--Nathan
----- Original Message ----
From: Steve Lianoglou
To: Nathan
Cc: ipython-user at scipy.org
Sent: Thursday, August 24, 2006 10:15:45 AM
Subject: Re: [IPython-user] Can somebody help me with readline support?
Hi Again,
> So when trying to follow the instructions listed in the site you
> linked, I got the following error:
>
> /usr/bin/ld: warning Python.framework/Versions/2.4/Python cputype
> (18, architecture ppc) does not match cputype (7) for specified -
> arch flag: i386 (file not loaded)
> /usr/bin/ld: Undefined symbols:
> _PyMac_Error
> _Py_Main
> collect2: ld returned 1 exit status
> make: *** [python.exe] Error 1
>
> It would appear that intel arch is not supported on OS X? I'm going
> to research the python forums/lists whatever and see how they fix
> it. In the mean time, I'll check out Darrens response and see if I
> can figure out what he has done.
Hmm .. it definitely is .. since I'm running on an MacBook Pro
myself :-)
I think that's a really weird error you're getting -- why do I see
"make: *** [python.exe] Error 1" bombing out there? Aren't *.exe
files an MS Windows thing?
Is this happening during compilation of python itself? I've compiled
python before and I'm pretty sure I didn't hit any speed bumps (with
that part, at least) and there's nothing particularly special about
my compiling environment. You didn't happen to switch to using gcc3.3
with that gcc_select call, did you?
Also it seemed like you had another version of 2.4 installed .. where/
what did you use for that? Maybe you could remove your previously
installed version and try again (I think the user installed one is
in /Library/Frameworks/Python.framework/ (where as the official
system one is in
/System/Library/Frameworks/Python.framework/)
Sorry you're having problems ... if the MacPython thing doesn't work
out for you, I can try to help out w/ compiling your own, or setting
you up with darwinports (http://macports.org/).
-steve
_______________________________________________
IPython-user mailing list
IPython-user at scipy.org
http://projects.scipy.org/mailman/listinfo/ipython-user
More information about the IPython-user
mailing list