I am trying to compile python 2.6.2 on my Mac

0 views
Skip to first unread message

bornbo...@gmail.com

unread,
Jul 26, 2009, 4:28:03 AM7/26/09
to forumgrouper
Hello,
I am trying to compile Python 2.6.2 on my Mac which has os/x 10.5.7

I downloaded python 2.6.2 from here:
- http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tar.bz2

I unpacked it.

I ran these shell commands:
- ./configure --prefix=/pt/p
- make

Near the end of the make output I see this message:

. Failed to find the necessary bits to build these modules:
. _bsddb gdbm linuxaudiodev
. ossaudiodev readline spwd
. sunaudiodev
. To find the necessary bits, look in setup.py in detect_modules() for
the module's name.

I looked in setup.py in detect_modules()

It is not clear to me how to proceed.

I think that I want the module: "readline"

I doubt I need the other modules like linuxaudiodev, etc.

If you have any clues or opinions on how I can build the module
"readline",
please feel free to share.

Thanks,
JRS

Bjorn Boulder

unread,
Jul 26, 2009, 5:03:12 AM7/26/09
to forumgrouper

I read this:
- http://chrismiles.livejournal.com/25648.html

I did this:
- install mac ports
- port install readline
- vi setup.py

def detect_modules(self):
# Ensure that /usr/local is always used
add_dir_to_list(self.compiler.library_dirs, '/opt/local/lib')
add_dir_to_list(self.compiler.include_dirs, '/opt/local/
include')

- configure --prefix=/pt/p
- make
- make install


On Jul 26, 1:28 am, "bornboulde...@gmail.com"
<bornboulde...@gmail.com> wrote:
> Hello,
> I am trying to compile Python 2.6.2 on my Mac which has os/x 10.5.7
>
> I downloaded python 2.6.2 from here:
>   -http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tar.bz2
Reply all
Reply to author
Forward
0 new messages