- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在centos8中,我这样编译c文件,但是错误:
# LANG=C gcc -static pointer.c -o pointer
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
如果去掉“-static”就可以了。
在Ubuntu-20.04中,带“-statis”和不带“-statis”都可以。我在Ubuntu中找到了libc.a:
/usr/lib/x86_64-linux-gnu/libc.a
“libc.a”在 Ubuntu-20.04 中通过命令安装:
apt install libc6-dev
在centos8中,如何使用“dnf install”安装文件libc.a?
我已经尝试过:
# dnf install glibc-static
Last metadata expiration check: 1:36:14 ago on Thu Aug 26 16:13:42 2021.
No match for argument: glibc-static
Error: Unable to find a match: glibc-static
# dnf config-manager --enable
# dnf install glibc-static
Last metadata expiration check: 1:36:26 ago on Thu Aug 26 16:13:42 2021.
No match for argument: glibc-static
Error: Unable to find a match: glibc-static
编辑:
解决者:
# dnf --enablerepo=powertools install glibc-static
引用链接:
https://centos.pkgs.org/8/centos-powertools-x86_64/glibc-static-2.28-151.el8.x86_64.rpm.html
最佳答案
很可能您缺少静态 glibc 库,默认情况下不会安装这些库。在 CentOS 中,使用以下命令安装它们
dnf install glibc-static
这应该有效。
摘自dnf info glibc-static
:
Description : The glibc-static package contains the C library static librariesfor -static linking. You don't need these, unless you link statically,which is highly discouraged.
注意:如果您没有看到该软件包,您可能需要添加“PowerTools”存储库:
dnf config-manager --enable PowerTools
另请参阅 this link .
关于c - 如何在centos8中使用 "dnf install "安装文件libc.a,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68936024/
几天前我想运行dnf但是我收到了以下错误 Traceback (most recent call last): File "/usr/bin/dnf", line 57, in from
我最近将 RedHat 8 系统迁移到 Oracle Linux ULN,我发现“dnf update”和“dnf check-update”之间存在差异(请参阅下面的输出)。列出的 Perl 模块已
我的计算机位于未连接到互联网的内部网络上,并且已将相关的 rpm 包复制到我的本地 dnf 存储库中。我试图让ansible的DNF模块在另一台计算机上安装程序,但它弹出一条错误消息,指出未安装pyt
Fedora 4.10.8-200.fc25.i686+PAE dnf 因“段错误(核心转储)”而崩溃。 我试图运行“dnf clean all”但没有成功。 运行“dnf upgrade”时,这会记
在 MYSQL 中,来自 Wordpress 插件的一些我不想更改太多的代码正在运行以下查询: SELECT * WHERE cond1 AND (field1 = val1 OR field2 =
我正在尝试在我的 CENTOS 7 机器上安装 dnf。使用this as my guideline我运行了 的前两个命令 sudo yum install epel-release sudo yum
所以我想算一下在四场自行车比赛中谁获得的 DNF 最多。我只完成了过滤和打印未完成的骑手。但由于我对数组相对较新,因此在编写逻辑时遇到了麻烦: 仅打印四场比赛中获得最多 DNF 的骑手。 这是我返回所
我刚刚杀死了一个 dnf 进程,因为它没有响应 ^Z 现在我有一个损坏的 Berkley 数据库,不知道如何重建它 - 让我变得愚蠢。 如有任何帮助,我们将不胜感激。 现在任何 dnf 搜索的输出是:
我不知道如何描述我的问题,因为我不明白为什么会发生......当我进入 sudo dnf install (any packet) 它返回给我这个 Tor Project Repo
通过 Ansible 的 dnf 安装软件包时模块。如何传递 --nobest 之类的选项至dnf ?有没有使用原始 shell 命令的替代方法。 最佳答案 我遇到了类似的问题(但我正在使用 yum
在centos8中,我这样编译c文件,但是错误: # LANG=C gcc -static pointer.c -o pointer /usr/bin/ld: cannot find -lc co
我想验证看起来像这样的 DNF(析取范式)A*B+A'*C+C*D*E'。为此,我使用以下模式: /[A-Z]'?(\*[A-Z]'?)*(\+[A-Z]'?(\*[A-Z]'?)*)+/g 我已经在
包管理器提供大致相同的功能:安装、管理和移除应用,但是它们还是有一些不一样的地方。 在 Linux 系统上获取一个应用 有多种方式。例如,有新的 Flatp
我想用 Ansible 启用 Fedora Copr 存储库。更具体地说,我想转换此命令: dnf copr enable ganto/lxd 使用 Ansible command模块我克服了这个问题
DNF 和 RPM 作为包管理器有什么区别?一种与另一种的优势是什么,这些优势将适用于哪些情况? 最佳答案 这些工具协同工作。 DNF 处理依赖解决、在网络上查找文件、存储库管理等。 RPM 处理实际
我正在尝试在虚拟根中安装一堆软件,这样我就可以快速将其复制到新系统中。但是,每当我将 dnf install 或 dnf builddep 与 --installroot 选项一起使用时,它都无法同步
我以为我已成功从 CentOS8 升级到 Centos Stream 8,但我始终无法让 dnf distro-sync 工作。现在 DNF 似乎已损坏,并且 dnf upgrade 引发了与 DNF
假设我有一个 bool 公式 a 或 (b 和 c) 我希望将其转换为 CNFIE。(a 和 b) 或 (a 和 c) 是否有任何现有的库可以实现这一目标? 最佳答案 如果您想自己实现,这里有一个如何
我想使用 dnf config-manager 为我的系统添加一个 rpm 存储库: # dnf config-manager --add-repo=http://example.com/rpm-re
dnf 命令会在您每次更新时下载整个软件包,而 yum 使用 deltarpm 并下载较少的数据。 怎么用dnf as yum来保存数据? 最佳答案 安装 deltarpm打包并添加 deltarpm
我是一名优秀的程序员,十分优秀!