View Single Post
  #1   (View Single Post)  
Old 7th May 2010
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,053
Cool HOWTO: WINE on amd64 (faster/binary way)

Since some longer time amd64 users can run WINE without a problem, but additional complete i386 environment is requied, as http://wiki.freebsd.org/Wine states, you will have to build i386 version, then build WINE and so (which of course takes time). In this guide You will learn how to install WINE on amd64 system without compiling a single file, everything will be achieved using already built packages/data sets.

Use this script below to add both i386 complete environment under /compat/i386 and wine packages along with appreciate dependencies.

Code:
#! /bin/sh

URL=ftp.freebsd.org/pub/FreeBSD/releases/i386/$( uname -r | egrep -o ".*-[A-Z]+[0-9]*" )/base
DIR=/compat/i386

mkdir -p ${DIR}
export DESTDIR=${DIR}
pkg_add -r wget
wget -r -c ftp://${URL}
cd ${URL}
chmod +x install.sh
yes | ./install.sh
cp /etc/resolv.conf ${DIR}/etc/

cat > ${DIR}/chroot.sh << __EOF
  /etc/rc.d/ldconfig start
  export MACHINE=i386
  export UNAME_p=i386
  export UNAME_m=i386
  pkg_add -r wine
__EOF

chroot ${DIR} /bin/sh chroot.sh
rm ${DIR}/chroot.sh
Just lauch it as root and it will install/do everything.

Tested, works great with Heroes ]I[ game, devfs is not needed for it, but in case some other game/application will yell about it, just mount it.

# mount -t devfs devfs /compat/i386/dev

You will also have to use these aliases:

Code:
# alias winecfg="LD_32_LIBRARY_PATH=/compat/i386/usr/local/lib PATH=/compat/i386/usr/local/bin:$PATH /compat/i386/usr/local/bin/winecfg"
# alias wine32="LD_32_LIBRARY_PATH=/compat/i386/usr/local/lib PATH=/compat/i386/usr/local/bin:$PATH /compat/i386/usr/local/bin/wine"
Works for me, in case You have any problems, this thread is the place to yell

EDIT:

I have just tried IVORAS amd64 wine pacakges from here: http://people.freebsd.org/~ivoras/wine/

... they work great, do not bother using my HOWTO and go straight to his download page
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd

Last edited by vermaden; 9th February 2011 at 11:25 AM.
Reply With Quote