McStasMcXtrace / McCode

The home of the McStas (neutrons) and McXtrace (x-rays) Monte-Carlo ray-tracing instrument simulation codes.
https://github.com/McStasMcXtrace/McCode/wiki
GNU General Public License v3.0
78 stars 54 forks source link

Redhat/CentOS Linux packages require perl 5.18 #333

Closed ajj closed 8 years ago

ajj commented 8 years ago

Current release of RedHat/CentOS/SL seem to ship with perl 5.16 - why does mcstas require perl 5.18?

willend commented 8 years ago

Hi Andrew,

I believe at least Centos 7 ships with 5.18? If you are trying to install via yum/our repo, we probably do indeed require 5.18.

I remember helping someone else needing rpms for a system with perl 5.16 - I generated this supplementary set of packages: http://download.mcstas.org/mcstas-2.3/linux/mcstas-2.3-rpm64-Scientific_Linux_6.1/ - could you check if they can be hand-installed and work better?

ajj commented 8 years ago

Hi Peter

Just installed CentOS 7 and it comes with 5.16. Those SL6.1 packages don't work because they are missing perl-PGPLOT which is not a system package (or EPEL).

Confirmed on distrowatch that CentOS 7, RHEL 7 and SL7 all ship Perl 5.16. Fedora has had Perl 5.18 since Fedora 20.

Which distro are the McStas rpm builds done on?

willend commented 8 years ago

I might indeed have built on Fedora, but SL6.1 is from the ESS compile node as I remember...

A workaround could be to

And then install the packages with --nodeps... Not so nice, I know.

If you can find rpms for the dependencies (pgplot, perl-PGPLOT, perl-Tk, PDL etc.) that fit your system you could also simply roll you a McStas 2.3 yourself from the repo? I think there is a relevant release tag/branch, look at needed dependencies in the top-level https://github.com/McStasMcXtrace/McCode/blob/master/BUILD_DEPS.TXT and run the top level script build_rpms_mcstas with input parameter 2.3.

willend commented 8 years ago

(Sorry, we are just a lot more of a Debian shop... :-) )

willend commented 8 years ago

I just remembered I had a fresh Centos 7 handy. The following worked for me:

BTW we are moving to a default of all-python tool-set with next release, should have been done ages ago... ;-)

ajj commented 8 years ago

Also needed mcstas-tools-perl, but all sorted now!

Thanks - the thought of compiling pgplot and installing perl-PGPLOT from cpan was giving me flashbacks to 1997.

willend commented 8 years ago

Overlooked that you closed this one the other day @ajj - but great to hear it all worked out OK. :-)

McStas 2.4 should come with a full python tool set around it, maybe even before Christmas... We are btw thinking to ship almost all via pyinstaller ala SASview, which should make end-user life with McStas much easier!

And indeed, perl Makefile.PL gives a warm and fuzzy feeling... ;-)