Installing Wine from source for LMDE

Archived topics about LMDE 1 and LMDE 2
Locked
wshyang

Installing Wine from source for LMDE

Post by wshyang »

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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Oscar799
Level 20
Level 20
Posts: 10419
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: Installing Wine from source for LMDE

Post by Oscar799 »

Moved here by moderator
Image
zerozero

Re: Installing Wine from source for LMDE

Post by zerozero »

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)
wshyang

Re: Installing Wine from source for LMDE

Post by wshyang »

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?
zerozero

Re: Installing Wine from source for LMDE

Post by zerozero »

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

Locked

Return to “LMDE Archive”