当存在较新版本的依赖软件时,覆盖yum依赖关系进行检查(Overriding yum dependency checks when newer versions of the dependent so

编程入门 行业动态 更新时间:2024-10-26 10:35:08
当存在较新版本的依赖软件时,覆盖yum依赖关系进行检查(Overriding yum dependency checks when newer versions of the dependent software exist)

我在CentOS 5.1上使用yum - 我从源手动编译PHP 5.2.8,但使用yum安装了其他软件包。 我需要通过pecl安装PHP扩展,并且还需要安装phpize。 但是,执行以下操作会产生依赖关系错误:

sudo yum安装php-devel

错误:缺少依赖关系:包php-devel需要php = 5.1.6-20.el5_2.1

由于我实际上已经安装了更新版本的PHP,我如何强制yum忽略它? 我需要从源代码手动编译pecl / phpize吗? 我承认之前从未遇到过问题,它似乎只是因为编译和yum安装的组合。

有什么想法吗?

谢谢,凯尔

I'm using yum on CentOS 5.1 - I hand-compiled PHP 5.2.8 from source, but have other packages installed using yum. I need to install a PHP extension via pecl, and it requires phpize to be installed as well. However, doing the following yields a dependency error:

sudo yum install php-devel

Error: Missing Dependency: php = 5.1.6-20.el5_2.1 is needed by package php-devel

Since I actually have a newer version of PHP already installed, how can I force yum to ignore this? Do I need to hand-compile pecl/phpize from source? I admittedly never had a problem before, it only seems to be because of a combo of compiles and yum installs.

Any thoughts?

Thanks, Kyle

最满意答案

作为一个经验法则,最好在系统中有一个包管理,所以你最好将所有东西都包装在RPMS中,并通过yum进行管理。 从长远来看,它将为您节省大量时间。

如果你绝对想从手头获得某些源代码(fe PHP)编译器,可以使用stow / checkinstall / ...或其他任何解决方案,这些解决方案可以使你为源代码编译的东西做简单的包管理。

重写你的问题,你可以尝试通过下载所需软件包的RPM来重写依赖性检查,并执行“rpm -i --force file.rpm”,因为yum没有强制安装的任何选项

As a rule of thumb, it's better to have one package management in the system, so you'll be better off packaging everything in RPMS and managing it via yum. It will save you lots of time in the long run.

If you absolutely want to have something (fe PHP) compiler from sources by hand, use stow/checkinstall/... or any other solution which would enable you to do rudimentary package management for source-compiled stuff.

Regerding your question, you could try to override dependency checking by downloading RPM of the required package an doing "rpm -i --force file.rpm", since yum does not have any option for forced installations

更多推荐

本文发布于:2023-08-05 20:37:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1438069.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:新版本   关系   软件   Overriding   dependency

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!