Keeping multiple wine versions

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
alekseevic
Level 2
Level 2
Posts: 10
Joined: Tue Sep 14, 2010 10:12 am

Keeping multiple wine versions

Post by alekseevic »

Hello..
I would like to use different wine versions on the same pc (not at the same time), is it possible in any way?
I'm using ubuntu 10.4, no problems in cloning/compiling wine code.

Thanks a lot.
Frédéric Delanoy

Keeping multiple wine versions

Post by Frédéric Delanoy »

On Tue, Sep 14, 2010 at 17:19, alekseevic <[email protected]> wrote:
Hello..
I would like to use different wine versions on the same pc (not at the same time), is it possible in any way?
I'm using ubuntu 10.4, no problems in cloning/compiling wine code.

Thanks a lot.
Yes. See FAQ (http://wiki.winehq.org/FAQ) section 7.2
alekseevic
Level 2
Level 2
Posts: 10
Joined: Tue Sep 14, 2010 10:12 am

Re: Keeping multiple wine versions

Post by alekseevic »

Frédéric Delanoy wrote:On Tue, Sep 14, 2010 at 17:19, alekseevic <[email protected]> wrote:
Hello..
I would like to use different wine versions on the same pc (not at the same time), is it possible in any way?
I'm using ubuntu 10.4, no problems in cloning/compiling wine code.

Thanks a lot.
Yes. See FAQ (http://wiki.winehq.org/FAQ) section 7.2
Actually, that isn't what I meant.

I would like to execute different programs with different wine versions. For example: program1 with wine-1.2, program2 with wine-1.3.2, etc.
Hope this clarified.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Keeping multiple wine versions

Post by dimesio »

alekseevic wrote: Actually, that isn't what I meant.

I would like to execute different programs with different wine versions. For example: program1 with wine-1.2, program2 with wine-1.3.2, etc.
Hope this clarified.
It's not in the FAQ, though it probably should be. The answer is that you can't with distro packages, but you can if you build Wine yourself. The easiest way is to not install Wine; just run it from the build directory.
alekseevic
Level 2
Level 2
Posts: 10
Joined: Tue Sep 14, 2010 10:12 am

Re: Keeping multiple wine versions

Post by alekseevic »

dimesio wrote:
alekseevic wrote: Actually, that isn't what I meant.

I would like to execute different programs with different wine versions. For example: program1 with wine-1.2, program2 with wine-1.3.2, etc.
Hope this clarified.
It's not in the FAQ, though it probably should be. The answer is that you can't with distro packages, but you can if you build Wine yourself. The easiest way is to not install Wine; just run it from the build directory.
I'll give a try.
Are you sure that running the compiled wine version from a user directory will find all the required libraries (if there is any required library)?


Anyway, I'll post my results as soon as I try.
Frédéric Delanoy

Keeping multiple wine versions

Post by Frédéric Delanoy »

On Wed, Sep 15, 2010 at 12:07, alekseevic <[email protected]> wrote:
dimesio wrote:
alekseevic wrote:
Actually, that isn't what I meant.

I would like to execute different programs with different wine versions. For example: program1 with wine-1.2, program2 with wine-1.3.2, etc.
Hope this clarified.
It's not in the FAQ, though it probably should be. The answer is that you can't with distro packages, but you can if you build Wine yourself.  The easiest way is to not install Wine; just run it from the build directory.
I'll give a try.
Are you sure that running the compiled wine version from a user directory will find all the required libraries (if there is any required library)?
Yes, since the libraries are installed system-wide.
However, avoid running different wine versions on the same wineprefix
(especially if they are very different: different versions can assume
different registry structures, ...).

So basically:
- checkout version m and version n in different directories (say in
~/wineSourceVersion_M)
- in each of those, configure and make (*NOT* make install)
- when you want to launch a program, use sthg like
WINEPREFIX="~/.wine-versionM" ./wine foo (while in
~/wineSourceVersion_M)

Don't forget the ccache to speed up things, and read
http://wiki.winehq.org/RegressionTesting if you have compilation
problems with old wines.

Frédéric
alekseevic
Level 2
Level 2
Posts: 10
Joined: Tue Sep 14, 2010 10:12 am

Post by alekseevic »

Thank you for your exhausting reply.

I always used a different wineprefix for every program I had to use, but since there won't be libraries related issues, I'll try and I'll drop a report.

I think that this could be added to the FAQs.
alekseevic
Level 2
Level 2
Posts: 10
Joined: Tue Sep 14, 2010 10:12 am

Post by alekseevic »

Thank you, guys.

It works, I'm able to run different windows programs with different wine version.

As told before it's just needed to compile wine and not install it.
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

alekseevic wrote:Thank you, guys.

It works, I'm able to run different windows programs with different wine version.

As told before it's just needed to compile wine and not install it.

you can compile wine and install it.. just every version you configure, make sure to set its prefix to a unique location... the prefix is where it will install to. You will not have all these locations in your Path of course, but it works fine, a lot better than keeping the compiled folder around where you need to delete huge amounts of stuff or waste tons of space.
Locked