zoukankan      html  css  js  c++  java
  • openresty yum install postgresql-devel一直不成功

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

    简单记录一下自己的问题。

    这里有篇博客总结得还挺全的,有需要的可以参考

    https://blog.csdn.net/fouy_yun/article/details/78314486

    刚好自己遇到一个问题就是:./configure: error: ngx_postgres addon was unable to detect version of the libpq library.

    找到的资料提示是需要

    yum install postgresql-devel

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

    一看执行yum install有提示:

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

    我就以为是这个问题,准备一顿操作换一下yum 源,但是发现早就有人换了163的,难不成还要要换成其他的?于是我把yum源换成了阿里云的,最后还是不行,思来想去,不就是要安装一个postgresql-9.2.24-1.el7_5 吗,劳资wget下来再弄不行吗?

    好不容易wget了postgresql-9.2.24-1.el7_5.src.rpm下来,接下来就是安装的问题了,https://blog.csdn.net/weixin_33724570/article/details/92154288,参考了这里的操作,还有这篇:https://www.cnblogs.com/saolv/p/9751126.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 这个文件是不是已经存在了(按理来说应该是没有的),推测应该是和它有关,很迷,如果你看到了这,且知道原因,希望可以不吝赐教,为小弟指点迷津。



  • 相关阅读:
    easy ui 常用控件配置
    oracel 查询语句
    .Net 取树形结构的数据
    Asp.Net Core File的操作
    js 页面技巧
    ASP.NET Core 文件上传
    ASP.NET EF实体主外键关系
    ASP.NET MVC 后台传值前端乱码解决方案 富文本Ueditor编辑
    手机访问网站自动跳转到手机版
    Ecshop布局参考图
  • 原文地址:https://www.cnblogs.com/Guhongying/p/11636121.html
Copyright © 2011-2022 走看看