Page 1 of 1

Problems with MLwiN using Wine on Mac

Posted: Fri Mar 06, 2015 2:43 pm
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

Re: Problems with MLwiN using Wine on Mac

Posted: Fri Mar 06, 2015 3:24 pm
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.

Re: Problems with MLwiN using Wine on Mac

Posted: Fri Mar 06, 2015 4:19 pm
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

Re: Problems with MLwiN using Wine on Mac

Posted: Fri Mar 06, 2015 5:14 pm
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.

Re: Problems with MLwiN using Wine on Mac

Posted: Thu Mar 19, 2015 10:38 am
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.