[mcstas-users] Linux Installation Problem
Grammer, Kyle Brandon
kgrammer at utk.edu
Sat Mar 2 17:23:25 CET 2013
Hi Peter,
Everything seems to be working now, actually. Mcstas will read my component correctly both in the /usr/local/lib/optics directory and in the working directory, and it works whether I compile from source or use the repository.
Now, I have an unrelated problem for the number of source particles. If I increase the number of source particles, I get better statistics until this shows up for every component:
"Warning: No neutron could reach Component[10]"
This happens for example instruments as well as my own.
________________________________
From: Peter Kjær Willendrup [pkwi at fysik.dtu.dk]
Sent: Friday, March 01, 2013 3:11 PM
To: Grammer, Kyle Brandon
Cc: mcstas-users at mcstas.org mcstas.org
Subject: Re: [mcstas-users] Linux Installation Problem
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.
Best,
Peter
On Mar 1, 2013, at 21:05 , Peter Willendrup <p at willendrup.org<mailto:p at willendrup.org>>
wrote:
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
make install
Do the same for the -components, and the selection of -tool- packages you want.
Hope this helps,
Peter
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_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<mailto: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
_______________________________________________
mcstas-users mailing list
mcstas-users at mcstas.org<mailto:mcstas-users at mcstas.org>
http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users
_______________________________________________
mcstas-users mailing list
mcstas-users at mcstas.org<mailto:mcstas-users at mcstas.org>
http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users
Peter Kjær Willendrup
Development engineer
DTU Physics
Technical University of Denmark
[cid:image002.gif at 01CCCAF1.5E6331F0]
Department of Physics
Neutrons and X-rays for Materials Physics
Fysikvej
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/20130302/1ac6df91/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/20130302/1ac6df91/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/20130302/1ac6df91/attachment-0001.gif>
More information about the mcstas-users
mailing list