[mcstas-users] McStas 2.0 Installation from subversion tag
Peter Kjær Willendrup
pkwi at fysik.dtu.dk
Wed Mar 26 09:24:24 CET 2014
Hello Christian,
Two comments/ideas:
1) If you are getting the -2.9999-svn suffixes, my guess is that you are building the packages independently (and locally) using cmake? My suggestion would be to inspire from one of the “high level build scripts” build_* sitting at the top level of our SVN trunk - these use the mkdist script which automates building and adds various extra configuration options, including control of the versioning.
2) Since McStas 2.0 we have moved away from the -verison- naming on the binaries (and removed use of the related mccode-select tool) - plus further fixed various other things. Hence if you install the current development SVN (which is _really_ close to being the official 2.1), you will have mcstas, mcrun et al. in a version-sepecific folder (like /usr/local/mcstas/version/bin) rather than with version-specific naming in /usr/local/bin
Hope this helps, otherwise write back to me off-list
Peter
On 26 Mar 2014, at 09:11 , Felder, Christian <c.felder at fz-juelich.de<mailto:c.felder at fz-juelich.de>> wrote:
Hello,
I have recently installed McStas release 2.0 using your sources from subversion.
After installation some directories and binary files have a -2.9999-svn suffix but are relying on
system calls to e.g. mcstas without suffix.
I tried to patch this myself using sed because I did not figure out how to configure a build without the suffix
mentioned above. At the moment I resolved this issue using symlinks to the suffixed binaries.
How to disable -2.99-svn suffix? I would like to get rid off these symlinks.
See build instructions on bash below:
for my_dir in mcstas mcstas-comps tools/Legacy-Perl tools/Python/mcplot/matplotlib ;\
do \
rm -rf ${my_dir}/build ;\
mkdir -p ${my_dir}/build &&\
cd ${my_dir}/build ;\
${my_PREFIX}/bin/cmake -DCMAKE_INSTALL_PREFIX:PATH=${my_PREFIX} \
-Denable_mcstas=1 .. ;\
cd - ;\
done
for my_dir in mcstas mcstas-comps tools/Legacy-Perl tools/Python/mcplot/matplotlib ;\
do \
cd ${my_dir}/build &&\
make -j2 ;\
cd - ;\
done
for my_dir in mcstas mcstas-comps tools/Legacy-Perl tools/Python/mcplot/matplotlib ;\
do \
cd ${my_dir}/build &&\
make install DESTDIR=${my_DESTDIR} ;\
cd - ;\
done
find ${my_DESTDIR} -name '.svn' -type d -exec rm -rf {}/ \\; || echo ;\
ln -s mccode-select-bundle-mcstas-2.9999-svn ${my_DESTDIR}/usr/local/bin/mccode-select-bundle-mcstas ;\
ln -s mccode-select-mcstas-2.9999-svn ${my_DESTDIR}/usr/local/bin/mccode-select-mcstas ;\
ln -s mcconfig-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcconfig ;\
ln -s mcconvert-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcconvert ;\
ln -s mcdaemon-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcdaemon ;\
ln -s mcdisplay-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcdisplay ;\
ln -s mcdoc-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcdoc ;\
ln -s mcformat-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcformat ;\
ln -s mcformatgui-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcformatgui ;\
ln -s mcgui-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcgui ;\
ln -s mcplot-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcplot ;\
ln -s mcplot-2.9999-svn-matplotlib ${my_DESTDIR}/usr/local/bin/mcplot-matplotlib ;\
ln -s mcresplot-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcresplot ;\
ln -s mcrun-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcrun ;\
ln -s mcstas-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcstas ;\
ln -s mcstas2vitess-2.9999-svn ${my_DESTDIR}/usr/local/bin/mcstas2vitess
Thanks in advance.
Best
Christian Felder
Jülich Centre for Neutron Science JCNS
Forschungszentrum Jülich GmbH
Outstation at MLZ
Lichtenbergstraße 1
85747 Garching
GERMANY
Telefon: +49 - 89 289 10 773
Telefax: +49 - 89 289 10 799
_______________________________________________
mcstas-users mailing list
mcstas-users at mcstas.org<mailto:mcstas-users at mcstas.org>
http://mailman.mcstas.org/cgi-bin/mailman/listinfo/mcstas-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20140326/0d127349/attachment.html>
More information about the mcstas-users
mailing list