New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Help needed to compile Python 2.5.6 from source on OSX 10.8


Post Reply New Thread Subscribe

 
Thread Tools
symbolix

 
Member Since: Jun 24, 2013
Posts: 3
symbolix is on a distinguished road

symbolix is offline
Hi,
I am trying to compile Python 2.5.6 from source under OSX10.8.

I already have got XCode 4.6.2 with command tools installed.

gcc returns:
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gcc it self is linked as following:
/usr/bin/gcc -> llvm-gcc-4.2

I also installed an alternative gcc4.6.4 through macports, just in case. I have access to that one.

Apart from that, I get errors and lots of problems when trying to compile. Despite running custom prefixes and setting env. variables like CPP, CC, CXX etc; no success so far.

This proves to be tricky. Could you please help me with this?

Thanks.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,203
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Is there any particular reason that you're building 2.5.6 from source? If you do need to do this, MacPorts has 2.5.6 available as a port.

Compiling this is going to be tricky as I imagine that Python has quite a few dependencies (both build and runtime). Unless the included instructions or a guide somewhere list these, you're going to have to build this and keep a look out for any and all errors.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
symbolix

 
Member Since: Jun 24, 2013
Posts: 3
symbolix is on a distinguished road

symbolix is offline
Hi vansmith,
Ah, I have written an extensive and nice answer to your question... Unfortunatelly something went wrong and it did not get posted and I lost my entire message

It will not be as nice as it was but here is a summary: I do not like macports, I do not use this-brew, that-brew and virtualenv and things like that. I like to compile my libraries and compile against them etc.

Python 2.6 and Python2.7 compiled fine so far. Just Python2.5 is a pain as the llvm GCC does not like it.

I am after some guidiance and hopfully I can solve this issus.

Thanks.

EDIT: I manage things with wrapper scripts (things like $PYTHONHOME switching and library switching etc.)
QUOTE Thanks
symbolix

 
Member Since: Jun 24, 2013
Posts: 3
symbolix is on a distinguished road

symbolix is offline
Hello,
So I managed to compile Python 2.6.8 on OSX 10.8, against some custom libraries like "Readline" (which I have also compiled) and it works fine. All of my custom applications and libraries are in a designated folder.

I will try that with Python 2.7.x, and I hope that it works. However Python 2.5 is still an issue.

Thanks.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,203
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
You're going to need to provide specifics about the errors then if you want help. I suspect that part of the problem is the version of LLVM and GCC bundled with OS X which might be too modern. Have you tried using a version of GCC that is more appropriate for that time period? Note than Python 2.5 was released in the fall of 2006 which is quite old.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks

Post Reply New Thread Subscribe


« [Help] Developing Format Utitlity | Screen share application on mac »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Jar Files Not Launching: OSX 10.6.4 onemoreguitar Switcher Hangout 2 07-29-2010 04:24 PM
OSX Sever (help needed sooo badly) inickgraham OS X - Operating System 0 06-18-2010 10:32 PM
OSX 10.6 connectivity via Firefox - Help Needed!! TheShale OS X - Operating System 1 04-15-2010 10:52 AM
Client-side cookies on Python in Mac OSX Hikaru79 OS X - Development and Darwin 0 07-12-2007 11:25 PM
400 MHz PowerPC 750 G3 processor OSX plus More HElp NEEDED IxSxKxO Apple Desktops 3 11-29-2005 11:21 AM

All times are GMT -4. The time now is 10:14 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?