Vous n'êtes pas identifié(e).

#1 12/10/2017 22:53:17

parora0124
Membre

initdb error on PostgreSQL 10 - RHEL 6

Installed PostgreSQL 10 on RHEL 6 system by running the following commands:

rpm -Uvh --force --nodeps postgresql10-libs-10.0-1PGDG.rhel6.x86_64.rpm
rpm -Uvh --force --nodeps postgresql10-10.0-1PGDG.rhel6.x86_64.rpm
rpm -Uvh --force --nodeps postgresql10-server-10.0-1PGDG.rhel6.x86_64.rpm
rpm -Uvh --force --nodeps postgresql10-contrib-10.0-1PGDG.rhel6.x86_64.rpm

The tried to run initdb:

./initdb --locale=C --encoding=UTF-8 -D /opt/postgresql -U postgres

Getting the following error:

/usr/pgsql-10/bin/postgres: error while loading shared libraries: libicui18n.so.42: cannot open shared object file: No such file or directory
no data was returned by command ""/usr/pgsql-10/bin/postgres" -V"
The program "postgres" is needed by initdb but was not found in the
same directory as "/usr/pgsql-10/bin/initdb".
Check your installation.

Can someone please help resolve the problem here?

Thanks

Dernière modification par parora0124 (12/10/2017 22:53:50)

Hors ligne

#2 12/10/2017 23:45:02

rjuju
Administrateur

Re : initdb error on PostgreSQL 10 - RHEL 6

Hi,

This is a french website.


About your issue, you installed some rpm asking explicitely not to install dependancies and forcing installation, and it fails because needed libs are not found.  Dependancies are needed, so as long as you won't install them there's nothing we can do to help you.

Hors ligne

#3 12/10/2017 23:53:38

parora0124
Membre

Re : initdb error on PostgreSQL 10 - RHEL 6

Thanks for the reply..

Ran this:

rpm -Uvh --force postgresql10-10.0-1PGDG.rhel6.x86_64.rpm

Got the following error:

error: Failed dependencies:
        libicu is needed by postgresql10-10.0-1PGDG.rhel6.x86_64

What do I do to resolve this issue? Please help.

Hors ligne

#4 13/10/2017 00:17:27

rjuju
Administrateur

Re : initdb error on PostgreSQL 10 - RHEL 6

As stated, you need to install libicu.

Hors ligne

#5 13/10/2017 08:38:25

ruizsebastien
Membre

Re : initdb error on PostgreSQL 10 - RHEL 6

or try to install postgresql with yum for the dependencies.


Cordialement,

Sébastien.

Hors ligne

#6 13/10/2017 15:39:33

parora0124
Membre

Re : initdb error on PostgreSQL 10 - RHEL 6

My RHEL system is not registered to Red Hat Subscription Management. I need to install it on some of the systems which wont be connected to the internet. Is there any other way except for YUM install?

Thanks

Hors ligne

#7 13/10/2017 15:47:37

ruizsebastien
Membre

Re : initdb error on PostgreSQL 10 - RHEL 6

if you don't have acces to the internet you can try to build a local repository.
If you can't, you have to install all dependencies before postgresql.


Cordialement,

Sébastien.

Hors ligne

#8 13/10/2017 16:27:00

parora0124
Membre

Re : initdb error on PostgreSQL 10 - RHEL 6

By Local rep do you mean download the rpm's and then do a local install?

Sorry but I do not have much experience in Linux, that's why making sure.


Want to add one more thing here: I understand that this is a french website and I am not sure if I should be posting my questions here but honestly speaking this is the only website where people have helped me when I actually needed help. So, I am really thankful to you all for the comments.

Hors ligne

#9 13/10/2017 16:53:02

ruizsebastien
Membre

Re : initdb error on PostgreSQL 10 - RHEL 6

parora0124 a écrit :

By Local rep do you mean download the rpm's and then do a local install?

yes.
but it's mean you should make a local repo and use yum with it.
yum  will find all the necessary dependencies all alone.
There are many examples in google to do this.
And it's the best way i think.


Cordialement,

Sébastien.

Hors ligne

#10 13/10/2017 18:26:26

parora0124
Membre

Re : initdb error on PostgreSQL 10 - RHEL 6

Je vous remercie

Dernière modification par parora0124 (13/10/2017 18:26:51)

Hors ligne

Pied de page des forums