easybuilders / easybuild-easyblocks

Collection of easyblocks that implement support for building and installing software with EasyBuild.
https://easybuild.io
GNU General Public License v2.0
106 stars 283 forks source link

Matlab 2020b easyconfig #2222

Open hsimran13 opened 4 years ago

hsimran13 commented 4 years ago

Hi,

I am new to easybuild and trying to build the latest matlab 2020b using easybuild. However, I am running into errors and can't seem to find a sample matlab 2020a or 2020b easyconfig on this repo. Here is the error we are running into:

$ eb matlab-2020b.eb -dr
== temporary log file in case of crash /tmp/eb-Q_UAcG/easybuild-rEB5Dm.log
== resolving dependencies ...
== processing EasyBuild easyconfig /gstore/apps/eb/software/EasyBuild/4.1.2/easybuild/easyconfigs/m/MATLAB/matlab-2020b.eb
== building and installing MATLAB/2020b...
== fetching files...
== creating build dir, resetting environment...
== unpacking...
== patching...
== preparing...
== configuring...
== building...
== testing...
== installing...
== FAILED: Installation ended unsuccessfully (build directory: /tmp/eb/build/MATLAB/2020b/system-system): build failed (first 300 chars): cmd "export _JAVA_OPTIONS="-Xmx256m" &&  /tmp/eb/build/MATLAB/2020b/system-system/install -v -tmpdir /tmp/eb-Q_UAcG/tmpn5Pypd -inputFile /tmp/eb/build/MATLAB/2020b/system-system/my_installer_input.txt -fileInstallationKey xxx-xxx-xxx-xxx " exited with exit code 1 and output:
Picked up  (took 9 sec)
== Results of the build can be found in the log file(s) /tmp/eb-Q_UAcG/easybuild-MATLAB-2020b-20201106.225204.niduc.log
ERROR: Build of /gstore/apps/eb/software/EasyBuild/4.1.2/easybuild/easyconfigs/m/MATLAB/matlab-2020b.eb failed (err: 'build failed (first 300 chars): cmd "export _JAVA_OPTIONS="-Xmx256m" &&  /tmp/eb/build/MATLAB/2020b/system-system/install -v -tmpdir /tmp/eb-Q_UAcG/tmpn5Pypd -inputFile /tmp/eb/build/MATLAB/2020b/system-system/my_installer_input.txt -fileInstallationKey xxx-xxx-xxx-xxx " exited with exit code 1 and output:\nPicked up ')

My easyconfig looks like this:

$ cat matlab-2020b.eb | grep -v '#'
name = 'MATLAB'
version = '2020b'
homepage = 'https://www.mathworks.com/products/matlab.html'
description = """MATLAB is a high-level language and interactive environment
 that enables you to perform computationally intensive tasks faster than with
 traditional programming languages such as C, C++, and Fortran."""
toolchain = SYSTEM
sources = [SOURCELOWER_ZIP]
dependencies = [('Java', '1.8.0_231')]
preinstallopts= ['_JAVA_OPTIONS=-Xmx1024m']
key = 'xxx-xxx-xxx-xxx'
license_server = 'xxxx.xxx.com'
license_server_port = '27000'
sanity_check_paths = {
     'files': ['bin/matlab', 'bin/glnxa64/MATLAB'],
     'dirs': [],
 }
moduleclass = 'math'

Would appreciate any help or guidance you can provide!

Thanks, -Simran

Micket commented 4 years ago

Hi @hsimran13

This is the repository for the easyblocks, you are looking for easyconfigs, and you can find them here: https://github.com/easybuilders/easybuild-easyconfigs/blob/develop/easybuild/easyconfigs/m/MATLAB/MATLAB-2019b.eb MATLAB-2019b.eb is a good starting point, and basically doesn't need any changes other than the version number.

You are also running a quite old version of easybuild. I would recommend eb --install-latest as soon as there is a new release.

Best regards, Mikael