[mcstas-users] Problem with Matlab on Linux
Peter Kjær Willendrup
pkwi at fysik.dtu.dk
Fri Oct 26 12:21:46 CEST 2012
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<mailto: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 Willendrup
Development engineer
DTU Physics
Technical University of Denmark
[cid:image002.gif at 01CCCAF1.5E6331F0]
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<mailto:pkwi at fysik.dtu.dk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20121026/5e42a8ee/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/20121026/5e42a8ee/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/20121026/5e42a8ee/attachment-0001.gif>
More information about the mcstas-users
mailing list