gpt4 book ai didi

OpenBSD 6.7如何安装xbase

转载 作者:行者123 更新时间:2023-12-01 21:35:19 31 4
gpt4 key购买 nike

我正在将我们的集成测试环境更新到 OpenBSD 6.7(从 6.5)

我们使用 ansible 在目标系统上安装所有包(openbsd 6.7,Vagrant image https://app.vagrantup.com/generic/boxes/openbsd6/versions/3.0.6)

如上图无法安装java openjdk 11

obsd-31# pkg_add -r jdk%11     
quirks-3.325 signed on 2020-05-27T12:56:02Z
jdk-11.0.7.10.2p0v0:lz4-1.9.2p0: ok
jdk-11.0.7.10.2p0v0:zstd-1.4.4p1: ok
jdk-11.0.7.10.2p0v0:jpeg-2.0.4p0v0: ok
jdk-11.0.7.10.2p0v0:tiff-4.1.0: ok
jdk-11.0.7.10.2p0v0:lcms2-2.9p0: ok
jdk-11.0.7.10.2p0v0:png-1.6.37: ok
jdk-11.0.7.10.2p0v0:giflib-5.1.6: ok
Can't install jdk-11.0.7.10.2p0v0 because of libraries
|library X11.17.0 not found
| not found anywhere
|library Xext.13.0 not found
| not found anywhere
|library Xi.12.1 not found
| not found anywhere
|library Xrender.6.0 not found
| not found anywhere
|library Xtst.11.0 not found
| not found anywhere
|library freetype.30.0 not found
| not found anywhere
Direct dependencies for jdk-11.0.7.10.2p0v0 resolve to png-1.6.37 libiconv-1.16p0 giflib-5.1.6 lcms2-2.9p0 jpeg-2.0.4p0v0
Full dependency tree is giflib-5.1.6 lz4-1.9.2p0 tiff-4.1.0 png-1.6.37 xz-5.2.5 jpeg-2.0.4p0v0 lcms2-2.9p0 zstd-1.4.4p1 libiconv-1.16p0
Couldn't install jdk-11.0.7.10.2p0v0

我的猜测是没有安装 xbase。但是,我不知道如何在不重新启动到可启动安装程序的情况下安装 xbase(因为我需要通过从 ansible 运行的 shell 命令来完成)

有办法吗?

最佳答案

您使用的通用 OpenBSD Vagrant 镜像是作为命令行环境创建的,因此在安装过程中排除了 X windows 文件。有很多方法可以在安装后将 X windows 添加到 OpenBSD,但我想到的最快的方法是:

sudo su -l
curl -LO 'https://ftp.usa.openbsd.org/pub/OpenBSD/6.7/amd64/x{base,serv,font,share}67.tgz'
tar xzf xbase67.tgz -C /
tar xzf xserv67.tgz -C /
tar xzf xfont67.tgz -C /
tar xzf xshare67.tgz -C /
rm -f xbase67.tgz xfont67.tgz xserv67.tgz xshare67.tgz
ldconfig /usr/local/lib /usr/X11R6/lib

如果您想在 OpenBSD 上测试 X 窗口是否存在,请尝试使用以下 shell 代码段:

if [ -d /usr/X11R6/bin/ ] && [ -f /usr/X11R6/bin/xinit ]; then
echo "X windows has been installed."
else
echo "This is a command line only system."
fi

关于OpenBSD 6.7如何安装xbase,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62056685/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com