fedora18 You might need to install dependency packages for libxcb.

The page Qt for X11 Requirements lists some packages required to build Qt on Debian.

The README mentioned in the error message also lists packages for Ubuntu and Fedora, so check one of those two places if the following dependencies don't help.

Alternatively you could try the "-qt-xcb" flag as it suggests. According to the above page this just builds some libraries in instead of linking against the system libraries.

Debian:

libfontconfig1-dev libfreetype6-dev libx11-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libx11-xcb-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev

Ubuntu:

libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-glx0-dev

Fedora

libxcb libxcb-devel libXrender libXrender-devel xcb-util-wm xcb-util-wm-devel xcb-util xcb-util-devel xcb-util-image xcb-util-image-devel xcb-util-keysyms xcb-util-keysyms-devel

转载于:https://www.cnblogs.com/lvdongjie/p/7258417.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
The error message you're encountering is from a Linux package manager, typically APT (Advanced Package Tool) which is used by Ubuntu and its derivatives, while `yum` is commonly associated with the RPM (Red Hat Package Manager) system found in CentOS, Fedora, or RHEL. The error "E: Unable to locate package yum" indicates that the system is looking for a package called `yum`, but it can't find it in the repository. Here's what's happening: - `Reading package lists... Done` means APT is gathering information about available packages. - `Building dependency tree... Done` follows by constructing the list of dependencies for the requested package(s). - `Reading state information... Done` checks if the necessary packages are installed or if there are any issues. The problem arises because `yum` is not a package managed by APT; it's a separate package manager used mainly on Red Hat-based systems. To resolve this issue on an Ubuntu system: 1. **Identify the appropriate package manager:** Since you're using APT, you need to install software through it, not `yum`. 2. **Install missing package (if applicable):** If you're trying to install something that should be installed via APT, make sure you're using apt-get or apt instead. 3. **Update the repositories:** Run `sudo apt update` to ensure your package list is up-to-date. 4. **Install a Red Hat package manager (optional):** If you actually need `yum`, consider installing `apt-transport-https` and `epel-release` for accessing the Extra Packages for Enterprise Linux (EPEL) repository, which may have `yum`. Then use `sudo apt install yum` or `sudo yum install yum`.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值