McStas: quick installation instructions
McStas Installation
Before you install McStas, you may try it from our
Ubuntu Live-CD. Just burn the CD and
reboot your machine. The local system is not affected, all runs from
the
CD.
The
official installation
instruction are explained in the
install.html
file of the distribution.
We recommand, in a few words, the following procedure:
For Linux/Unix:
- Check that a C compiler is installed (often the case, type 'gcc
-v' to check). gcc is perfect.
- Check that Perl is installed (this is usually the case, 'type
'perl -v' to check)
- Check that Tk is installed (often the case)
- Install perl-tk
(this is a standard package given with all systems)
- Install Scilab 4 [http://www.scilab.org
or given as a package, scilab 3.1 is
buggy]. This may be automated with the ./configure; make
install-scilab command (as superuser).
- Optionally: install Matlab
- Optionally: install a VRML viewer (such as LookAt, FreeWRL,
Octaga, ...) [search Google or http://www.rpmseek.com]
- Optionally: install perl-pdl, perl-ExtUtil-F77, pgplot and
perl-pgplot [might be part of the system distribution (Debian)]
- Optionally (alternative): install (from the system distribution)
perl-pdl, the X11-dev libraries and (from McStas installation, as superuser)
try: ./configure; make install-pgplot
- Optionally: install MPICH
- Optionally: install Octave and GnuPlot
- Install McStas:
./configure; make; make install
- Start McStas with: mcgui
For Windows:
The prefered method is to use our automated Windows installer (see the
download page), which
provides Perl 5.6, Dev-Cpp, Scilab 4.0, VRML Cortona Viewer and McStas.
Click 'Next' all the way through.
If you wish to install these tools manually, here is the procedure to
follow:
- Install Dev-Cpp [http://www.bloodshed.net/dev/devcpp.html]
then add the
C:\Dev-Cpp\bin directory to your PATH.
- Install Scilab 4 (scilab 3.1 is buggy)
[http://www.scilab.org]
- Install Perl 5.6
from ActiveState (perl 5.8 is buggy)
[http://downloads.activestate.com/ActivePerl/Windows/5.6/ActivePerl-5.6.1.638-MSWin32-x86.msi]
- Optionally: install Matlab
- Optionally: install a VRML viewer (such as Cortona, Octaga, ...)
- Install McStas:
install.bat
- Start McStas with: mcgui.pl
You may have a look at the
FAQ
page in case of troubles.
Last Modified: Tuesday, 14-Oct-2008 15:56:05 CEST