[mcstas-users] Problem with Matlab on Linux
Jesús P. de Vicente
jesuspedrodevicente at gmail.com
Fri Oct 26 12:42:14 CEST 2012
Thank you very much Peter.
It works.
Kind regards,
*Jesús P. de Vicente.-*
2012/10/26 Peter Kjær Willendrup <pkwi at fysik.dtu.dk>
> Dear Jesus,
>
> The output ' sh: no: command not found ' simply means that your McStas
> installation is not aware of the Matlab to execute.
>
> 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:
>
> MATLAB => 'no',
>
> Hope this helps,
>
> Peter
>
> On Oct 26, 2012, at 11:57 , Jesús P. de Vicente <
> jesuspedrodevicente at gmail.com> wrote:
>
> Hello,
>
> I am trying to use Matlab on McStas por Linux.
> 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.
>
> I used this commands:
> #
> 'mcstas -t file.instr'
> 'gcc -lm file.c -o file.out'
> 'mcdisplay -pMatlab file.out'
> #
>
> But this is the log error
> #
> Opened up pipe to matlab - pid is 28544
> Building Matlab INSTRUMENT struct, please have patience...
> Starting simulation 'prueba --trace --no-output-files ' ...
> sh: no: command not found
> #
>
> My linux distro is Gentoo. I have tried to recompile perl and glibc but it
> didn't work.
>
> Thank you very much for your help.
> Best regards,
>
> *Jesús P. de Vicente.-*
> <ATT00001.c>
>
>
> Peter Kjær WillendrupDevelopment engineer DTU Physics
>
>
>
>
> *
> Technical University of Denmark*
>
>
>
>
> Department of 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
> *
> *
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20121026/811c8da0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: not available
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20121026/811c8da0/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: not available
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20121026/811c8da0/attachment-0001.gif>
More information about the mcstas-users
mailing list