openresty yum install postgresql-devel一直不成功

在redhat7上安装openresty时,出现不少奇奇怪怪的问题,步骤是按照官网的来的,但几乎每一步都有或多或少的问题,我寻思着,我以前在本身服务器上安装时也没见这么难受,怎么换了服务器就如此天壤之别了呢?html

简单记录一下本身的问题。python

这里有篇博客总结得还挺全的,有须要的能够参考sql

https://blog.csdn.net/fouy_yun/article/details/78314486服务器

恰好本身遇到一个问题就是:./configure: error: ngx_postgres addon was unable to detect version of the libpq library.post

找到的资料提示是须要ui

yum install postgresql-devel

执行后发现,一直提示error nothing to do 阿里云

一看执行yum install有提示:spa

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register..net

我就觉得是这个问题,准备一顿操做换一下yum 源,可是发现早就有人换了163的,难不成还要要换成其余的?因而我把yum源换成了阿里云的,最后仍是不行,思来想去,不就是要安装一个postgresql-9.2.24-1.el7_5 吗,劳资wget下来再弄不行吗?rest

好不容易wget了postgresql-9.2.24-1.el7_5.src.rpm下来,接下来就是安装的问题了,https://blog.csdn.net/weixin_33724570/article/details/92154288,参考了这里的操做,还有这篇:http://www.javashuo.com/article/p-ggazphyt-nt.html

我觉得即将守得云开见月明了,谁知,一顿操做猛如虎,一看战绩0-5,还缺依赖,并且还特么的很多

perl(ExtUtils::MakeMaker) is needed by postgresql-9.2.24-1.el7.x86_64
    help2man is needed by postgresql-9.2.24-1.el7.x86_64
    perl(ExtUtils::Embed) is needed by postgresql-9.2.24-1.el7.x86_64
    perl-devel is needed by postgresql-9.2.24-1.el7.x86_64
    readline-devel is needed by postgresql-9.2.24-1.el7.x86_64
    python-devel is needed by postgresql-9.2.24-1.el7.x86_64
    tcl-devel is needed by postgresql-9.2.24-1.el7.x86_64
    openldap-devel is needed by postgresql-9.2.24-1.el7.x86_64
    uuid-devel is needed by postgresql-9.2.24-1.el7.x86_64
    libxml2-devel is needed by postgresql-9.2.24-1.el7.x86_64
    libxslt-devel is needed by postgresql-9.2.24-1.el7.x86_64
    pam-devel is needed by postgresql-9.2.24-1.el7.x86_64
    systemtap-sdt-devel is needed by postgresql-9.2.24-1.el7.x86_64

用 yum install仍是特么的 error:nothing to do,恶狠狠地说了一声:“shift!”

 

准备放弃了,放弃以前想着,怎么的也应该把yum 源给人家恢复到原来的先吧,因而百度:如何将yum 源该为163的。

又是一顿操做,忽然发现/etc/yum.repos.d  目录下多了一个openresty.repo 文件,接着就是yum clean all ,yum makecache之类的操做,其实心里很慌,弄坏了别人的配置怎么办。

操做完后,我发现,以前 

yum install postgresql-devel一直报错,如今竟然能够用了?what the heal?不能肯定缘由是什么,难道是那个 openresty.repo?我忘了没有弄openresty前,openresty.repo 这个文件是否是已经存在了(按理来讲应该是没有的),推测应该是和它有关,很迷,若是你看到了这,且知道缘由,但愿能够不吝赐教,为小弟指点迷津。
相关文章
相关标签/搜索