<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" style="word-wrap:break-word">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Peter,<br>
<br>
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.<br>
<br>
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:<br>
"Warning: No neutron could reach Component[10]"<br>
<br>
This happens for example instruments as well as my own.<br>
<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF25357"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Peter Kjær Willendrup [pkwi@fysik.dtu.dk]<br>
<b>Sent:</b> Friday, March 01, 2013 3:11 PM<br>
<b>To:</b> Grammer, Kyle Brandon<br>
<b>Cc:</b> mcstas-users@mcstas.org mcstas.org<br>
<b>Subject:</b> Re: [mcstas-users] Linux Installation Problem<br>
</font><br>
</div>
<div></div>
<div>
<div>Ooops, didn't see your second question in the first go, sorry.</div>
<div><br>
</div>
<div>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?</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Best,</div>
<div><br>
</div>
<div>Peter</div>
<br>
<div>
<div>On Mar 1, 2013, at 21:05 , Peter Willendrup <<a href="mailto:p@willendrup.org" target="_blank">p@willendrup.org</a>></div>
<div> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap:break-word">Hi Kyle,
<div><br>
</div>
<div><br>
</div>
<div>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!</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>tar xzf mcstas-2.0-src-unix.tar.gz</div>
<div>cd mcstas-2.0-src-unix</div>
<div><br>
</div>
<div>Core package:</div>
<div>tar xzf mcstas-2.0-src.tar.gz</div>
<div>cd mcstas-2.0-src</div>
<div>mkdir build && cd build</div>
<div>cmake ..</div>
<div>make</div>
<div>make install</div>
<div><br>
</div>
<div>Do the same for the -components, and the selection of -tool- packages you want.</div>
<div><br>
</div>
<div><br>
</div>
<div>Hope this helps,</div>
<div><br>
</div>
<div>Peter</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div>
<div>On Mar 1, 2013, at 20:53 , "Grammer, Kyle Brandon" <<a href="mailto:kgrammer@utk.edu" target="_blank">kgrammer@utk.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
<div style="direction:ltr; font-family:Tahoma; font-size:10pt">Hi All,<br>
<br>
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.<br>
<br>
When I extract the unix source tar and try to run ./configure, I get the following:<br>
<br>
checking for gcc... gcc<br>
checking whether the C compiler works... yes<br>
checking for C compiler default output file name... a.out<br>
checking for suffix of executables...<span class="Apple-converted-space"> </span><br>
checking whether we are cross compiling... no<br>
checking for suffix of object files... o<br>
checking whether we are using the GNU C compiler... yes<br>
checking whether gcc accepts -g... yes<br>
checking for gcc option to accept ISO C89... none needed<br>
Configurating McCode with McStas flavour<br>
MCCODE_DATE     =Mar. 01, 2013<br>
MCCODE_TARNAME  =mcstas<br>
MCCODE_NAME     =McStas<br>
MCCODE_VERSION  =Mar-01-2013<br>
MCCODE_STRING   =McStas Mar-01-2013 - Mar. 01, 2013<br>
<a href="mailto:MCCODE_BUGREPORT=mcstas-support@mcstas.org" target="_blank">MCCODE_BUGREPORT=mcstas-support@mcstas.org</a><br>
MCCODE_PARTICULE=neutron<br>
MCCODE_PROJECT  =1<br>
MCCODE_LIBENV   =MCSTAS<br>
MCCODE_PREFIX   =mc<br>
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."<br>
<br>
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.<br>
<br>
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?<br>
<br>
I was able to install mcstas 2.0 from the experimental deb mirror with:<br>
sudo apt-get install mcstas-suite<br>
<br>
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.<br>
<br>
So, I suppose my question is two-fold:<span class="Apple-converted-space"> </span><br>
How can I properly install/compile from source mcstas-2.0 in linux?<br>
How can I properly incorporate my own components to mcstas-2.0?<br>
<br>
Thanks,<br>
Kyle Grammer<br>
</div>
_______________________________________________<br>
mcstas-users mailing list<br>
<a href="mailto:mcstas-users@mcstas.org" target="_blank">mcstas-users@mcstas.org</a><br>
<a href="http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users" target="_blank">http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
mcstas-users mailing list<br>
<a href="mailto:mcstas-users@mcstas.org" target="_blank">mcstas-users@mcstas.org</a><br>
http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users<br>
</blockquote>
</div>
<br>
<div><span>
<div><span style="color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
<table style="font-family:Arial; font-size:8pt; color:black; border-collapse:collapse; border-spacing:2px" cellpadding="0" cellspacing="0" border="0" width="400px">
<tbody>
<tr>
<td colspan="2" style="font-weight:bold; font-size:8pt; margin-bottom:0px; font-family:Arial" valign="top" width="400px">
Peter Kjær Willendrup</td>
</tr>
<tr>
<td colspan="2" style="color:rgb(155,155,155); font-size:8pt; margin-bottom:0px; font-family:Arial" valign="top" width="400px">
Development engineer</td>
</tr>
<tr>
<td colspan="2" style="font-size:8pt; margin-bottom:0px; font-family:Arial" valign="top" width="400px">
</td>
</tr>
<tr>
<td colspan="2" style="font-size:8pt; margin-bottom:0px; font-family:Arial; padding-bottom:5px" valign="top" width="400px">
DTU Physics</td>
</tr>
</tbody>
</table>
<div><br>
</div>
</span><br class="Apple-interchange-newline" style="color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
<span style="color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"><span><span><span><img id="d9656691-2d1b-4675-8c32-c722fb13b448" src="cid:image001.gif@01CCCAF1.5E6331F0" height="1" width="400"></span><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px; font-size:medium"><span class="Apple-style-span" style="color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-collapse:separate; border-spacing:0px"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px; font-size:medium"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px; font-size:medium"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px; font-size:medium"><span class="Apple-style-span" style="border-collapse:collapse; font-size:15px"><br class="Apple-interchange-newline">
<br>
</span></span></span></span><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px; font-size:medium"><span class="Apple-style-span" style="border-collapse:collapse; font-family:Calibri,sans-serif; font-size:15px"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px; font-size:medium">
<table class="MsoNormalTable" style="width:300pt; border-collapse:collapse; position:static; z-index:auto" cellpadding="0" cellspacing="0" border="0" width="400">
<tbody>
<tr>
<td style="width:267.5pt; padding:0cm" valign="top" width="357">
<div style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<b><span style="font-size:8pt; font-family:Arial,sans-serif; color:black"><br class="Apple-interchange-newline">
Technical University of Denmark</span></b></div>
</td>
<td rowspan="8" style="width:32.5pt; padding:0cm" valign="top" width="43"><br>
</td>
</tr>
</tbody>
</table>
</span><br class="Apple-interchange-newline">
</span></span></span><span style="color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"></span><span style="color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"></span><span style="color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"></span><span style="color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"><span><span><span><img id="1d3d2543-6e47-4b1c-9f82-ef31b4728cf1" src="cid:image002.gif@01CCCAF1.5E6331F0" height="53" width="36"></span><span></span><span class="Apple-style-span" style="color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px; border-collapse:separate"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px"><span class="Apple-style-span" style="border-collapse:collapse; font-family:Calibri,sans-serif"><br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
<br>
</span></span></span></span></span></span></span><span class="Apple-style-span" style="color:rgb(0,0,0); font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-collapse:collapse; font-family:Calibri,sans-serif; font-size:15px">
<table class="MsoNormalTable" style="width:300pt; border-collapse:collapse; position:static; z-index:auto" cellpadding="0" cellspacing="0" border="0" width="400">
<tbody>
<tr>
<td colspan="2" style="width:300pt; padding:0cm 0cm 3.75pt" valign="top" width="400">
<div style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px; font-size:medium">
<table class="MsoNormalTable" style="width:300pt; border-collapse:collapse; position:static; z-index:auto" cellpadding="0" cellspacing="0" border="0" width="400">
<tbody>
<tr>
<td style="padding:0cm">
<div style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<b><span style="font-size:8pt; font-family:Arial,sans-serif; color:black">Department o</span><span style="font-size:8pt; font-family:Arial,sans-serif; color:rgb(31,73,125)">f</span></b><span style="font-size:8pt; font-family:Arial,sans-serif; color:black"><b> Physics</b></span></div>
<div style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<span style="font-size:8pt; font-family:Arial,sans-serif; color:black"><i>Neutrons and X-rays for Materials Physics</i></span></div>
<div style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<span style="font-size:8pt; font-family:Arial,sans-serif; color:black">Fysikvej</span></div>
</td>
</tr>
<tr>
<td style="padding:0cm">
<div style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<span style="font-size:8pt; font-family:Arial,sans-serif; color:black">Building 307</span></div>
</td>
</tr>
<tr>
<td style="padding:0cm">
<div style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<span style="font-size:8pt; font-family:Arial,sans-serif; color:black">DK-2800 Kongens Lyngby</span></div>
</td>
</tr>
<tr>
<td style="padding:0cm">
<div style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<span style="font-size:8pt; font-family:Arial,sans-serif; color:black">Direct +45 2125 4612</span></div>
</td>
</tr>
<tr>
<td style="padding:0cm">
<div style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<span style="font-size:8pt; font-family:Arial,sans-serif; color:black">Mobil +45 2125 4612</span></div>
<div style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif">
<span style="font-size:8pt; font-family:Arial,sans-serif; color:black">Fax +45 4593 2399</span></div>
</td>
</tr>
</tbody>
</table>
</span></div>
</td>
</tr>
</tbody>
</table>
</span><span class="Apple-style-span" style="color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px; border-collapse:separate"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px"><span class="Apple-style-span" style="font-size:medium; border-collapse:collapse"><a href="mailto:pkwi@fysik.dtu.dk" target="_blank">pkwi@fysik.dtu.dk</a></span></span></span><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px; font-size:medium"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px; font-size:medium"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px; font-size:medium"><span class="Apple-style-span" style="border-collapse:collapse; font-size:15px">
<table class="MsoNormalTable" style="font-family:Calibri,sans-serif; width:300pt; border-collapse:collapse; position:static; z-index:auto" cellpadding="0" cellspacing="0" border="0" width="400">
<tbody>
<tr>
<td colspan="2" style="width:300pt; padding:0cm" valign="top" width="400">
<div style="margin:0cm 0cm 0.0001pt"><font class="Apple-style-span" face="Arial, sans-serif"><span class="Apple-style-span" style="font-size:11px"><b><br>
</b></span></font></div>
</td>
</tr>
</tbody>
</table>
</span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>
</span></div>
<br>
</div>
</div>
</div>
</body>
</html>