Installing Wine from source for LMDE

Write tutorials and howtos in here
More tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please, Before you post please read this

Installing Wine from source for LMDE

Postby wshyang on Tue May 22, 2012 11:14 am

Put together a little script that I quite liked, so I thought it might be helpful to someone else as well :)

Code: Select all
#!/bin/bash

LATEST_UBUNTU="precise"
cat > /tmp/ubuntu-src.list <<UBUNTUSRC
###### Ubuntu Main Repos
deb-src http://us.archive.ubuntu.com/ubuntu/ ${LATEST_UBUNTU} main restricted universe multiverse

###### Ubuntu Update Repos
deb-src http://us.archive.ubuntu.com/ubuntu/ ${LATEST_UBUNTU}-security main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ ${LATEST_UBUNTU}-updates main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ ${LATEST_UBUNTU}-proposed main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ ${LATEST_UBUNTU}-backports main restricted universe multiverse
UBUNTUSRC
sudo cp -v /tmp/ubuntu-src.list /etc/apt/sources.list.d/ubuntu-src.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
sudo apt-get update
sudo apt-get -y build-dep wine
WINE_VER="1.3.12"
wget -O /tmp/wine-src.tar.bz2 "http://ibiblio.org/pub/linux/system/emulators/wine/wine-${WINE_VER}.tar.bz2"
tar -vxjf /tmp/wine-src.tar.bz2
sh -c "cd wine-${WINE_VER} && ./configure && make depend && make && sudo checkinstall && mv -v *.deb ../"
rm -rv "wine-${WINE_VER}"
sudo apt-get -y install winetricks
wshyang
Level 1
Level 1
 
Posts: 8
Joined: Tue May 22, 2012 3:51 am

Linux Mint is funded by ads and donations.
 

Re: Installing Wine from source for LMDE

Postby Oscar799 on Tue May 22, 2012 12:55 pm

Moved here by moderator
Image
"Don't fix it if it ain't broken,don't break it if you can't fix it" Husse
Registered Linux User #511789
User avatar
Oscar799
Level 18
Level 18
 
Posts: 8699
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: Installing Wine from source for LMDE

Postby zerozero on Tue May 22, 2012 8:12 pm

a few questions:
1- since you decided to make this script why not use http://dev.carbon-project.org/debian/wine-unstable/ instead of ubuntu?
2- why "precise" and not "oneiric" or "quantal"? what's the rationale behind this option?

for me Q1 is laziness, period!

Q2 is a shot in the dark, precise "was" partly based in sid (better, in a snapshot of sid from the time precise was released), lmde is neither, it's not sid, it's not precise and not even testing exactly (due to the fact of the buffer that the UP carry),

this script is a shot in the dark in a moving target (all the ingredients to disaster)
User avatar
zerozero
Level 16
Level 16
 
Posts: 6435
Joined: Tue Jul 07, 2009 2:29 pm

Re: Installing Wine from source for LMDE

Postby wshyang on Tue May 22, 2012 9:17 pm

Q1: Actually the reason why I did it was because I didn't want an unstable version, but a known good version :)

Q2: You have a point... I actually took that bit from a wiki page on WineHQ, and while it felt odd, it did work. Is there any better way of ensuring that my build dependencies are right on my Mint installation before I build Wine from source?
wshyang
Level 1
Level 1
 
Posts: 8
Joined: Tue May 22, 2012 3:51 am

Re: Installing Wine from source for LMDE

Postby zerozero on Tue May 22, 2012 9:58 pm

ok, fair enough, you have here 1.4
http://verahill.blogspot.com.au/2012/02 ... -wine.html following that and this http://sourceforge.net/projects/wine/files/Source/ you can compile (within the proper debian rules) any version of wine in lmde.
give it a try :wink:
Code: Select all
amadeu@amadeu ~ $ apt-cache policy wine-1.4
wine-1.4:
  Installed: 1.4-rc5-1
  Candidate: 1.4-rc5-1
  Version table:
 *** 1.4-rc5-1 0
        100 /var/lib/dpkg/status
amadeu@amadeu ~ $ which wine
/usr/local/bin/wine
amadeu@amadeu ~ $ apt show wine-1.4
Package: wine-1.4
New: yes
State: installed
Automatically installed: no
Version: 1.4-rc5-1
Priority: extra
Section: checkinstall
Maintainer: root@amadeu
Architecture: amd64
Uncompressed Size: 129 M
Description: wine1.4

User avatar
zerozero
Level 16
Level 16
 
Posts: 6435
Joined: Tue Jul 07, 2009 2:29 pm


Return to Tutorials / Howtos

Who is online

Users browsing this forum: No registered users and 2 guests