Windows: Difference between revisions
→Windows Subsystem for Linux: Ubuntu |
|||
(17 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<tt>Madagascar</tt> has been run on Microsoft Windows machines under various types of environments: | <tt>Madagascar</tt> has been run on Microsoft Windows machines under various types of environments: | ||
==Windows Subsystem for Linux== | |||
Windows Subsystem for Linux (WSL) is a compatibility layer (available on on Windows 10 and Windows 11) that allows Linux applications to run natively under Windows. | |||
To install Ubuntu Linux using WSL, follow https://ubuntu.com/wsl , then [[Advanced_Installation#Ubuntu|follow instructions]] for installing Madagascar under Ubuntu. | |||
==Cygwin== | ==Cygwin== | ||
Line 15: | Line 21: | ||
# Choose the following before downloading. | # Choose the following before downloading. | ||
## Open the '''Devel''' section and select | ## Open the '''Devel''' section and select | ||
##* gcc | ##* gcc-core | ||
##* gcc-g++ | |||
##* gcc-gfortran | |||
##* make | ##* make | ||
## If you want to use the development version of <tt>Madagascar</tt>, also choose | ## If you want to use the development version of <tt>Madagascar</tt>, also choose one of the following: | ||
##* subversion | ##* subversion | ||
##* git | |||
## Open the '''Libs''' section and select | |||
##* libtirpc-devel | |||
##* libXaw-devel | |||
##* libX11-devel | |||
## If you have a favorite unix editor, choose it under '''Editors''' (novices may wish to work with Notepad for a while). Both <tt>vim</tt> and <tt>emacs</tt> are available. | ## If you have a favorite unix editor, choose it under '''Editors''' (novices may wish to work with Notepad for a while). Both <tt>vim</tt> and <tt>emacs</tt> are available. | ||
## Open '''Interpreters''' and select | ## Open '''Interpreters''' and select | ||
##* python | ##* python | ||
## | ## For X-window display with <tt>oglpen</tt>, open '''X11''' and select | ||
##* libglut-devel | ##* libglut-devel | ||
##* libGLU-devel | |||
##* | |||
## If you intend to use LaTeX, open '''Publishing''' and select | ## If you intend to use LaTeX, open '''Publishing''' and select | ||
##* texlive | ##* texlive | ||
##* texlive-collection-latexextra | ##* texlive-collection-latexextra | ||
##* texlive-collection-fontutils | |||
## If you intend to use <tt>ppmpen</tt>, open '''Graphics''' and select | ## If you intend to use <tt>ppmpen</tt>, open '''Graphics''' and select | ||
##* libnetpbm-devel | ##* libnetpbm-devel | ||
## If you intend to use <tt>tiffpen</tt>, open ''' | ## If you intend to use <tt>tiffpen</tt>, open '''Libs''' and select | ||
##* libtiff-devel | ##* libtiff-devel | ||
## If you intend to use <tt>gdpen</tt>, open ''' | ## If you intend to use <tt>gdpen</tt>, open '''Libs''' and select | ||
##* libgd-devel | ##* libgd-devel | ||
## For Xwin server installation, open '''X11''' and select | |||
##* xinit | |||
# Next, click '''Next>''' | # Next, click '''Next>''' | ||
#: Your download will proceed. | #: Your download will proceed. | ||
Line 80: | Line 92: | ||
</bash> | </bash> | ||
==Interix== | ==Interix (outdated) == | ||
[http://en.wikipedia.org/wiki/Interix Interix] is the name of the Unix environment for Windows provided by Microsoft through the following software packages: | [http://en.wikipedia.org/wiki/Interix Interix] is the name of the Unix environment for Windows provided by Microsoft through the following software packages: | ||
* [http://en.wikipedia.org/wiki/Microsoft_Windows_Services_for_UNIX Services For Unix] (SFU), available as a [http://www.microsoft.com/downloads/details.aspx?FamilyID=896c9688-601b-44f1-81a4-02878ff11778&DisplayLang=en free download] for the Windows NT family of operating systems up to and including Windows XP Professional ([http://www.reproducibility.org/rsflog/uploads/PS0001.jpg screenshot of m8r running on SFU] from an [http://www.reproducibility.org/rsflog/index.php?/archives/68-RSFMadagascar-on-Windows-using-SFU.html April 2006 entry on the m8r blog]). SFU availability was discontinued in 2009. | * [http://en.wikipedia.org/wiki/Microsoft_Windows_Services_for_UNIX Services For Unix] (SFU), available as a [http://www.microsoft.com/downloads/details.aspx?FamilyID=896c9688-601b-44f1-81a4-02878ff11778&DisplayLang=en free download] for the Windows NT family of operating systems up to and including Windows XP Professional ([http://www.reproducibility.org/rsflog/uploads/PS0001.jpg screenshot of m8r running on SFU] from an [http://www.reproducibility.org/rsflog/index.php?/archives/68-RSFMadagascar-on-Windows-using-SFU.html April 2006 entry on the m8r blog]). SFU availability was discontinued in 2009. |
Latest revision as of 18:31, 6 September 2022
Madagascar has been run on Microsoft Windows machines under various types of environments:
Windows Subsystem for Linux[edit]
Windows Subsystem for Linux (WSL) is a compatibility layer (available on on Windows 10 and Windows 11) that allows Linux applications to run natively under Windows.
To install Ubuntu Linux using WSL, follow https://ubuntu.com/wsl , then follow instructions for installing Madagascar under Ubuntu.
Cygwin[edit]
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).
- Start Setup program.
- 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.
- Choose the following before downloading.
- Open the Devel section and select
- gcc-core
- gcc-g++
- gcc-gfortran
- make
- If you want to use the development version of Madagascar, also choose one of the following:
- subversion
- git
- Open the Libs section and select
- libtirpc-devel
- libXaw-devel
- libX11-devel
- 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.
- Open Interpreters and select
- python
- For X-window display with oglpen, open X11 and select
- libglut-devel
- libGLU-devel
- If you intend to use LaTeX, open Publishing and select
- texlive
- texlive-collection-latexextra
- texlive-collection-fontutils
- If you intend to use ppmpen, open Graphics and select
- libnetpbm-devel
- If you intend to use tiffpen, open Libs and select
- libtiff-devel
- If you intend to use gdpen, open Libs and select
- libgd-devel
- For Xwin server installation, open X11 and select
- xinit
- Open the Devel section and select
- Next, click Next>
- Your download will proceed.
- 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.
Troubleshooting[edit]
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.
- Quit all Cygwin processes
- Start ash (<cygroot>\bin\ash.exe)
- Execute /usr/bin/rebaseall
Screenshots[edit]
- Running Cygwin's setup program
- Selecting packages
- Running Cygwin's bash program
- Testing Madagascar installation
Matlab API[edit]
To use the Matlab API with Madagascar under Cygwin, make sure you have Mex installed, and create a symbolic link, i.e.: <bash> ln -s /location/of/mex.bat /usr/bin/mex </bash>
Interix (outdated)[edit]
Interix is the name of the Unix environment for Windows provided by Microsoft through the following software packages:
- Services For Unix (SFU), available as a free download for the Windows NT family of operating systems up to and including Windows XP Professional (screenshot of m8r running on SFU from an April 2006 entry on the m8r blog). SFU availability was discontinued in 2009.
- Subsystem for UNIX-based Applications (SUA), included with Windows Server 2003 R2 and Windows Vista.
SSH + X server[edit]
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: