• centos7.5安装seafile


    1.配置yum源

    [root@localhost yum.repos.d]# uname -r
    3.10.0-693.el7.x86_64

    [root@localhost yum.repos.d]# cat /etc/redhat-release
    CentOS Linux release 7.5.1804 (Core)

    wget -O /etc/yum.repos.d/copr-pkerling-seafile.repo https://copr.fedorainfracloud.org/coprs/pkerling/seafile/repo/epel-7/pkerling-seafile-epel-7.repo

    2.直接安装

    yum install seafile

    报错了,系统已安装qt5的版本高了,来源是base源,但是我的本地源local(安装的光盘)有符合版本要求的QT5
    Error: Package: qt5-qtdeclarative-5.6.2-1.el7.x86_64 (local)
    Requires: qt5-qtbase(x86-64) = 5.6.2
    Installed: qt5-qtbase-5.9.2-3.el7.x86_64 (@base)
    qt5-qtbase(x86-64) = 5.9.2-3.el7
    Available: qt5-qtbase-5.6.2-1.el7.x86_64 (local)
    qt5-qtbase(x86-64) = 5.6.2-1.el7


    3.把base源移入备份文件夹,刷新缓存

    mv CentOS-Base.repo bak20180514/

    yum clean all

    yum repolist

    4.删除高版本的QT5

    rpm -e qt5-qtbase-5.9.2-3.el7.x86_64

    一堆依赖包报错,实践证明了用rpm删不行,只好用yum删
    error: Failed dependencies:
    libQt5Core.so.5()(64bit) is needed by (installed) qt5-qtbase-gui-5.9.2-3.el7.x86_64
    libQt5Core.so.5()(64bit) is needed by (installed) qt5-qtxmlpatterns-5.9.2-1.el7.x86_64
    libQt5Core.so.5(Qt_5)(64bit) is needed by (installed) qt5-qtbase-gui-5.9.2-3.el7.x86_64
    libQt5Core.so.5(Qt_5)(64bit) is needed by (installed) qt5-qtxmlpatterns-5.9.2-1.el7.x86_64
    libQt5Core.so.5(Qt_5.9)(64bit) is needed by (installed) qt5-qtbase-gui-5.9.2-3.el7.x86_64
    libQt5Core.so.5(Qt_5.9)(64bit) is needed by (installed) qt5-qtxmlpatterns-5.9.2-1.el7.x86_64
    libQt5Core.so.5(Qt_5_PRIVATE_API)(64bit) is needed by (installed) qt5-qtbase-gui-5.9.2-3.el7.x86_64
    libQt5Core.so.5(Qt_5_PRIVATE_API)(64bit) is needed by (installed) qt5-qtxmlpatterns-5.9.2-1.el7.x86_64
    libQt5DBus.so.5()(64bit) is needed by (installed) qt5-qtbase-gui-5.9.2-3.el7.x86_64
    libQt5DBus.so.5(Qt_5)(64bit) is needed by (installed) qt5-qtbase-gui-5.9.2-3.el7.x86_64
    libQt5EglFSDeviceIntegration.so.5()(64bit) is needed by (installed) qt5-qtbase-gui-5.9.2-3.el7.x86_64
    libQt5Network.so.5()(64bit) is needed by (installed) qt5-qtbase-gui-5.9.2-3.el7.x86_64
    libQt5Network.so.5()(64bit) is needed by (installed) qt5-qtxmlpatterns-5.9.2-1.el7.x86_64
    libQt5Network.so.5(Qt_5)(64bit) is needed by (installed) qt5-qtbase-gui-5.9.2-3.el7.x86_64
    libQt5Network.so.5(Qt_5)(64bit) is needed by (installed) qt5-qtxmlpatterns-5.9.2-1.el7.x86_64
    qt5-qtbase = 5.9.2-3.el7 is needed by (installed) qt5-qtbase-common-5.9.2-3.el7.noarch
    qt5-qtbase(x86-64) = 5.9.2-3.el7 is needed by (installed) qt5-qtbase-gui-5.9.2-3.el7.x86_64
    qt5-qtbase(x86-64) = 5.9.2 is needed by (installed) qt5-qtxmlpatterns-5.9.2-1.el7.x86_64

    yum删除QT5

    yum -y remove qt5-qtbase

    rpm -ql qt5-qtbase

    rpm -qa qt5-qtbase


    5.安装5.6.2.版本的QT5,最好先安装epel-release

    yum -y install epel-release

    yum clean all

    yum repolist

    yum list qt5-qtbase-5.6.2-1.el7.x86_64

    yum -y install qt5-qtbase.x86_64

    yum install seafile-client-qt(安装图形界面,测试的时候命令行界面用不了)

  • 相关阅读:
    C++随机迷宫生成[转载]
    浮点指令
    表盘
    TabControl+ListView
    ListView
    Tooltips2
    随机数
    Tooltips
    iOS9 http不能访问网络——在Xcode中将https改成http方式
    iOS开发——音频篇——音效的播放
  • 原文地址:https://www.cnblogs.com/liangjiongyao/p/9037708.html
Copyright © 2020-2023  润新知