How to install WinBUGS and OpenBUGS on Mac
This document is originally from here!
-
Install Homebrew.
-
Open the terminal on your Mac and type:
brew install wine
-
Download the setup program for OpenBUGS on Windows from here (current version: OpenBUGS323setup.exe).
-
Still in Terminal, navigate to the directory where the setup program was downloaded.
- Use
cd
to change directories andls
to check the files in your current directory. - Probably, it will be in Downloads folder (i.e., type
cd Downloads
)
- Use
-
Once you are in the right directory, type:
wine OpenBUGS323setup.exe
-
OpenBUGS is now successfully installed! To check whether it is working properly, run
R2OpenBUGS.R
file from this repository.- The only thing you have to edit in the R file is the directory where OpenBUGS was installed.
- Use
CMD + SHIFT + .
in Finder to check the hidden directory such as ".wine" folder.
This one is much simpler!
- Download WinBUGS from here.
- To check whether it is working properly, run
WinBUGS.R
file from this repository.- Again, you have to specify the directory where WinBUGS was installed.
- Probably, it will be in Downloads folder.