You are not logged in.

#1 2010-07-18 23:24:00

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Wine in chroot on 64bit (winetricks workaround) [SOLVED]

Hi,

So, I've managed to install wine into a 32bit chroot running pure 64bit (no multilib).
I've got opengl stuff working for the chroot, but I cannot get winetricks to function.
I've compiled and installed it from aur, but it gives the error "Cannot find wine (wine)".
I need it to install corefonts.

Can somebody point me to how I can just download and install corefonts for wine manually, or better, tell me how I have to setup my chroot for winetricks to recognize my wine install (1.2)!?! Or is this a winetricks bug? mad

EDIT:
Comment out this part of the winetricks script (line 3810)
#if [ ! -x "`which "$WINE" 2>/dev/null`" ]
#then
#    die "Cannot find wine ($WINE)"
#fi

Last edited by hungerfish (2010-07-19 10:54:11)


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

#2 2010-07-18 23:40:13

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

I have no idea about wine, I'm just guessing.

> I need it to install corefonts.
'pacman -S ttf-ms-fonts' won't do? There's something like that in AUR too http://aur.archlinux.org/packages.php?ID=5418

Try telling winetricks where do you have wine installed: 'env WINE=~/wine-git/wine'.

Last edited by karol (2010-07-19 00:06:18)

Offline

#3 2010-07-19 01:19:26

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

You ARE installing winetricks within the chroot and not outside, aren't you?

Assuming its installed and can't RUN, which wine did you install? Can you run wine itself (try winecfg)?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#4 2010-07-19 08:15:04

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

Yes, I pulled winetricks off aur, 'built' it within the chroot and installed it in the chroot.
My wine version is the 'official' version from the arch repos., and runs perfectly.

I've tried setting env, without success.
I've tried running tricks by using "schroot -p -- winetricks" and also by 'schrooting' into the chroot and running it there directly.

The ttf-ms-fonts package is already installed within the chroot, and I've now just downloaded all the font installers manually and installed them with wine.
Still I'd like to get winetricks working...

Last edited by hungerfish (2010-07-19 08:15:33)


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

#5 2010-07-19 08:35:55

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

Paste your error message when running winetricks.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#6 2010-07-19 08:59:26

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

schroot -p -- winetricks

------------------------------------------------------
Cannot find wine (wine)
------------------------------------------------------

Same when run from 'within' the chroot

Last edited by hungerfish (2010-07-19 09:00:07)


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

#7 2010-07-19 09:10:02

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

http://wiki.winehq.org/winetricks

You'd probably need to contact the author. Never seen that error before, seems unhelpful.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#8 2010-07-19 09:13:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

  if [ ! -x "`which "$WINE" 2>/dev/null`" ]
  then
      die "Cannot find wine ($WINE)"
  fi

http://www.kegel.com/wine/winetricks

Try setting that variable to your wine location.

> I've tried setting env, without success.
What does that mean? What did you run?

Last edited by karol (2010-07-19 09:15:36)

Offline

#9 2010-07-19 09:17:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

ngoonee wrote:

http://wiki.winehq.org/winetricks

You'd probably need to contact the author. Never seen that error before, seems unhelpful.

Quite to the contrary :-) there's only once mention of that error in the winetricks script.

Offline

#10 2010-07-19 09:29:30

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

Well I'm pretty sure this must have some connection to the schroot program.
I run:
"env WINE=/opt/arch32/usr/bin/wine winetricks"
and
"env WINE=/usr/bin/wine winetricks"
Still the same error.


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

#11 2010-07-19 09:33:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

'echo $WINE'
I think you need to _export_ those vars.

> Well I'm pretty sure this must have some connection to the schroot program.
Was there sth about "inheriting" env?

Offline

#12 2010-07-19 09:42:33

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

Still no luck sad


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

#13 2010-07-19 09:44:16

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

What's the output of

echo $WINE

Still the same error?

Last edited by karol (2010-07-19 09:44:28)

Offline

#14 2010-07-19 10:07:37

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

The path as should be seen by winetricks:

tom ~  $  WINE=/usr/bin/wine
tom ~  $  echo $WINE
/usr/bin/wine
tom ~  $  schroot -p -- winetricks
------------------------------------------------------
Cannot find wine (wine)
------------------------------------------------------

And the real path:

WINE=/opt/arch32/usr/bin/wine
tom ~  $  echo $WINE
/opt/arch32/usr/bin/wine
tom ~  $  schroot -p -- winetricks
------------------------------------------------------
Cannot find wine (wine)
------------------------------------------------------


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

#15 2010-07-19 10:10:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

Hack that script.
What happens if you remove those four lines I pasted https://bbs.archlinux.org/viewtopic.php … 09#p794509 ?

At the beginning the default values are defines as

WINE=${WINE:-wine}

Would a bit of hardcoding help?

Last edited by karol (2010-07-19 10:15:52)

Offline

#16 2010-07-19 10:49:31

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

Yep, did the trick... smile

Thanks Karol!

Last edited by hungerfish (2010-07-19 10:54:33)


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

#17 2010-07-19 15:43:17

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

It does seem your chroot is setup wrongly though, to be able to see '/opt/arch32'....


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#18 2010-07-20 06:11:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

ngoonee wrote:

It does seem your chroot is setup wrongly though, to be able to see '/opt/arch32'....

Maybe /opt/arch32 is the location of the chroot, so winetricks should see only what's inside.

Last edited by karol (2010-07-20 06:12:01)

Offline

#19 2010-07-20 06:18:58

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

karol wrote:
ngoonee wrote:

It does seem your chroot is setup wrongly though, to be able to see '/opt/arch32'....

Maybe /opt/arch32 is the location of the chroot, so winetricks should see only what's inside.

Yes, my sentiments exactly.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#20 2010-07-21 16:51:37

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

Yes, well, the chroot is in /opt/arch32, I've only been also trying to set the full (non-chrooted) path, although obviously doing this isn't very sane...


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

#21 2010-07-21 22:57:31

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

When running apps from within the chroot, /opt/arch32/something/or/other should be just /something/or/other. That's the whole point of the chroot, changing your root to be some folder.

Well, if it works, no worries. Just seems the setup isn't correct to me.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#22 2010-07-26 11:46:23

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Re: Wine in chroot on 64bit (winetricks workaround) [SOLVED]

When running apps from within the chroot, /opt/arch32/something/or/other should be just /something/or/other.

I know, and that is what I meant above.

My chroot is setup correctly, I'm just guessing, but I think the check that the winetricks script does to see if wine is installed does not give the right result in a chroot env. (as setup when following the arch wiki entry).


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

Board footer

Powered by FluxBB