OpenBUGS can be installed on computers running Mac OS X as follows:
Creating an alias to run OpenBUGS
The syntax to run OpenBUGS can be quite long, as shown in (5) above. This is because of the location of the OpenBUGS file in your Wine directory. To avoid having to type that long syntax every time, you can create an alias in Terminal. For instance, every time you type 'openbugs', then the program opens automatically. To create the alias, type the following in Terminal:
Then you can edit the .profile file using vim. Add the following line to your .profile:
alias openbugs='wine /Users/<yourusername>/.wine/drive_c/Program\ Files/OpenBUGS/OpenBUGS323/OpenBUGS.exe'
Make sure you write your user name where it says <yourusername> above. Also, don't forget to check that the file is located in that directory. If not, use the correct directory in your computer. Then after you add that line, save the file and quit vim. Then, on Terminal type:
The program OpenBUGS will open automatically!
Troubleshooting
Homebrew may complain that Wine cannot be installed because some libraries could not be found. If that happens, try the following:
Then try to install Wine again.