DaemonForums  

Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

Reply
 
Thread Tools Display Modes
  #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,056
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
  #2   (View Single Post)  
Old 16th June 2010
tariqc tariqc is offline
New User
 
Join Date: Jun 2010
Posts: 1
Default Works under chroot

Hey great script thanks. The install went fine for me, but when I try to run wine I get this

Code:
> /compat/i386/usr/local/bin/wine
ELF interpreter /libexec/ld-elf.so.1 not found
Abort
if chroot /compat/i386 wine works but can not attach to an X display.

Code:
# wine /tmp/IE8-WindowsServer2003-x64-ENU.exe 
fixme:crypt:SystemFunction036 couldn't open /dev/urandom
fixme:crypt:SystemFunction036 couldn't open /dev/urandom
err:service:validate_context_handle Handle is of an invalid type (1, 2)
err:service:validate_context_handle Handle is of an invalid type (1, 2)
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
I believe that I need to change the path wine looks for /libexec/ld-elf.so.1 to /compat/i386/... but I do not know how to do that. Help would be appreciated.
Reply With Quote
  #3   (View Single Post)  
Old 19th June 2010
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

Hi, here (on the 1st post):
Quote:
Originally Posted by vermaden View Post
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"
__________________
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
Reply With Quote
  #4   (View Single Post)  
Old 2nd July 2010
Fleet Fleet is offline
New User
 
Join Date: Jul 2010
Posts: 1
Default

I have the same problem as tariqc and I have tried launching the war3 blizzard downloader [I]outside[I] the chroot with
Code:
wine32 Downloader_Warcraft3_Reign_of_Chaos_enGB.exe
This might be a wrong approach. I guess I should run wine32 and winecfg outside the chroot?
When running
Code:
wine Downloader_Warcraft3_Reign_of_Chaos_enGB.exe
outside the chroot I get
Code:
wine32: Command not found.
I have tried to apply the aliases both inside and outside the chroot.
Furthermore, should I install xorg and the nvidia-driver in the chroot?

Best regards
Reply With Quote
  #5   (View Single Post)  
Old 3rd July 2010
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

@Fleet


Maybe I wasnt clear enought with the HOWTO, after You have installed the /compat/i386 with the script (or by hand), put these commands into the terminal to test if it works:

Code:
prompt % alias winecfg="LD_32_LIBRARY_PATH=/compat/i386/usr/local/lib PATH=/compat/i386/usr/local/bin:$PATH /compat/i386/usr/local/bin/winecfg"
prompt % winecfg
After typing winecfg You should see a WINE configuration window.
__________________
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
Reply With Quote
  #6   (View Single Post)  
Old 5th July 2010
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

Another thing that we should all know, but may not - those alias commands should be put in your ~/.profile (or ~/.bashrc, or ~./cshrc or... well, I don't know the whole list), so the aliases will be in place on your next logon.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
  #7   (View Single Post)  
Old 9th February 2011
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: Lightest XFCE - Making XFCE lighter and faster vermaden Guides 27 2nd September 2010 12:24 PM
FreeBSD amd64 nVidia Binary Driver vermaden FreeBSD General 5 2nd January 2010 08:25 PM
Faster PHP White OpenBSD General 6 19th August 2009 09:11 AM
I386 ELF32 binary on AMD64 system can't find shared libraries Gemini FreeBSD General 0 9th December 2008 06:49 AM
Wine on FreeBSD 7.0 amd64 BlueJayofEvil FreeBSD Ports and Packages 13 29th July 2008 12:22 AM


All times are GMT. The time now is 07:01 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick