使用 Slackbuild 脚本编译时出现问题

使用 Slackbuild 脚本编译时出现问题

我已经完成了 slackware 15.0 的完整安装。以前,我使用sbouiSlackbuild 脚本或直接从 Slackbuild 脚本编译和安装软件没有问题。最近我一直收到错误。如果我尝试使用 升级gtestsboui我会得到以下信息:

gtest is already installed.
Installed package: gtest-1.10.0-x86_64-4_SBo
Available version: 1.14.0
--2024-02-04 14:24:12--  https://github.com/google/googletest/archive/v1.14.0/googletest-1.14.0.tar.gz
Resolving github.com (github.com)... 140.82.113.4
Connecting to github.com (github.com)|140.82.113.4|:443... connected.
ERROR: cannot verify github.com's certificate, issued by ‘CN=DigiCert TLS Hybrid ECC SHA384 2020 CA1,O=DigiCert Inc,C=US’:
Unable to locally verify the issuer's authority.
To connect to github.com insecurely, use `--no-check-certificate'.
There was an error downloading the source file.
md5sum: googletest-1.14.0.tar.gz: No such file or directory
Error: md5sum check failed on googletest-1.14.0.tar.gz. Continue anyway? (y/n):

如果我尝试下载源代码和 slackbuild tar 版本并尝试直接运行 .Slackbuild 脚本,我会得到:

[ 12%] Building CXX object googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
In file included from /usr/include/errno.h:28,
from /usr/include/c++/11.2.0/cerrno:42,
from /usr/include/c++/11.2.0/ext/string_conversions.h:44,
from /usr/include/c++/11.2.0/bits/basic_string.h:6607,
from /usr/include/c++/11.2.0/string:55,
from /usr/include/c++/11.2.0/bits/locale_classes.h:40,
from /usr/include/c++/11.2.0/bits/ios_base.h:41,
from /usr/include/c++/11.2.0/iomanip:40,
from /tmp/SBo/googletest-1.14.0/googletest/include/gtest/gtest.h:54,
from /tmp/SBo/googletest-1.14.0/googletest/src/gtest-all.cc:38:
/usr/include/bits/errno.h:26:11: fatal error: linux/errno.h: No such file or directory
26 | # include <linux/errno.h>
|             ^~~~~~~~~~~~~~~

关于如何解决这些问题的任何想法。

更新:

$ update-ca-certificates
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.

仍然收到相同的错误消息。并且,标头已安装。
事实上,我在各个子目录中看到了几个 erron.h 文件。

$ ls /var/log/packages/kernel-headers-5.15.117-x86-1  
/var/log/packages/kernel-headers-5.15.117-x86-1  
$ pwd  
/usr/src/linux  
$ find . -name errno.h  
./arch/powerpc/include/uapi/asm/errno.h  
./arch/sparc/include/uapi/asm/errno.h  
./arch/parisc/include/uapi/asm/errno.h  
./arch/x86/include/generated/uapi/asm/errno.h  
./arch/mips/include/asm/errno.h  
./arch/mips/include/uapi/asm/errno.h  
./arch/alpha/include/uapi/asm/errno.h  
./tools/arch/powerpc/include/uapi/asm/errno.h  
./tools/arch/sparc/include/uapi/asm/errno.h  
./tools/arch/parisc/include/uapi/asm/errno.h  
./tools/arch/x86/include/uapi/asm/errno.h  
./tools/arch/mips/include/asm/errno.h  
./tools/arch/mips/include/uapi/asm/errno.h  
./tools/arch/alpha/include/uapi/asm/errno.h  
./tools/bootconfig/include/linux/errno.h  
./tools/include/uapi/asm/errno.h  
./tools/include/uapi/asm-generic/errno.h  
./include/linux/errno.h  
./include/uapi/linux/errno.h  
./include/uapi/asm-generic/errno.h

答案1

您帖子中的第一个问题Unable to locally verify the issuer's authority需要最新的证书包才能解决。该命令update-ca-certificates有什么作用吗?

您帖子中的第二个问题fatal error: linux/errno.h: No such file or directory通常表明您的机器没有kernel-headers安装。

相关内容