Install Infer.NET on Linux

In a previous post, I presented Infer.NET, a library for Bayesian networks (a.k.a probabilistic graphical models) inference on the .NET platform by Microsoft Research. In that post, I wrote that I installed Infer.NET (and .NET and IronPython) on Windows 7 running in VMWare. If you don’t have Windows, you can install them on Linux (and probably Mac OS). Today, I managed to install them on Linux on my work machine, and tested several examples successfully. Below are the steps:

  • I used Ubuntu 10.10. However, on other Linux/UNIX distros and on Mac OS, the steps should be similar.
  • First, install IronPython. The easiest way is to use Synaptics, which will install mono (a free implementation of .NET framework) as dependencies of IronPython. If you install IronPython manually, you must install mono before it.
  • Second, install Wine. Again, the easiest way is to use Synaptics.
  • Download Infer.NET from its website. It’s a MSI package (Microsoft Installer).
  • Open the console, change to the directory where you saved the MSI package, and execute:
    msiexec /i <the package.msi>

    Follow the instructions to install Infer.NET into your system. If the installation fails, you are out of luck.

  • If Infer.NET has been installed successfully into your system, it should now appear in the Wine menu. To try it, start IronPython (ipy) and run some example. Note that the path in:
    sys.path.append(r'C:\Path\to\your\Infer.NET\bin\Release')

    should be something like "~/.wine/dosdevices/c:/Program Files/Microsoft Research/Infer.NET 2.4 Beta/bin/Release"

Advertisements
This entry was posted in MacOS, Python, Research and tagged , , . Bookmark the permalink.

5 Responses to Install Infer.NET on Linux

  1. Pingback: Programming Bayesian Networks with Infer.NET and Python | Truong's Weblog

  2. Pingback: Getting Infer.NET and IronPython to work on Ubuntu 12.04 « panrub

  3. Pingback: Getting Infer.NET and IronPython to work on Ubuntu 12.04 « Crowdsourcing

  4. Pingback: Programming Bayesian Networks with Infer.NET and Python | Truong Nghiem's iHome

  5. Hi there, its good article regarding media print, we all know media is a wonderful source of facts.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s