[mcstas-users] McStas 3.0 - running mcgui (WSL 1, Ubuntu 20.04 LTS)
Peter Willendrup
pwillendrup at gmail.com
Sat Feb 6 20:50:22 CET 2021
Dear Michał.
Judging from the last line of the error-message, it looks like the shell-script could be picking up a path containing a space, i.e. Program Files?
Could you try doing e.g. a cd /tmp before attempting to start mcgui to see if this changes anything?
Alternatively you should be able to remove the lines 26-28 in the mcgui shell-script, i.e. replace
else
export PATH=$LIB/../miniconda3/bin:$PATH
export LD_LIBRARY_PATH=$LIB/../miniconda3/lib:$LD_LIBRARY_PATH
fi
by
fi
only?
Hope this helps,
Peter
> On 6 Feb 2021, at 18.39, Dembski-Villalta, Michal Piotr <michal.dembski-villalta at tum.de> wrote:
>
> Dear McStas users,
>
> I’m writing with a problem, I believe similar to a recent issue (already resolved here https://mailman2.mcstas.org/pipermail/mcstas-users/2021q1/001391.html <https://mailman2.mcstas.org/pipermail/mcstas-users/2021q1/001391.html>), however that solution did not help me. After installing McStas 3.0 on Windows 10 (WSL1, Ubuntu 20.04 LTS) I get the following error:
>
> .../McStas$ mcgui
> /usr/share/mcstas/3.0/bin/mcgui: 14: [[: not found
> /usr/share/mcstas/3.0/bin/mcgui: 27: export:
> Files/WindowsApps/CanonicalGroupLimited.Ubuntu20.04onWindows_2004.2020.812.0_x64__79rhkp1fndgsc:/mnt/c/Program: bad variable name
>
> I would be grateful for any help with it.
> Kindly,
> Michał Dembski-Villalta
>
> _______________________________________________
> mcstas-users mailing list
> mcstas-users at mcstas.org <mailto:mcstas-users at mcstas.org>
> https://mailman2.mcstas.org/mailman/listinfo/mcstas-users <https://mailman2.mcstas.org/mailman/listinfo/mcstas-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20210206/aa5592f7/attachment.html>
More information about the mcstas-users
mailing list