<font color="#000066"><font><font face="verdana,sans-serif">Thank you very much Peter.</font></font></font><div><font color="#000066"><font><font face="verdana,sans-serif">It works.</font></font></font></div><div><font color="#000066"><font><font face="verdana,sans-serif"><br>
</font></font></font></div><div><font color="#000066" face="verdana, sans-serif">Kind regards,</font></div><div><font color="#000066"><font><font face="verdana,sans-serif"><br clear="all"></font></font></font><b style="color:rgb(0,0,102)">Jesús P. de Vicente.-</b><br>
<br><br><div class="gmail_quote">2012/10/26 Peter Kjær Willendrup <span dir="ltr"><<a href="mailto:pkwi@fysik.dtu.dk" target="_blank">pkwi@fysik.dtu.dk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Dear Jesus,<div><br></div><div>The output ' sh: no: command not found ' simply means that your McStas installation is not aware of the Matlab to execute.</div><div><br></div><div>
Edit your /usr/local/lib/mcstas/perl/mcstas_config.perl and exchange the 'no' for the location of your matlab executable in the line that says:</div><div><br></div><div> MATLAB => 'no',</div><div><br>
</div><div>Hope this helps,</div><div><br></div><div>Peter</div><div><br><div><div><div class="h5"><div>On Oct 26, 2012, at 11:57 , Jesús P. de Vicente <<a href="mailto:jesuspedrodevicente@gmail.com" target="_blank">jesuspedrodevicente@gmail.com</a>> wrote:</div>
<br></div></div><blockquote type="cite"><div><div class="h5"><font color="#000066"><font><font face="verdana,sans-serif"><div>Hello,</div><div><br></div><div>I am trying to use Matlab on McStas por Linux.</div><div>It works good with the results of the monitors, but It doesn't work if I try to visualize the instrument definition, i.e. the trace option.</div>
<div><br></div><div>I used this commands:</div><div>#</div><div>'mcstas -t file.instr'</div><div>'gcc -lm file.c -o file.out'</div><div>'mcdisplay -pMatlab file.out'</div><div>#</div><div><br></div>
<div>But this is the log error</div><div>#</div><div>Opened up pipe to matlab - pid is 28544</div><div>Building Matlab INSTRUMENT struct, please have patience...</div><div>Starting simulation 'prueba --trace --no-output-files ' ...</div>
<div>sh: no: command not found</div><div>#</div><div><br></div><div>My linux distro is Gentoo. I have tried to recompile perl and glibc but it didn't work.</div><div><br></div><div>Thank you very much for your help.</div>
<div>Best regards,</div><div><br></div></font></font></font><b style="color:rgb(0,0,102)">Jesús P. de Vicente.-</b><br>
</div></div><span><ATT00001.c></span></blockquote></div><br><div>
<span style="border-collapse:separate;border-spacing:0px"><div><span><table border="0" cellspacing="0" cellpadding="0" width="400px" style="border-collapse:collapse;font-size:8pt;font-family:Arial"><tbody><tr><td width="400px" colspan="2" valign="top" style="font-weight:bold;font-size:8pt;margin-bottom:0px;font-family:Arial">
Peter Kjær Willendrup</td></tr><tr><td width="400px" colspan="2" valign="top" style="color:rgb(155,155,155);font-size:8pt;margin-bottom:0px;font-family:Arial">Development engineer</td></tr><tr><td width="400px" colspan="2" valign="top" style="font-size:8pt;margin-bottom:0px;font-family:Arial">
</td></tr><tr><td width="400px" colspan="2" valign="top" style="font-size:8pt;margin-bottom:0px;font-family:Arial;padding-bottom:5px">DTU Physics</td></tr></tbody></table><div><br></div></span><br><span><img height="1" width="400" src="cid:image001.gif@01CCCAF1.5E6331F0"></span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;word-spacing:0px"><span style="border-collapse:collapse;font-size:15px"><br>
<br></span></span></span></span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="border-collapse:collapse;font-family:Calibri,sans-serif;font-size:15px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><table border="0" cellspacing="0" cellpadding="0" width="400" style="width:300pt;border-collapse:collapse">
<tbody><tr><td width="357" valign="top" style="width:267.5pt;padding-top:0cm;padding-right:0cm;padding-bottom:0cm;padding-left:0cm"><div style="margin-right:0cm;margin-left:0cm;font-size:11pt;font-family:Calibri,sans-serif;margin-top:0cm;margin-bottom:0.0001pt">
<b><span style="font-size:8pt;font-family:Arial,sans-serif"><br>Technical University of Denmark<u></u><u></u></span></b></div></td><td width="43" rowspan="8" valign="top" style="width:32.5pt;padding-top:0cm;padding-right:0cm;padding-bottom:0cm;padding-left:0cm">
<br></td></tr></tbody></table></span><br></span></span></span><span></span><span></span><span style="font-size:medium"></span><span><img height="53" width="36" src="cid:image002.gif@01CCCAF1.5E6331F0"></span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="border-collapse:collapse;font-family:Calibri,sans-serif"><br>
<br></span></span></span></span></span></span></span><span style="border-collapse:collapse;font-family:Calibri,sans-serif;font-size:15px"><table border="0" cellspacing="0" cellpadding="0" width="400" style="width:300pt;border-collapse:collapse">
<tbody><tr><td width="400" colspan="2" valign="top" style="width:300pt;padding-top:0cm;padding-right:0cm;padding-bottom:3.75pt;padding-left:0cm"><div style="margin-right:0cm;margin-left:0cm;font-size:11pt;font-family:Calibri,sans-serif;margin-top:0cm;margin-bottom:0.0001pt">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><table border="0" cellspacing="0" cellpadding="0" width="400" style="width:300pt;border-collapse:collapse">
<tbody><tr><td style="padding-top:0cm;padding-right:0cm;padding-bottom:0cm;padding-left:0cm"><div style="margin-right:0cm;margin-left:0cm;font-size:11pt;font-family:Calibri,sans-serif;margin-top:0cm;margin-bottom:0.0001pt">
<span style="font-size:8pt;font-family:Arial,sans-serif">Department o</span><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">f</span><span style="font-size:8pt;font-family:Arial,sans-serif"> Physics<u></u><u></u></span></div>
<div style="margin-right:0cm;margin-left:0cm;font-size:11pt;font-family:Calibri,sans-serif;margin-top:0cm;margin-bottom:0.0001pt"><span style="font-size:8pt;font-family:Arial,sans-serif">Fysikvej</span></div></td></tr><tr>
<td style="padding-top:0cm;padding-right:0cm;padding-bottom:0cm;padding-left:0cm"><div style="margin-right:0cm;margin-left:0cm;font-size:11pt;font-family:Calibri,sans-serif;margin-top:0cm;margin-bottom:0.0001pt"><span style="font-size:8pt;font-family:Arial,sans-serif">Building 307<u></u><u></u></span></div>
</td></tr><tr><td style="padding-top:0cm;padding-right:0cm;padding-bottom:0cm;padding-left:0cm"><div style="margin-right:0cm;margin-left:0cm;font-size:11pt;font-family:Calibri,sans-serif;margin-top:0cm;margin-bottom:0.0001pt">
<span style="font-size:8pt;font-family:Arial,sans-serif">DK-2800 Kongens Lyngby<u></u><u></u></span></div></td></tr><tr><td style="padding-top:0cm;padding-right:0cm;padding-bottom:0cm;padding-left:0cm"><div style="margin-right:0cm;margin-left:0cm;font-size:11pt;font-family:Calibri,sans-serif;margin-top:0cm;margin-bottom:0.0001pt">
<span style="font-size:8pt;font-family:Arial,sans-serif">Direct <a href="tel:%2B45%202125%204612" value="+4521254612" target="_blank">+45 2125 4612</a><u></u><u></u></span></div></td></tr><tr><td style="padding-top:0cm;padding-right:0cm;padding-bottom:0cm;padding-left:0cm">
<div style="margin-right:0cm;margin-left:0cm;font-size:11pt;font-family:Calibri,sans-serif;margin-top:0cm;margin-bottom:0.0001pt"><span style="font-size:8pt;font-family:Arial,sans-serif">Mobil <a href="tel:%2B45%202125%204612" value="+4521254612" target="_blank">+45 2125 4612</a><u></u><u></u></span></div>
<div style="margin-right:0cm;margin-left:0cm;font-size:11pt;font-family:Calibri,sans-serif;margin-top:0cm;margin-bottom:0.0001pt"><span style="font-size:8pt;font-family:Arial,sans-serif">Fax <a href="tel:%2B45%204593%202399" value="+4545932399" target="_blank">+45 4593 2399</a><u></u><u></u></span></div>
</td></tr></tbody></table></span></div></td></tr></tbody></table></span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;white-space:normal;font-family:Helvetica;word-spacing:0px"><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 style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;word-spacing:0px"><span style="border-collapse:collapse;font-size:15px"><table border="0" cellspacing="0" cellpadding="0" width="400" style="font-family:Calibri,sans-serif;width:300pt;border-collapse:collapse">
<tbody><tr><td width="400" colspan="2" valign="top" style="width:300pt;padding-top:0cm;padding-right:0cm;padding-bottom:0cm;padding-left:0cm"><div style="margin-right:0cm;margin-left:0cm;margin-top:0cm;margin-bottom:0.0001pt">
<font face="Arial, sans-serif"><span style="font-size:11px"><b><br></b></span></font></div></td></tr></tbody></table></span></span></span></span></span></span></span></span>
</span></div>
</span></div><br></div></div></blockquote></div><br></div>