Thread: trouble with rpmbuild on WBEL3.0/x86_64

trouble with rpmbuild on WBEL3.0/x86_64

From
"Marcel Gsteiger"
Date:
Hi all,

I wanted to install postgreSQL 7.4 on my ia32e box (x86_64 dual xeon PL370G4) running WBEL3.0.  I looked for binary
RPMsbut did not find any. So I tried to 

rpmbuild --rebuild --define 'build9 1' postgresql-7.4.6-2PGDG.src.rpm

but during configure I get the error

....
checking for python... /usr/bin/python
checking Python installation directories... /usr/lib/python2.2
checking how to link an embedded Python application... no
configure: error: Python Makefile not found
Fehler: Bad exit status from /var/tmp/rpm-tmp.75919 (%build)

python-devel-2.2.3-5 is installed. On a similar i386 system (same versions of rpms), this error does not happen; here I
couldbuild all RPMs successfully (but, of course, not for x86_64). 

On my x86_64 system, rh-postgresql 7.3.6-7 is still installed - I thought I could rebuild newer RPMS before removing
theold ones. Should I remove rhdb first? 

Did anybody succeed in building x86_64 binary rpms? Any ideas?

Regards
--Marcel


Re: trouble with rpmbuild on WBEL3.0/x86_64

From
Devrim GUNDUZ
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

On Mon, 1 Nov 2004, Marcel Gsteiger wrote:

> I wanted to install postgreSQL 7.4 on my ia32e box (x86_64 dual xeon PL370G4) running WBEL3.0.  I looked for binary
RPMsbut did not find any. So I tried to 
>
> rpmbuild --rebuild --define 'build9 1' postgresql-7.4.6-2PGDG.src.rpm
>
> but during configure I get the error
>
> ....
> checking for python... /usr/bin/python
> checking Python installation directories... /usr/lib/python2.2
> checking how to link an embedded Python application... no
> configure: error: Python Makefile not found
> Fehler: Bad exit status from /var/tmp/rpm-tmp.75919 (%build)
>
> python-devel-2.2.3-5 is installed. On a similar i386 system (same
> versions of rpms), this error does not happen; here I could build all
> RPMs successfully (but, of course, not for x86_64).

python-2.2.3-5 should have distuils module installed. Do you have
/usr/lib/python2.2/distutils ?

Anyway,

http://archives.postgresql.org/pgsql-hackers/2004-09/msg00447.php

has a patch that fixes your problems. Could you please apply it to your
postgresql source and retry building rpm?

> On my x86_64 system, rh-postgresql 7.3.6-7 is still installed - I
> thought I could rebuild newer RPMS before removing the old ones. Should
> I remove rhdb first?

No. You can still rebuild the RPMS even if you dont't have PostgreSQL
installed on your server. But you'll need to remove the old binaries
befora installing the new ones.

Regards,
- --
Devrim GUNDUZ
devrim~gunduz.org                devrim.gunduz~linux.org.tr
             http://www.tdmsoft.com
             http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBj/1Ktl86P3SPfQ4RAlOZAJ9xGK5i+NZ/71dVHmFw1P4nn19KfwCg4I73
q4RUJOwn5HROuPVbgP3ryOU=
=2doM
-----END PGP SIGNATURE-----