MINC has pre-built binaries for the following distributions/architectures
Debian GNU/Linux || Ubuntu[edit | edit source]
For this build type the dpkg and apt-get style of installation is used. The source deb files can be found here
For a different system, deb needs to be replaced by the appropriate extension (for example ubuntu-maverick). See Installation for a list of supported operating systems. To install the packages do this:
NB: when using Ubuntu use sudo to run the following commands (ie: add a "sudo" to the front of all of the following steps. If not, run the following commands as root.
Step 1: Run the following to add a line to /etc/apt/sources.list to tell apt-get to look at the packages website for the MINC packages.
# echo "deb http://packages.bic.mni.mcgill.ca/debian-lenny ./" >> /etc/apt/sources.list
Alternatively, using the graphical interface, go in "System>Administration>Synaptic manager>Configuration>Settings" and click on add. Then add the line "deb http://packages.bic.mni.mcgill.ca/deb ./" and click on "add source". For some reason, this will generate two new entries in the list of repositories. Click on the "MINC (sources)" repository and click "remove" to avoid getting error messages latter on.
Step 2: Update the internal list of packages
# apt-get update
Alternatively, using the graphical interface, click on "update" in synaptic manager.
Step 3: Install you packages of choice (here we install MINC, mni-autoreg and all the mni-models packages).
# apt-get install minc mni-autoreg mni-models*
Note that, when available, the minc-bundle package will install all minc tools & associated softwares. Alternatively, using the graphical interface, search for the package in synaptic manager, right click on the package name, select "install" and then click on "apply changes". A tutorial on synaptic manager can be found on "Ubuntu's help center".
Mac OSX Jaguar/Panther/Tiger (10.1-10.4)[edit | edit source]
For this build type the NeXT .pkg style of installation is used (given that this is what Apple use for OSX). The source packages can be found here
To install the packages do this:
This should apply to both an Intel and PPC Mac but when I wrote this I was fiddling with a MacBook
Step 1: install X11 and XCode from the Install DVD that came with your mac. X11 is part of the Optional Packages on you installation DVD, you will find it as X11SDK.pkg in the Tools/Packages subdirectory on the Xcode DVD (generally!)
Step 2: download the packages you want from the site above
Step 3: Click on each of the packages in turn and then press OK/Agree a lot of times for each one.
Step 4: Realise that step #3 is somewhat tedious and use a Command line to do it. To do this, first untar the packages and then install using "installer"
$ tar zxvf minc-xxxx.pkg.tar.gz $ sudo installer -target / -pkg minc-xxxx.pkg
Note that in Step #4 we use sudo so that the packages are installed in /usr/local/mni. Note also that the installer command can take multiple .pkg files at once so you could so something like this to first untar all the packages in the directory in which you downloaded them and then install them
$ for i in `ls -1 *.pkg.tar.gz`; do tar zxvf $i; done $ for i in `ls -1 *.pkg`; do sudo installer -target / -pkg $i; done
Now all you need do is ensure that you have an install of netcdf on your mac somewhere. If you dont know if you do, then you likely dont... The easiest way to get netcdf is via the fink project. First, install fink (www.finkproject.org) if you dont have it. It will be installed at /sw/bin/. Then type:
$ sudo fink install netcdf
to get netcdf. While you are at it with fink you may as well install netpbm that is required by register and Display:
$ sudo fink install netpbm
Then you should be done
XP/Cygwin[edit | edit source]
For this build type I have not yet figured out a nice consistent way to build .deb dpkg files under debian that work. Nor have I put the time into figuring our the cygwin installer package structure (but will eventually). So what this means is that the cygwin download is a static .tar.gz archive of pre-compiled binaries that I build and release from time to time.
To install the packages do this:
Step 1: Download Setup.exe from the Cygwin website and install Cygwin. I use the following settings:
Root Directory: C:\cygwin (All users/UNIX file type) Local Package Dir: C:\cygwin\dnld
Step 2: Add the packages in the X11 and development sections
Step 3: Download the latest static build of the MINC toolset from the webpage mentioned above. Move this file to C:\cygwin\usr\local
Step 4: Start a cygwin shell and then run the following to "install".
$ tar zxvf minc-xxxxxx.tar.gz