Page 2 of 2

Re: runmlwin and Linux?

Posted: Sat Feb 07, 2015 2:12 pm
by janna
Dear Chris,

it works! I tried out and changed some things, first I made sure that Stata is able to access the "original" wine directory. Even with quotes, blanks obviously created problems, so I changed the folder names.
This is the current mlwin.sh:

Code: Select all

#!/bin/sh
/usr/local/bin/wine mlwin.exe $@

And this is the Stata do-file

Code: Select all


cd /Users/janna/.wine/drive_c/Programme/MLwiN/i386
use http://www.bristol.ac.uk/cmm/media/runmlwin/tutorial, clear
global MLwiN_path /Users/janna/.wine/drive_c/Programme/MLwiN/i386/mlwin.sh


runmlwin normexam cons standlrt, level2(school: cons) level1 ///
(student: cons) nopause

It is necessary to change the directory, it is not working with the global only.

I still can't quite believe that it's actually working, I was already desperate...not sure if I wanna try this with my modified runmlwin.ado that also deals with my plausible values - but for a start this is really great! Thank you very much!

Re: runmlwin and Linux?

Posted: Sat Feb 07, 2015 4:41 pm
by ChrisCharlton
I'm glad to hear that you now have it working. Thanks for posting your working solution as this may be helpful for others in a similar situation.

One other thing you might want to try is to move the "cd" command from Stata into the mlwin.sh file to save having to run it every time, i.e. change it to:

Code: Select all

#!/bin/sh
cd /Users/janna/.wine/drive_c/Programme/MLwiN/i386
/usr/local/bin/wine mlwin.exe $@
or even:

Code: Select all

#!/bin/sh
/usr/local/bin/wine /Users/janna/.wine/drive_c/Programme/MLwiN/i386/mlwin.exe $@
Also - if you would like to try out the Mac OS scripting version that we will be releasing later in the month send me an email (you can find my address on http://www.bristol.ac.uk/cmm/team/).

Re: runmlwin and Linux?

Posted: Thu Mar 19, 2015 10:34 am
by ChrisCharlton
You may be interested to know that we have now released native versions of the MLwiN engine for various alternative operating system such as Mac OS X and Linux (available from http://www.bris.ac.uk/cmm/software/mlwi ... rades.html). This should make using -runmlwin- on these platforms much more straightforward (assuming that you don't need the GUI).