如何在 ubuntu 的 chroot 环境中运行 wine?
我正在尝试在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有,它被称为
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 runapt-get install wine
while you're in the chroot).More information on both options is available on the Ubuntu Wiki