1

I am trying to install postgresql 9.3 on centOS 7

first , I needed to install libxml2 , and then I tried to install libxml2-devel

/$ rpm -iUvh http://xmlsoft.org/sources/libxml2-devel-2.9.2-1.fc19.x86_64.rpm

error: Failed dependencies:

xz-devel is needed by libxml2-devel-2.9.2-1.fc19.x86_64

zlib-devel is needed by libxml2-devel-2.9.2-1.fc19.x86_64

although I did install zlib-devel , it is still showing up as a failed dependency

I am wondering if there's an easier way to do that , since finding links to download those dependencies is really taking time

thanks

  • why not installing from epel repo for example but installig fedora package? – taliezin Apr 6 '15 at 19:59
  • @taliezin I actually did , and it is being installed successfully , however, there's no folders being installed , I followed the documentation here : wiki.postgresql.org/wiki/YUM_Installation , no new folders are being created – Mike s Apr 6 '15 at 20:54
  • is there /var/lib/pgsql ? – taliezin Apr 6 '15 at 20:58
  • there's no /var/lib/pgsql – Mike s Apr 6 '15 at 20:58
  • did you run /usr/pgsql-y.x/bin/postgresqlyx-setup initdb ? – taliezin Apr 6 '15 at 20:59
0

Do not just go hunting random RPMs off the Internet like this. You will quickly make your system into an unmaintainable mess.

The correct way to install software on RHEL is to add a repository (if necessary) then use yum to fetch a package and all its dependencies from repositories.

The PostgreSQL project maintains a dedicated yum repository at http://yum.postgresql.org/ with a how-to page.

Once the RPMs are installed, read the README.rpm-dist in /usr/share/doc/postgresql-9.3/ for details on how to proceed with creating the database install, etc.

0

Have you tried using yum to do the install? It should allow you to find all the dependencies. You can also use yum to install a local rpm so it is still helpful if you prefer to manually download all the rpms (helpful if you are looking to install specific versions of everything - as long as the dependencies are met).

  • I actually did , and it is being installed successfully , however, there's no folders being installed , I followed the documentation here : wiki.postgresql.org/wiki/YUM_Installation , no new folders are being created – Mike s Apr 6 '15 at 20:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.