用户工具

站点工具


software:w:wine

安装Wine

使用pkg安装

FreeBSD amd64下安装wine

我们可以直接下载编译好的二进制版本,地址http://people.freebsd.org/~ivoras/wine/,以wine 1.3.6 for FreeBSD 8 amd64为例,pkg_add wine-fbsd64.8-1.3.6,1.tbz。

使用ports安装

FreeBSD x86下安装wine

ports中的wine默认支持FreeBSD x86,执行cd /usr/ports/emulators/wine && make install clean即可。

FreeBSD amd64下安装wine

FreeBSD当前缺乏支持64位系统上的32位wine。 安装步骤如下:
1.
# cd /usr/src && make buildworld installworld distribution TARGET=i386 DESTDIR=/compat/i386
# chroot /compat/i386
# /etc/rc.d/ldconfig start
# mount -t devfs devfs /dev
# mkdir -p /usr/ports; mount nfs:/usr/ports /usr/ports (or mount it via nullfs from outside the chroot, or just copy everything over)

2.
设置环境变量
# setenv MACHINE i386
# setenv UNAME_p i386
# setenv UNAME_m i386

3.
# cd /usr/ports/emulators/wine && make install clean
# exit

4.
使用winecfg别名配置wine
alias winecfg=“LD_32_LIBRARY_PATH=/compat/i386/usr/local/lib PATH=/compat/i386/usr/local/bin:$PATH /compat/i386/usr/local/bin/winecfg”

使用wine32别名执行wine
alias wine32=“LD_32_LIBRARY_PATH=/compat/i386/usr/local/lib PATH=/compat/i386/usr/local/bin:$PATH /compat/i386/usr/local/bin/wine”

注:要让《暗黑破坏神2》正常放出声音,执行winecfg配置,设置声音加速为“Emulation”,再执行“wine32 Game.exe”即可。

/data/vhosts/wiki-data/pages/software/w/wine.txt · 最后更改: 2010/12/21 21:32 由 HiLoveS