Thread: install psql 7.1.3 - rh6.2 - libreadline.so.4

install psql 7.1.3 - rh6.2 - libreadline.so.4

From
weh8spam@aol.com (Weh8spam)
Date:
Hi,
   I need Help installing.

I'm trying to install PostgreSQL 7.1.3 on RedHat 6.2
The PostgreSQLRH 6.2 RPMs asks for libreadline.so.4
I can't find  a libreadline.so.4 RPM for HR6.2, only  libreadline.so.2x

So next I try postgresql-7.1.3.tar.gz

./configure
make
make install
  etc.

and it works except when trying to run from the cmd line I get:
/usr/bin/psql: error in loading shared libraries: libreadline.so.4:
cannot open shared object file: No such file or directory
createuser: creation of user "jtest" failed

So, either
1) please just tell me where the libreadline.so.4 RPM is for RH6.2
2) where is libreadline.so.4 for RH6.2 source code is.
   or
3) how can I tell ./configure NOT to be fooled by a bogus  libreadline.so.4
    and force it to use something else.

I got this to work on RH7.1, but this server must stay at RH6.2

TIA
- J

Re: install psql 7.1.3 - rh6.2 - libreadline.so.4

From
Devrim GUNDUZ
Date:
On 24 Feb 2002, Weh8spam wrote:

> Hi,
> 1) please just tell me where the libreadline.so.4 RPM is for RH6.2


Hi,

Here is the src rpm:
ftp://rpmfind.net/linux/redhat/7.1/en/os/i386/SRPMS/readline-4.1-9.src.rpm


If you do not know how to make an rpm using src rpm, the following lines
could help you: (I know it is offtopic, excuses from the list members)

1. Enter the following command:

 rpm -i readline-4.1-9.src.rpm

2. You'll find the spec file under /usr/src/[redhat|RPM]/SPEC directory .
Make necesarry changes, if any.

3. rpm -bb specfilein.spec (the name of spec file). Instead of bb, you
could use

-bb --> Build Binary
-bs --> Build Source
-ba --> Build All

4. If you will not make any changes in spec file, you could use

    rpm --rebuild seninpaket.src.rpm

5. Your binary package will go under
/usr/src/[redhat|RPM]/RPMS/[i386|i486|i586|i686|athlon|noarch]/
directory.


Hope this helps you.

Regards,


Devrim GUNDUZ

devrim@oper.metu.edu.tr
devrim.gunduz@linux.org.tr
devrimg@tr.net

Phone : +90-535-328-9594 (cellular)
Phone : +90-312-295-9595 (work)
Phone : +90-312-286-5906 (home)

Web : http://devrim.oper.metu.edu.tr
--------------------------------------------


Re: install psql 7.1.3 - rh6.2 - libreadline.so.4

From
"Ernesto E. Gutierrez"
Date:
J,

I don't have a specific solution to your problem, and I've never dealt with
your situation before. But, I can direct you to an RPM which is for
libreadline.so.4.

Hope that helps. All the best.

Ernesto Gutierrez
Walnut Creek, California

http://at.rpmfind.net/opsys/linux/RPM/PLD-1.0/i386/readline-4.2a-4.i386.html

"Weh8spam" <weh8spam@aol.com> wrote in message
news:20020224074126.09729.00000471@mb-md.aol.com...
> Hi,
>    I need Help installing.
>
> I'm trying to install PostgreSQL 7.1.3 on RedHat 6.2
> The PostgreSQLRH 6.2 RPMs asks for libreadline.so.4
> I can't find  a libreadline.so.4 RPM for HR6.2, only  libreadline.so.2x
>
> So next I try postgresql-7.1.3.tar.gz
>
> ./configure
> make
> make install
>   etc.
>
> and it works except when trying to run from the cmd line I get:
> /usr/bin/psql: error in loading shared libraries: libreadline.so.4:
> cannot open shared object file: No such file or directory
> createuser: creation of user "jtest" failed
>
> So, either
> 1) please just tell me where the libreadline.so.4 RPM is for RH6.2
> 2) where is libreadline.so.4 for RH6.2 source code is.
>    or
> 3) how can I tell ./configure NOT to be fooled by a bogus
libreadline.so.4
>     and force it to use something else.
>
> I got this to work on RH7.1, but this server must stay at RH6.2
>
> TIA
> - J