Difference between revisions of "Windows"

From Madagascar
Jump to navigation Jump to search
Line 54: Line 54:
# Execute <tt>/usr/bin/rebaseall</tt>
# Execute <tt>/usr/bin/rebaseall</tt>
* Running Cygwin's '''setup''' program
* Running Cygwin's '''setup''' program

Revision as of 18:04, 16 October 2011

Madagascar has been run on Microsoft Windows machines under various types of environments:



Madagascar can run under Cygwin, which provides a Unix environment under Windows.

To obtain Cygwin, go to its web page, download and run the installer. This should create a Cygwin program, which when run, creates a POSIX shell window similar-looking to the Windows command window but which behaves in a more Unix-like way.

NOTE: If you are unfamiliar with Unix-like systems, a good place to start is Greg Wilson's Software Carpentry course.

You will need to install several additional Cygwin components before Madagascar can run. To get these, rerun the installer program (called Setup and represented by an icon with a black "C" shape enclosing a green arrow).

  1. Start Setup program.
  2. Keep clicking (defaults should work, but you can choose a mirror on your own continent) until you see a collapsed list (boxed "+" signs) in a selection box.
  3. Choose the following before downloading.
    1. Open the Devel section and select
      • gcc
      • make
    2. If you want to use the development version of Madagascar, also choose
      • subversion
    3. If you have a favorite unix editor, choose it under Editors (novices may wish to work with Notepad for a while). Both vim and emacs are available.
    4. Open Interpreters and select
      • python
    5. Open Net and select
      • sunrpc
    6. Open Libs and select
      • opengl
    7. If you intend to use X-window, open X11 and select
      • libX11-devel
      • libXaw-devel
    8. If you intend to use LaTeX, open Publishing and select
      • tetex
    9. If you intend to use ppmpen, open Graphics and select
      • libnetpbm-devel
    10. If you intend to use tiffpen, open Graphics and select
      • libtiff-devel
    11. If you intend to use gdpen, open Graphics and select
      • libgd-devel
  4. Next, click Next>
    Your download will proceed.
  5. When done, click Finish.

After performing this steps, proceed to a normal Madagascar Installation.

For running X applications such as xtpen, make sure to run startx first to open an X terminal window.


If you get errors "unable to remap...", note the following:

A proper work of a Cygwin installation may require running rebaseall, a program that fixes library dependencies. You only need to run it once.

  1. Quit all Cygwin processes
  2. Start ash (<cygroot>\bin\ash.exe)
  3. Execute /usr/bin/rebaseall


  • Running Cygwin's setup program


  • Selecting packages


  • Running Cygwin's bash program


  • Testing Madagascar installation




Interix is the name of the Unix environment for Windows provided by Microsoft through the following software packages:

SSH + X server

If you can count on a network connection to a full UNIX machine while you run Madagascar, you actually need to install under MS Windows just a SSH client and a X server, and just run the Madagascar installed on the UNIX machine. Cygwin provides both, but it is big and slow. Faster and more lightweight alternatives are:

  • MobaXterm, an enhanced terminal with an X server and a set of Unix commands (GNU/Cygwin) packaged in a single portable exe file;
  • Xming as X server and PuTTY as SSH client (remember to check the "Tunnel X11 connections" box when saving the session configuration).