UCL-RITS / rcps-buildscripts

Scripts to automate package builds on RC Platforms
MIT License
39 stars 27 forks source link

Install Request: STATA-MP Version 16 on Myriad #355

Closed balston closed 3 years ago

balston commented 4 years ago

This is for a COVID19 project. Direct email to @owainkenwayucl and @balston from Feifei Bu, (f.bu AT ucl.ac.uk)

We already have a license for this version.

balston commented 4 years ago

STATA 16 has been installed on Myriad in:

/shared/ucl/apps/StataMP/stata16

It needs a quick test and then an update.

balston commented 4 years ago

STATA is not starting up:

stata-mp: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory

All STATA launchers (xstata, stata, stata-mp etc) are giving the same error. Investigating ...

balston commented 4 years ago

A google search shows that this is a known error with STATA on modern Linux distributions. Further searching found this work around: https://github.com/kylebarron/stata-png-fix Not ideal as all users would need to run it to build replacement libraries. However it should be possible to incorporate the method into our STATA build script which is what I'm going to do.

balston commented 4 years ago

I've updated the build script to include the libpng fix. Trying it out now ...

balston commented 4 years ago

This has resolved the libpng issue but the follow errors now occur on launch:

stata: /lib64/libtinfo.so.5: no version information available (required by stata)
stata: /shared/ucl/apps/gcc/4.9.2/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by stata)
stata: /shared/ucl/apps/gcc/4.9.2/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by stata)
balston commented 4 years ago

Looks like gcc-libs/9.2.0 will be needed.

balston commented 4 years ago

I'm now updating the module file from STATA 15 for 16.

balston commented 4 years ago

Slight change in plan now needs the following modules:

module -f unload gcc-libs
module load beta-modules
module load gcc-libs/9.2.0
module load libpng/1.6.37/gnu-9.2.0
module load stata/16
balston commented 4 years ago

Trying a test job ...

balston commented 4 years ago

My test job has worked!

balston commented 4 years ago

Internal STATA update run to bring STATA to Version 16.1 Revision 13th Aug 2020.

balston commented 4 years ago

If re-run my test job to confirm that it still works after the update and placed a copy in:

/shared/ucl/apps/StataMP/share/run-stata16-mp.sh
balston commented 4 years ago

User emailed.

heatherkellyucl commented 3 years ago

Done in Aug.