473,732 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Arrghh... Problems building Python from source on OS X --


Hi all,

I have been trying for some time to build Python 2.4.x
from source on OS X 10.4.6. I've found *numerous*
postings on various mailing lists and web pages
documenting the apparently well-known problems of
doing so. Various problems arise either in the
../configure step, with configure arguments that don't
work, or in the compile, or in my case in the link
step with libtool.

The configure options I'm using are the following:
--enable-framework --with-pydebug --with-debug=yes
--prefix=/usr --with-dyld --program-suffix=.exe
--enable-universalsdk

I've managed to get past configure and can compile
everything, but in the link I get the error "Undefined
symbols: ___eprintf" . This appears to have
something to do with dynamic library loading not
properly pulling in libgcc. I've tried with -lgcc in
the LD options, but that produces a configure error
"cannot compute sizeof...".

If I remove "--enable-framework" the complete build
works, but unfortunately that is the one critical
element that I need.

The web pages I've found referring to this range from
2001 to present -- still apparently everybody is
having problems with this. Does *anybody* here have
Python built from source on this OS?

Jeffrey
Jun 26 '06 #1
1 1703
In article <ma************ *************** ************@py thon.org>,
"J. Jeffrey Close" <jj***********@ yahoo.com> wrote:
Hi all,

I have been trying for some time to build Python 2.4.x
from source on OS X 10.4.6. I've found *numerous*
postings on various mailing lists and web pages
documenting the apparently well-known problems of
doing so. Various problems arise either in the
./configure step, with configure arguments that don't
work, or in the compile, or in my case in the link
step with libtool.

The configure options I'm using are the following:
--enable-framework --with-pydebug --with-debug=yes
--prefix=/usr --with-dyld --program-suffix=.exe
--enable-universalsdk

I've managed to get past configure and can compile
everything, but in the link I get the error "Undefined
symbols: ___eprintf" . This appears to have
something to do with dynamic library loading not
properly pulling in libgcc. I've tried with -lgcc in
the LD options, but that produces a configure error
"cannot compute sizeof...".

If I remove "--enable-framework" the complete build
works, but unfortunately that is the one critical
element that I need.

The web pages I've found referring to this range from
2001 to present -- still apparently everybody is
having problems with this. Does *anybody* here have
Python built from source on this OS?


Hi, Jeffrey,

Yes, I use Python 2.4.3 built this way. I did not have any significant
troubles building Python on my 10.4 system. My configuration step was a
little different from yours, but basically I just checked out the 2.4.3
source from Subversion, and this is how I configured it:

env CFLAGS="-I/usr/local/include
-I/Library/Frameworks/Tk.framework/Headers" \
LDFLAGS="-L/usr/local/lib" \
configure --enable-framework --enable-shared

I included /usr/local/include and /usr/local/lib so that the build could
use the version of GNU readline I installed via Darwin ports. The Tk
headers allow pythonw to build properly.

Having configured, I built and installed via:

make
sudo make frameworkinstal l

I hope this may be helpful to you.

-M

--
Michael J. Fromberger | Lecturer, Dept. of Computer Science
http://www.dartmouth.edu/~sting/ | Dartmouth College, Hanover, NH, USA
Jun 28 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
7182
by: Carl Waldbieser | last post by:
I tried to adapt the instructions for building the M2Crypto module (http://sandbox.rulemaker.net/ngps/m2/INSTALL.html) to build a version compatible with Python2.3, but I've had some mixed results. I actually got everything to build and install, but when I try to import M2Crypto-- well, here is a sample session: >>> import M2Crypto Traceback (most recent call last): File "<interactive input>", line 1, in ? File...
2
2680
by: Kylotan | last post by:
I need to be able to build Py2Exe from the source code as I am making a Windows executable where I wish to preprocess the modules before importing them.It looks like I can do this by adding lines to Load_Module() in py2exe's start.c. However problem I have is that I can't build Py2Exe using the instructions provided. Using the designated command of "python setup.py install" I get this error: Traceback (most recent call last): File...
0
1396
by: Jeff Epler | last post by:
I tried building the documentation with "make pdf", and got a long list of warnings on "lib" (hbox, vbox, and reference warnings), ending with a TeX error: LaTeX Warning: Reference `module-cookielib' on page 512 undefined on input line 73. ) (/usr/src/cvs-src/python/dist/src/Doc/lib/libxmlrpclib.tex Overfull \vbox (118.57pt too high) has occurred while \output is active Overfull \hbox (66.62143pt too wide) in paragraph at lines 56--69
0
1771
by: Samuel M. Smith | last post by:
I can build python 2.4.2 from source on the embedded linux box when I nfs mount and boot a full debian distribution. The embedded box also has stripped down linux distribution in onboard flash. My goal is to run python from the stripped down linux in onboard flash. I can successfully install python to the onboard flash when booted to the nfs version by using make install with $DESTDIR set to the onboard flash mounted directory
15
2958
by: John Nagle | last post by:
I've been installing Python and its supporting packages on a dedicated server with Fedora Core 6 for about a day now. This is a standard dedicated rackmount server in a colocation facility, controlled via Plesk control panel, and turned over to me with Fedora Core 6 in an empty state. This is the standard way you get a server in a colo today. Bringing Python up in this completely clean environment is a huge hassle, and it doesn't...
15
3222
by: kyosohma | last post by:
Hi, I am trying to get a small group of volunteers together to create Windows binaries for any Python extension developer that needs them, much like the package/extension builders who volunteer their time to create Linux RPMs. The main thing I need are people willing to test the binaries to make sure the extension is stable. This would require installing the binary and probably downloading the source too to get the developer's test
7
1771
by: Yansky | last post by:
I asked my hosting company if they would upgrade Python on my server to the latest version. They responded with: "Sorry no. We tend to stick with what comes packaged with the unix distribution to ease maintenance issues. There is nothing stopping you from running your own version of python from within your own account. Download the source and compile it and install it into your own space. Adjust the fist line of your python scripts to...
3
3084
by: Andy Dingley | last post by:
I'm building Python tools to wrap up access to our Subversion / SVN source control system. It's to run on my desktop (Cygwin under Windows XP) and then later under Redhat. Trying to install the pysvn module I'm running into problems getting it to work under Cygwin. Works fine from a Windows command prompt, with both the svn_cmd.py example and my own Python code. Under Cygwin though I just get import failures. pysvn/__init__.py seems to...
0
1308
by: Chris | last post by:
Hi, I'm trying to build Python on Windows using Visual Studio 2005. I have no trouble compiling tcl/tk 8.5, but when I subsequently build Python it doesn't find tcl/tk (I get a message about being unable to find tcl.h). I'm using the source distribution of Python 2.5.2, not the svn version. I'm trying to follow the instructions in PCbuild8/readme.txt, but I'm not sure I understand them correctly. Here is the part of the
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8774
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9307
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9181
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.