[mcstas-users] Linux Installation Problem

Grammer, Kyle Brandon kgrammer at utk.edu
Fri Mar 1 20:53:38 CET 2013


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_TARNAME  =mcstas
MCCODE_NAME     =McStas
MCCODE_VERSION  =Mar-01-2013
MCCODE_STRING   =McStas Mar-01-2013 - Mar. 01, 2013
MCCODE_BUGREPORT=mcstas-support at mcstas.org
MCCODE_PARTICULE=neutron
MCCODE_PROJECT  =1
MCCODE_LIBENV   =MCSTAS
MCCODE_PREFIX   =mc
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?

Thanks,
Kyle Grammer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20130301/3f85e701/attachment.html>


More information about the mcstas-users mailing list