[mcstas-users] Linux Installation Problem

Peter Kjær Willendrup pkwi at fysik.dtu.dk
Fri Mar 1 21:11:13 CET 2013

Ooops, didn't see your second question in the first go, sorry.

In principle copying your component to e.g. /usr/local/mcstas-2.0/optics should work - and you can of course always simply leave it your current work-folder?

The issue of "Guide_circular is similar to Guide_circular.comp" looks a bit strange - try sending me the comp and I will try to reproduce your problem myself.



On Mar 1, 2013, at 21:05 , Peter Willendrup <p at willendrup.org<mailto:p at willendrup.org>>

Hi Kyle,

What is not at all clear in the documentation (and even in the tarball)  is that we have effectively moved away from using autoconf / configure to the use of cmake. Sorry about this!

The easiest way to compile from source if you insist (we do have a set of proper 64bit deb packages these days) is probably by using installing cmake, i.e.

tar xzf mcstas-2.0-src-unix.tar.gz
cd mcstas-2.0-src-unix

Core package:
tar xzf mcstas-2.0-src.tar.gz
cd mcstas-2.0-src
mkdir build && cd build
cmake ..
make install

Do the same for the -components, and the selection of -tool- packages you want.

Hope this helps,


On Mar 1, 2013, at 20:53 , "Grammer, Kyle Brandon" <kgrammer at utk.edu<mailto:kgrammer at utk.edu>> wrote:

Hi All,

I have downloaded the mcstas-2.0-src-unix.tar.gz file and tried to compile mcstas 2.0 from source on 64 bit ubuntu. Previously, I was able to compile version 1.12c from source using the 64 bit intel linux source tar without any issues.

When I extract the unix source tar and try to run ./configure, I get the following:

checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
Configurating McCode with McStas flavour
MCCODE_DATE     =Mar. 01, 2013
MCCODE_VERSION  =Mar-01-2013
MCCODE_STRING   =McStas Mar-01-2013 - Mar. 01, 2013
MCCODE_BUGREPORT=mcstas-support at mcstas.org<mailto:MCCODE_BUGREPORT=mcstas-support at mcstas.org>
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."

It seems that it is missing an install script that it requires. Also, there is no install-docs folder full of documentation. There are several other tar files in mcstas-2.0-src-unix.tar.gz, as well, but I cannot find any instructions for where to unzip/untar them.

Perhaps this is the absolutely wrong tar for me to be using and an intel linux tar simply does not exist? Would I be better served downloading the bleeding edge version from SVN?

I was able to install mcstas 2.0 from the experimental deb mirror with:
sudo apt-get install mcstas-suite

However, I want to be able to modify and add my own components to the system and mcstas 2.0 does not seem to find new component files that I have added. For isntance, I have a component called "Guide_circular.comp" that I placed in the optics/ directory for mcstas 2.0, and mcstas found it and included it in the menu of possible components to add. However, the guide that takes dimensions and other parameters in the gui for Guide_circular.comp does not exist. When I try to compile an existing instrument that uses Guide_circular, I get an error of "Guide_circular is similar to Guide_circular.comp - perhaps there is a spelling error". All of this works correctly with mcstas 1.12c, where I only had to place the .comp in the correct place and I believe re-compiling mcstas would generate an html file for defining parameters in the gui.

So, I suppose my question is two-fold:
How can I properly install/compile from source mcstas-2.0 in linux?
How can I properly incorporate my own components to mcstas-2.0?

Kyle Grammer
mcstas-users mailing list
mcstas-users at mcstas.org<mailto:mcstas-users at mcstas.org>

mcstas-users mailing list
mcstas-users at mcstas.org<mailto:mcstas-users at mcstas.org>

Peter Kjær Willendrup
Development engineer

DTU Physics

Technical University of Denmark

[cid:image002.gif at 01CCCAF1.5E6331F0][cid:BA361BD6-1580-45FA-AA06-7E6E4D468398 at fysik.dtu.dk]

Department of Physics
Neutrons and X-rays for Materials Physics

Building 307

DK-2800 Kongens Lyngby

Direct +45 2125 4612

Mobil +45 2125 4612
Fax +45 4593 2399

pkwi at fysik.dtu.dk<mailto:pkwi at fysik.dtu.dk>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20130301/e4c174d4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20130301/e4c174d4/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20130301/e4c174d4/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-3.tiff
Type: image/tiff
Size: 10864 bytes
Desc: PastedGraphic-3.tiff
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20130301/e4c174d4/attachment.tiff>

More information about the mcstas-users mailing list