Re: I am trying to compile python 2.6.2 on my Mac

2009-07-28 Thread Tommy Nordgren


On Jul 26, 2009, at 10:37 AM, Chris Rebert wrote:


On Sun, Jul 26, 2009 at 1:12 AM, Jessica R
Smith 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

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
. ossaudiodevreadline   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.


You need to install the GNU Readline library
(http://tiswww.case.edu/php/chet/readline/rltop.html), which the
module depends on.


A better solution would be to configure the modules in question to use
the libreadline.dylib library already installed on every Mac OS X  
computer.

You might consider installing Python through MacPorts or Fink instead,
as they automate the compilation and installation process and take
care of dependencies (such as GNU Readline) for you:
http://www.macports.org/
http://www.finkproject.org/

Cheers,
Chris
--
http://blog.rebertia.com
--
http://mail.python.org/mailman/listinfo/python-list


---
See the amazing new SF reel: Invasion of the man eating cucumbers from  
outer space.
On congratulations for a fantastic parody, the producer replies :  
"What parody?"


Tommy Nordgren
tommy.nordg...@comhem.se




--
http://mail.python.org/mailman/listinfo/python-list


Re: I am trying to compile python 2.6.2 on my Mac

2009-07-26 Thread Diez B. Roggisch

Jessica Smith schrieb:

Chris thanks!!

other members:

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

I'm happy now!


You are aware that under OSX one usually wants a so-called 
framework-build? It's an configure-option.


You don't need the --prefix then (unless you have another python2.6 
installed), and without the FW-build no UI-packages are useable.


Diez
--
http://mail.python.org/mailman/listinfo/python-list


Re: I am trying to compile python 2.6.2 on my Mac

2009-07-26 Thread Jessica Smith
Chris thanks!!

other members:

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

I'm happy now!

JRS


On 7/26/09, Chris Rebert  wrote:
> On Sun, Jul 26, 2009 at 1:12 AM, Jessica R
> Smith 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
>>
>> 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.
>
> You need to install the GNU Readline library
> (http://tiswww.case.edu/php/chet/readline/rltop.html), which the
> module depends on.
>
> You might consider installing Python through MacPorts or Fink instead,
> as they automate the compilation and installation process and take
> care of dependencies (such as GNU Readline) for you:
> http://www.macports.org/
> http://www.finkproject.org/
>
> Cheers,
> Chris
> --
> http://blog.rebertia.com
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: I am trying to compile python 2.6.2 on my Mac

2009-07-26 Thread Chris Rebert
On Sun, Jul 26, 2009 at 1:12 AM, Jessica R
Smith 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
>
> 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.

You need to install the GNU Readline library
(http://tiswww.case.edu/php/chet/readline/rltop.html), which the
module depends on.

You might consider installing Python through MacPorts or Fink instead,
as they automate the compilation and installation process and take
care of dependencies (such as GNU Readline) for you:
http://www.macports.org/
http://www.finkproject.org/

Cheers,
Chris
-- 
http://blog.rebertia.com
-- 
http://mail.python.org/mailman/listinfo/python-list