Vous n'êtes pas identifié(e).
Pages : 1
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
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.
Julien.
https://rjuju.github.io/
Hors ligne
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
As stated, you need to install libicu.
Julien.
https://rjuju.github.io/
Hors ligne
or try to install postgresql with yum for the dependencies.
Cordialement,
Sébastien.
Hors ligne
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
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
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
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
Je vous remercie
Dernière modification par parora0124 (13/10/2017 18:26:51)
Hors ligne
Pages : 1