Thread: 7.2 PGDG RPMS and readline 4.0

7.2 PGDG RPMS and readline 4.0

From
Mike Mascari
Date:
The new PostgreSQL 7.2 PGDG RPMS for RedHat 6.2 require readline 4.0.
However, I could not find RedHat readline 4.0 RPMS anywhere; i.e.
rpmfind.net, redhat.com, etc. I did download a SRPM for readline 4.0
packaged by Hao Li at caltech, built and installed them. However, psql
bails whenever I attempt to use the command line completion. Does anyone
know where I can get the same readline RPMS used by the packager who
packaged the 7.2 PGDG RPMS for RedHat 6.2?

Thanks,

Mike Mascari
mascarm@mascari.com

Re: 7.2 PGDG RPMS and readline 4.0

From
Rich Shepard
Date:
On Mon, 11 Feb 2002, Mike Mascari wrote:

> The new PostgreSQL 7.2 PGDG RPMS for RedHat 6.2 require readline 4.0.
> However, I could not find RedHat readline 4.0 RPMS anywhere; i.e.
> rpmfind.net, redhat.com, etc. I did download a SRPM for readline 4.0
> packaged by Hao Li at caltech, built and installed them. However, psql
> bails whenever I attempt to use the command line completion. Does anyone
> know where I can get the same readline RPMS used by the packager who
> packaged the 7.2 PGDG RPMS for RedHat 6.2?

Mike,

  I found them on rpmfind.net. I used the rawhide-1.0 source versions for
both readline and readline-devel. Rebuilt both rpms and they installed
without a hitch. So did the upgrade to postgres.

  They're available because I have them here:

/usr/src/redhat/RPMS/i386/readline-4.2-2.i386.rpm
/usr/src/redhat/RPMS/i386/readline-devel-4.2-2.i386.rpm

  If it's desired, I'll put them in a temporary ftp space so they can be
moved to a postgres ftp server.

Rich

Dr. Richard B. Shepard, President

                       Applied Ecosystem Services, Inc. (TM)
            2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard@appl-ecosys.com
                         http://www.appl-ecosys.com


Re: 7.2 PGDG RPMS and readline 4.0

From
Mike Mascari
Date:
Rich Shepard wrote:
>
> On Mon, 11 Feb 2002, Mike Mascari wrote:
>
> > The new PostgreSQL 7.2 PGDG RPMS for RedHat 6.2 require readline 4.0.
> > However, I could not find RedHat readline 4.0 RPMS anywhere; i.e.
> > rpmfind.net, redhat.com, etc. I did download a SRPM for readline 4.0
> > packaged by Hao Li at caltech, built and installed them. However, psql
> > bails whenever I attempt to use the command line completion. Does anyone
> > know where I can get the same readline RPMS used by the packager who
> > packaged the 7.2 PGDG RPMS for RedHat 6.2?
>
> Mike,
>
>   I found them on rpmfind.net. I used the rawhide-1.0 source versions for
> both readline and readline-devel. Rebuilt both rpms and they installed
> without a hitch. So did the upgrade to postgres.

Okay. I've downloaded the SRPMs of the rawhide readline. My first
attempt to build the RPMS via rpm -ba failed because I don't have
autoconf > 2.50. I'll download that SRPM, attempt to upgrade autoconf,
then attempt to upgrade readline. I'm very thankful for the RedHat 6.2
RPMS, BTW. But I'm starting to wander into dependency hell... :-)

>
>   They're available because I have them here:
>
> /usr/src/redhat/RPMS/i386/readline-4.2-2.i386.rpm
> /usr/src/redhat/RPMS/i386/readline-devel-4.2-2.i386.rpm
>
>   If it's desired, I'll put them in a temporary ftp space so they can be
> moved to a postgres ftp server.
>
> Rich
>
> Dr. Richard B. Shepard, President
>
>                        Applied Ecosystem Services, Inc. (TM)
>             2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
>  + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard@appl-ecosys.com
>                          http://www.appl-ecosys.com

Re: 7.2 PGDG RPMS and readline 4.0

From
Rich Shepard
Date:
On Mon, 11 Feb 2002, Mike Mascari wrote:

> Okay. I've downloaded the SRPMs of the rawhide readline. My first
> attempt to build the RPMS via rpm -ba failed because I don't have
> autoconf > 2.50. I'll download that SRPM, attempt to upgrade autoconf,
> then attempt to upgrade readline. I'm very thankful for the RedHat 6.2
> RPMS, BTW. But I'm starting to wander into dependency hell... :-)

Mike,

  I use 'rpm --rebuild ...' except when the source is extracted and I need
to modify the SPEC file before it builds. In the latter case, I cd to the
/usr/src/redhat/SPEC directory and run 'rpm -ba ...' from there.

Rich

Dr. Richard B. Shepard, President

                       Applied Ecosystem Services, Inc. (TM)
            2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard@appl-ecosys.com
                         http://www.appl-ecosys.com


Re: 7.2 PGDG RPMS and readline 4.0

From
Mike Mascari
Date:
I just wrote:
>
> For some reason, when I do a:
>
> rpm --rebuild readline-4.2a-2.src.rpm
>
> I get:
>
> ...
> ++ libexecdir=${exec_prefix}/libexec
> ++ datadir=${prefix}/share
> ++ sysconfdir=${prefix}/etc
> ++ sharedstatedir=${prefix}/com
> ++ localstatedir=${prefix}/var
> ++ libdir=${exec_prefix}/lib
> ++ includedir=${prefix}/include
> ++ oldincludedir=/usr/include
> ++ infodir=${prefix}/info
> ++ mandir=${prefix}/man
> ++ PACKAGE_NAME=readline
> ++ PACKAGE_TARNAME=readline
> ++ PACKAGE_VERSION=4.2a
> ++ PACKAGE_STRING=readline 4.2a
> ++ PACKAGE_BUGREPORT=bug-readline@gnu.org
> ++ ac_prev=
> ++ test -n
> +++ expr xi386-redhat-linux : x[^=]*=\(.*\)
> ++ ac_optarg=
> error: Bad exit status from /var/tmp/rpm-tmp.13659 (%build)
>
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.13659 (%build)
>
> I'm not sure why.

For what its worth, when I use the RPM:

readline-4.2-2.src.rpm <-- RedHat 7.2 RPM

instead of

readline-4.2a-2.src.rpm <-- Rawhide 1.0 RPM

all works well. I now have a nice readline-4.2-2.i386.rpm

Thanks a bunch,

Mike Mascari
mascarm@mascari.com

Re: 7.2 PGDG RPMS and readline 4.0

From
Mike Mascari
Date:
Rich Shepard wrote:
>
> On Mon, 11 Feb 2002, Mike Mascari wrote:
>
> > Okay. I've downloaded the SRPMs of the rawhide readline. My first
> > attempt to build the RPMS via rpm -ba failed because I don't have
> > autoconf > 2.50. I'll download that SRPM, attempt to upgrade autoconf,
> > then attempt to upgrade readline. I'm very thankful for the RedHat 6.2
> > RPMS, BTW. But I'm starting to wander into dependency hell... :-)
>
> Mike,
>
>   I use 'rpm --rebuild ...' except when the source is extracted and I need
> to modify the SPEC file before it builds. In the latter case, I cd to the
> /usr/src/redhat/SPEC directory and run 'rpm -ba ...' from there.
>
> Rich

For some reason, when I do a:

rpm --rebuild readline-4.2a-2.src.rpm

I get:

...
++ libexecdir=${exec_prefix}/libexec
++ datadir=${prefix}/share
++ sysconfdir=${prefix}/etc
++ sharedstatedir=${prefix}/com
++ localstatedir=${prefix}/var
++ libdir=${exec_prefix}/lib
++ includedir=${prefix}/include
++ oldincludedir=/usr/include
++ infodir=${prefix}/info
++ mandir=${prefix}/man
++ PACKAGE_NAME=readline
++ PACKAGE_TARNAME=readline
++ PACKAGE_VERSION=4.2a
++ PACKAGE_STRING=readline 4.2a
++ PACKAGE_BUGREPORT=bug-readline@gnu.org
++ ac_prev=
++ test -n
+++ expr xi386-redhat-linux : x[^=]*=\(.*\)
++ ac_optarg=
error: Bad exit status from /var/tmp/rpm-tmp.13659 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.13659 (%build)


I'm not sure why. Since that failed, however, and I really need a 'psql'
functioning, I just ran 'configure' and 'make all shared' (the %build
stage) by hand and installed in /usr/local/lib. After a 'ldconfig', all
is working well. It kind of defeats the pupose of using RPMS in the
first place, but it works. Perhaps I'm having difficulty building SRPMs
since this was originally a 6.0 install that had various components
upgraded over time. I guess I'll just have to keep current with Red
Hat...

Thanks for the help and the 7.2 RPMS,

Mike Mascari
mascarm@mascari.com

Re: 7.2 PGDG RPMS and readline 4.0

From
Rich Shepard
Date:
On Mon, 11 Feb 2002, Mike Mascari wrote:

> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.13659 (%build)
>
> I'm not sure why. Since that failed, however, and I really need a 'psql'
> functioning, I just ran 'configure' and 'make all shared' (the %build
> stage) by hand and installed in /usr/local/lib. After a 'ldconfig', all
> is working well. It kind of defeats the pupose of using RPMS in the
> first place, but it works. Perhaps I'm having difficulty building SRPMs
> since this was originally a 6.0 install that had various components
> upgraded over time. I guess I'll just have to keep current with Red
> Hat...

Mike,

  I'm sorry that you had so much trouble. The systems here are RH 6.1 and
6.2 with packages updated to the latest and greatest. Except, we're still
running the 2.2.19 kernel and glibc-2.1.3.

  If it makes you feel any better, I was not able to get the gettext source
rpm to rebuild for me. It kept telling me there is no gcc installed! I gave
up on that and took the requirement out of the spec file.

> Thanks for the help and the 7.2 RPMS,

  Anytime.

Rich

Dr. Richard B. Shepard, President

                       Applied Ecosystem Services, Inc. (TM)
            2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard@appl-ecosys.com
                         http://www.appl-ecosys.com