如何在 ubuntu 的 chroot 环境中运行 wine?

发布于 2024-12-15 14:49:12 字数 732 浏览 7 评论 0原文

我正在尝试在 Ubuntu 内的“伪”监狱内运行 wine。

到目前为止,我已经能够debootstrap Ubuntu 安装并在其中运行wine。

问题是有很多库被包含在内。

有没有一种简单的方法可以找出 wine 需要哪些库?

我尝试过 ldd /usr/bin/wine

linux-gate.so.1 =>  (0xf7702000)
libwine.so.1 => /usr/bin/../lib32/libwine.so.1 (0xf75bf000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf7590000)
libc.so.6 => /lib32/libc.so.6 (0xf7433000)
libdl.so.2 => /lib32/libdl.so.2 (0xf742f000)
/lib/ld-linux.so.2 (0xf7703000)

但这并不能帮助我弄清楚实际需要哪些库。

编辑: 我正在从 Xvnc (.vnc/xstartup) 运行 wine:

env DISPLAY=127.0.0.1$DISPLAY CHROOT_DIR=/home/chroot \
COMMAND="/usr/bin/wine $HOME/myapp.exe"

其中“/home/chroot”是脱引导安装。

有更好的办法吗?

I'm trying to run wine inside a 'pseudo' jail inside Ubuntu.

I've been able to debootstrap an Ubuntu install and run wine inside it so far.

Problem is that there are a LOT of libraries that are being included.

Is there a simple way to figure out which libraries are required by wine ?

I've tried ldd /usr/bin/wine

linux-gate.so.1 =>  (0xf7702000)
libwine.so.1 => /usr/bin/../lib32/libwine.so.1 (0xf75bf000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf7590000)
libc.so.6 => /lib32/libc.so.6 (0xf7433000)
libdl.so.2 => /lib32/libdl.so.2 (0xf742f000)
/lib/ld-linux.so.2 (0xf7703000)

But that doesn't help me much to figure out which libraries are actually needed.

EDIT:
i'm running wine from Xvnc (.vnc/xstartup):

env DISPLAY=127.0.0.1$DISPLAY CHROOT_DIR=/home/chroot \
COMMAND="/usr/bin/wine $HOME/myapp.exe"

Where '/home/chroot' is the debootstrapped install.

Is there a better way?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丿*梦醉红颜 2024-12-22 14:49:12

有,它被称为 schroot。它可以帮助您设置和维护 chroot 环境。

另一种选择是在您的预期 chroot 上手动运行 debootstrap,这样您就可以在其中使用 apt 和 dpkg(这样您就可以在运行时运行 apt-get install wine)重新进入 chroot)。

有关这两个选项的更多信息,请访问 Ubuntu Wiki

There is, and it's called schroot. It helps you set up and maintain chroot environments.

Another option would be to manually run debootstrap on your prospective chroot, so you have apt and dpkg available inside it (so you can just run apt-get install wine while you're in the chroot).

More information on both options is available on the Ubuntu Wiki

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文