Problems with MLwiN using Wine on Mac

Welcome to the forum for runmlwin users. Feel free to post your question about runmlwin here. The Centre for Multilevel Modelling take no responsibility for the accuracy of these posts, we are unable to monitor them closely. Do go ahead and post your question and thank you in advance if you find the time to post any answers!

Go to runmlwin: Running MLwiN from within Stata >> http://www.bristol.ac.uk/cmm/software/runmlwin/
Post Reply
carolineu
Posts: 2
Joined: Fri Mar 06, 2015 2:13 pm

Problems with MLwiN using Wine on Mac

Post by carolineu »

Hi all,
I am attempting to run MLwiN on a Mac using Wine, and then use Stata for the runmlwin command. My problem is that I have not yet managed to run mlwin from the Terminal via Wine. I'm a beginner using the Terminal so apologies for any naive questions . I have followed the step by step guide on the mlwin page for installing Wine (successfully), and also read the advice given to Janna on this forum. When I try to specify the wine fullpath to MLwiN in Terminal, I am given this error message:

carolines-MacBook-Pro:MLwiNv2.32 carolineuggla$ wine /Users/carolineuggla/.wine/drive_c/ProgramFiles/MLwiNv2.32/i386/mlwin.exe
err:module:import_dll Library MSVBVM60.DLL (which is needed by L"C:\\ProgramFiles\\MLwiNv2.32\\i386\\mlwin.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\ProgramFiles\\MLwiNv2.32\\i386\\mlwin.exe" failed, status c0000135

I'd be very grateful for any advice.

best,
Caroline
ChrisCharlton
Posts: 1384
Joined: Mon Oct 19, 2009 10:34 am

Re: Problems with MLwiN using Wine on Mac

Post by ChrisCharlton »

Could you confirm whether you can run the scripting version of MLwiN (i.e. mlnscript.exe instead of mlwin.exe)? If so then it is likely that you either forgot to run the following steps:

Code: Select all

winetricks vb6run
winetricks mfc42
winetricks corefonts
or for some reason the files added by these steps could not be found.
carolineu
Posts: 2
Joined: Fri Mar 06, 2015 2:13 pm

Re: Problems with MLwiN using Wine on Mac

Post by carolineu »

Dear Chris,
Thank you for your prompt reply! I had problem with the winetricks, and when I tried to run the mlnscript this is the error message I am given:

carolines-MacBook-Pro:MLwiNv2.32 carolineuggla$ wine /Users/carolineuggla/.wine/drive_c/ProgramFiles/MLwiNv2.32/i386/mlnscript.exe
fixme:heap:HeapSetInformation 0x0 1 0x0 0
A macro file must be specified with the /run option
carolines-MacBook-Pro:MLwiNv2.32 carolineuggla$

and when I try with winetricks, this is the error message:
carolines-MacBook-Pro:MLwiNv2.32 carolineuggla$ winetricks vb6run
-bash: winetricks: command not found
carolines-MacBook-Pro:MLwiNv2.32 carolineuggla$ winetricks mfc42
-bash: winetricks: command not found
carolines-MacBook-Pro:MLwiNv2.32 carolineuggla$ winetricks corefonts
-bash: winetricks: command not found


I thought wine tricks was only necessary if I wanted the GUI interface (which of course would be nice) but primarily I just want mlwin to work through the runmlwin in Stata..

Thanks!
Caroline
ChrisCharlton
Posts: 1384
Joined: Mon Oct 19, 2009 10:34 am

Re: Problems with MLwiN using Wine on Mac

Post by ChrisCharlton »

We could probably have phrased the text a little better. winetricks installs libraries required to the the GUI version of MLwiN (mlwin.exe) which are not required by the scripting version (mlnscript.exe). The message that you got when running mlnscript.exe:

Code: Select all

A macro file must be specified with the /run option
is the expected behaviour when it is working (the message just indicates that it needs a script to run), meaning that you should be able to use it with -runmlwin-.

I am not sure why winetricks is missing from your version of Wine, however it appears that you can get it manually from https://code.google.com/p/winetricks/wiki/Installing.
ChrisCharlton
Posts: 1384
Joined: Mon Oct 19, 2009 10:34 am

Re: Problems with MLwiN using Wine on Mac

Post by ChrisCharlton »

We have now released a native version of the MLwiN engine for the Mac (available from http://www.bris.ac.uk/cmm/software/mlwi ... rades.html), which we hope will make using -runmlwin- much more straightforward on this platform.
Post Reply