Re: [GENERAL] Snow Leopard and plpython problem

2009-09-03 Thread Emanuel Calvo Franco
2009/9/3 Jerry LeVan jerry.le...@eku.edu:
 Hi I am having a problem building Postgresql 8.4.0 in Snow Leopard.

 I cannot get plpython to build...

 I have installed MacPython 2.6.2 in /Library/Frameworks/Python.framework

 The binary:


In Debian I had to install these libs to get work 8.4:libsdl-perl,
libperl-dev, python-all-dev (for perl and python). For 8.3 i didn't
need it (seems).
But in my case i use 2.5. Hope it helps :S




-- 
  Emanuel Calvo Franco
 DBA at:  www.siu.edu.ar
www.emanuelcalvofranco.com.ar

-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] Snow Leopard and plpython problem

2009-09-03 Thread Jan Otto

hi jerry,


Hi I am having a problem building Postgresql 8.4.0 in Snow Leopard.

I cannot get plpython to build...

I have installed MacPython 2.6.2 in /Library/Frameworks/ 
Python.framework


do you really need python 2.6.2? snow leopard has python 2.6.1 on  
board and
there are no problems compiling/using postgresql with the python that  
comes

with snow leopard.


The binary:

mbp:postgresql-8.4.0 postgres$ which python
/Library/Frameworks/Python.framework/Versions/Current/bin/python

mbp:postgresql-8.4.0 postgres$ file `which python`
/Library/Frameworks/Python.framework/Versions/Current/bin/python:  
Mach-O universal binary with 2 architectures
/Library/Frameworks/Python.framework/Versions/Current/bin/python  
(for architecture ppc):	Mach-O executable ppc
/Library/Frameworks/Python.framework/Versions/Current/bin/python  
(for architecture i386):	Mach-O executable i386


you need the 64-bit version of python (x86_64) or try compile  
postgresql 32-bit (i386)


asche:~ asche$ file `which python`
/usr/bin/python: Mach-O universal binary with 3 architectures
/usr/bin/python (for architecture x86_64):	Mach-O 64-bit executable  
x86_64

/usr/bin/python (for architecture i386):Mach-O executable i386
/usr/bin/python (for architecture ppc7400): Mach-O executable ppc


./configure --bindir=/usr/local/bin --mandir=/usr/local/share/man  \
--enable-thread-safety \
--with-python \
--with-perl --with-tcl \
--with-libedit-preferred \
 --with-openssl --with-bonjour

Configure completes ok.

When I do a make 2mylog.log


i have tried configuring an building with the same options as you and  
it compiles without an error or warning

about python.

regards, jan otto



--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] Snow Leopard and plpython problem

2009-09-03 Thread Jerry LeVan


On Sep 3, 2009, at 11:01 AM, Jan Otto wrote:


hi jerry,


Hi I am having a problem building Postgresql 8.4.0 in Snow Leopard.

I cannot get plpython to build...

I have installed MacPython 2.6.2 in /Library/Frameworks/
Python.framework


do you really need python 2.6.2? snow leopard has python 2.6.1 on
board and
there are no problems compiling/using postgresql with the python that
comes
with snow leopard.


The binary:

mbp:postgresql-8.4.0 postgres$ which python
/Library/Frameworks/Python.framework/Versions/Current/bin/python

mbp:postgresql-8.4.0 postgres$ file `which python`
/Library/Frameworks/Python.framework/Versions/Current/bin/python:
Mach-O universal binary with 2 architectures
/Library/Frameworks/Python.framework/Versions/Current/bin/python
(for architecture ppc): Mach-O executable ppc
/Library/Frameworks/Python.framework/Versions/Current/bin/python
(for architecture i386):Mach-O executable i386


you need the 64-bit version of python (x86_64) or try compile
postgresql 32-bit (i386)

asche:~ asche$ file `which python`
/usr/bin/python: Mach-O universal binary with 3 architectures
/usr/bin/python (for architecture x86_64):  Mach-O 64-bit executable
x86_64
/usr/bin/python (for architecture i386):Mach-O executable i386
/usr/bin/python (for architecture ppc7400): Mach-O executable ppc


./configure --bindir=/usr/local/bin --mandir=/usr/local/share/man  \
--enable-thread-safety \
--with-python \
--with-perl --with-tcl \
--with-libedit-preferred \
--with-openssl --with-bonjour

Configure completes ok.

When I do a make 2mylog.log


i have tried configuring an building with the same options as you and
it compiles without an error or warning
about python.

regards, jan otto




Jan, Thanks for convincing me that it could be done...

It appears to me that even though I simplified my PATH to a bare  
minimum that
the link process was picking up the framework in /Library/Frameworks/ 
Python

instead of /System/Library/Frameworks/Python.framework.

I renamed /Library/Frameworks/Python so it was no longer visible and  
the build succeeded.


Jerry



--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general