Does anyone have any tips on how to get mlnscript running on Rocky Linux?
I don't have admin access to the computer I'm running it on, so I'm installing the downloaded .rpm via cpio. I've tried using the CentOS and Fedora installs but when running mlnscript, it are looking for libblas.so.3 and liblapack.so.3 which do not exist. (OpenBLAS is installed, however.)
Any ideas? Or is there any chance of a Rocky Linux package being built?
mlnscript for Rocky Linux/OpenBLAS
-
- Posts: 1384
- Joined: Mon Oct 19, 2009 10:34 am
Re: mlnscript for Rocky Linux/OpenBLAS
I have added a package version for Rocky Linux 8, which can be requested from https://www.cmm.bristol.ac.uk/clients/softwaredownload/. Note however that this will still need the libblas.so.3 and liblapack.so.3 files to be present in order to run:
Code: Select all
ldd /usr/bin/mlnscript
linux-vdso.so.1 (0x00007ffdc91b7000)
libmln.so => /lib64/libmln.so (0x00007ff9aef7a000)
libblas.so.3 => /lib64/libblas.so.3 (0x00007ff9aed26000)
liblapack.so.3 => /lib64/liblapack.so.3 (0x00007ff9ae487000)
libz.so.1 => /lib64/libz.so.1 (0x00007ff9ae270000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007ff9ae06c000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007ff9adcd7000)
libm.so.6 => /lib64/libm.so.6 (0x00007ff9ad955000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007ff9ad73d000)
libc.so.6 => /lib64/libc.so.6 (0x00007ff9ad378000)
libgfortran.so.5 => /lib64/libgfortran.so.5 (0x00007ff9acef9000)
/lib64/ld-linux-x86-64.so.2 (0x00007ff9af4b8000)
libquadmath.so.0 => /lib64/libquadmath.so.0 (0x00007ff9accb8000)
-
- Posts: 1384
- Joined: Mon Oct 19, 2009 10:34 am
Re: mlnscript for Rocky Linux/OpenBLAS
You could try using LD_PRELOAD to switch to OpenBLAS as described in Is it possible to switch between BLAS libraries without recompiling program?, i.e.
I have not tested how well this works however.
Code: Select all
LD_PRELOAD=/usr/lib64/libopenblas.so.0 mlnscript --run script.mac
-
- Posts: 2
- Joined: Mon Jan 31, 2022 4:47 pm
Re: mlnscript for Rocky Linux/OpenBLAS
Thanks so much for getting back to me and creating the new package so quickly! Afraid I've only just seen your replies today so apologies not to reply sooner.
The new package seems to solve my issues! LD_PRELOAD didn't do the trick for me but I did as other answers on that SO post suggested and created symlinks for libblas.so.3 and liblapack.so.3 pointing to the OpenBLAS binaries, and that seemed to do the trick. (I'd tried something similar with the other packages but hadn't got anywhere.)
Thanks once again.
The new package seems to solve my issues! LD_PRELOAD didn't do the trick for me but I did as other answers on that SO post suggested and created symlinks for libblas.so.3 and liblapack.so.3 pointing to the OpenBLAS binaries, and that seemed to do the trick. (I'd tried something similar with the other packages but hadn't got anywhere.)
Thanks once again.
-
- Posts: 1384
- Joined: Mon Oct 19, 2009 10:34 am
Re: mlnscript for Rocky Linux/OpenBLAS
Thank you for the update, it's useful to know that this method works in this situation.