runmlwin and Linux?

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/
janna
Posts: 9
Joined: Thu Jun 03, 2010 5:53 pm

Re: runmlwin and Linux?

Post 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!
ChrisCharlton
Posts: 1351
Joined: Mon Oct 19, 2009 10:34 am

Re: runmlwin and Linux?

Post 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/).
ChrisCharlton
Posts: 1351
Joined: Mon Oct 19, 2009 10:34 am

Re: runmlwin and Linux?

Post 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).
Post Reply