Results 1 to 5 of 5
  1. #1
    Help needed to compile Python 2.5.6 from source on OSX 10.8

    Member Since
    Jun 24, 2013
    Posts
    3
    Help needed to compile Python 2.5.6 from source on OSX 10.8
    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.

  2. #2
    Help needed to compile Python 2.5.6 from source on OSX 10.8
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    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

  3. #3
    Help needed to compile Python 2.5.6 from source on OSX 10.8

    Member Since
    Jun 24, 2013
    Posts
    3
    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.)

  4. #4
    Help needed to compile Python 2.5.6 from source on OSX 10.8

    Member Since
    Jun 24, 2013
    Posts
    3
    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.

  5. #5
    Help needed to compile Python 2.5.6 from source on OSX 10.8
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do I compile source code on a mac Im trying to compile hydra 7.1.src.tar.gz on a
    By programmaster in forum OS X - Development and Darwin
    Replies: 5
    Last Post: 11-15-2011, 10:16 AM
  2. How to Compile Darwin 10.7.0 to a ISO from the Source?
    By manisraj in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 06-09-2011, 06:42 PM
  3. Compile source code to DMG?
    By teho in forum OS X - Development and Darwin
    Replies: 5
    Last Post: 10-21-2010, 04:14 PM
  4. Replies: 4
    Last Post: 03-20-2005, 05:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •