Howto: How I "fixed" Debian AMD64 to compile wine/git

Questions about Wine on Linux
Locked
Quix0r
Level 3
Level 3
Posts: 50
Joined: Sat May 10, 2008 8:23 am

Howto: How I "fixed" Debian AMD64 to compile wine/git

Post by Quix0r »

Hello all,

I have found a way to fix 32-bit setup on Debian AMD64 by doing the following steps:

1) Have latest packages installed, so a "update/upgrade" is required
2) I wrote a "fixso.sh" script:

Code: Select all

#!/bin/sh

LIST=`ls -1 *.so.?`
for entry in ${LIST}; do
echo "entry ${entry} ..."
target=`echo "${entry}" | head -c -3`
ln -s "${entry}" "${target}"
done
Then go to (/usr)/lib/i386-linux-gnu/ and run it from there:
# cd /lib/i386-linux-gnu/
# sh /root/fixso.sh
# cd /usr/lib/i386-linux-gnu/
# sh /root/fixso.sh
3) I wrote a "reconfgure.sh" script:

Code: Select all

#!/bin/sh

export LDFLAGS="-L/usr/lib/i386-linux-gnu -L/lib/i386-linux-gnu"
./configure --prefix=/opt
Strange that I have to provide that LDFLAGS here, but it helped.

Now it is comiling wine. :) Hope this helps someone to save a lot time and headaches...
Quix0r
Level 3
Level 3
Posts: 50
Joined: Sat May 10, 2008 8:23 am

Re: Howto: How I "fixed" Debian AMD64 to compile wine/git

Post by Quix0r »

4) Run a "make clean", that will cleanup your old build files, was also important here or else compilation aborted here with missing symbols.
Locked