Skip to content

Conversation

@planetmija
Copy link

...figuration and version-specific executable names

The executable names have changed for Mathematica 14. I asked Claude Sonnet 4.5 to modify the script using the installer output below. I also added an option to specify the licence file via the environment variable EB_MATHEMATICA_LICENSE_SERVER.

It's 100% AI, but it works and looks OK to me. Feel free to make changes.

----------------------------------------------------------------------------------------------------------------------------
                                                  Wolfram 14.2 Installer 
----------------------------------------------------------------------------------------------------------------------------

Copyright (c) 1988-2025 Wolfram Research, Inc. All rights reserved.

WARNING: Wolfram is protected by copyright law and international treaties. Unauthorized reproduction or distribution
may result in severe civil and criminal penalties and will be prosecuted to the maximum extent possible under law.

Enter the installation directory, or press ENTER to select /usr/local/Wolfram/Wolfram/14.2:
> /tmp/ma/14

Create directory (y/n)?
> y

Now installing...

[*************************************************************************************************************************]

Type the directory path in which the Wolfram script(s) will be created, or press ENTER to select /usr/local/bin:
> /tmp/ma/14/bin

Create directory (y/n)?
> y


WolframScript allows Wolfram Language code to be run from the command line and from self-executing script files. It is
always available from /tmp/ma/14/Executables/wolframscript. WolframScript system integration makes the wolframscript binary
accessible from any terminal, and allows .wls script files to be executed by double-clicking them in the file manager.

NOTE: Because you are not logged in with root privileges, you cannot install the optional WolframScript system
integration at this time.  To do this after installation, run

    rpm -Uvh "/tmp/ma/14/SystemFiles/Installation/wolframscript-1.13-20250307871.x86_64.rpm"

as root.

		 Extracting installer ...

**************************************************|100%

--------------------------------------------------------------------------------
          Wolfram Language 14.2 English Documentation 14.2 Installer 
--------------------------------------------------------------------------------

Copyright (c) 1988-2024 Wolfram Research, Inc. All rights reserved.

WARNING: Wolfram Language 14.2 English Documentation is protected by copyright
law and international treaties. Unauthorized reproduction or distribution
may result in severe civil and criminal penalties and will be prosecuted to
the maximum extent possible under law.

You are not logged in with root privilege. Only the current user of this
computer will be able to use this software.

Y


The selected directory, /home/.../.Wolfram/Documentation/14.2/en-us,
contains files and/or directories that may be overwritten during
installation. If you have any files you wish to keep in this directory,
you should exit the installer and move the files to a separate directory
before continuing.

Now installing...

[*****************************************************************************]

…figuration and version-specific executable names
@planetmija
Copy link
Author

I checked the older versions on another cluster and obtained the following results. wolfram --version works for versions 12.2.1 to 14.2.1. Alternatively, one could switch to wolframnb --version for v14.2.1.

My cluster v14.2.1:

~> ll /opt/eb/genoa/software/Mathematica/14.2.1/bin/
math -> /opt/eb/genoa/software/Mathematica/14.2.1/Executables/math*
MathKernel -> /opt/eb/genoa/software/Mathematica/14.2.1/Executables/MathKernel*
mcc -> /opt/eb/genoa/software/Mathematica/14.2.1/Executables/mcc*
wolfram -> /opt/eb/genoa/software/Mathematica/14.2.1/Executables/wolfram*
WolframKernel -> /opt/eb/genoa/software/Mathematica/14.2.1/Executables/WolframKernel*
wolframnb -> /opt/eb/genoa/software/Mathematica/14.2.1/Executables/wolframnb*
WolframNB -> /opt/eb/genoa/software/Mathematica/14.2.1/Executables/WolframNB*

~> ls /opt/eb/genoa/software/Mathematica/14.2.1/Executables/
math*  MathKernel*  mcc*  wolfram*  WolframKernel*  wolframnb*  WolframNB*  wolframscript@

~> wolfram --version
Wolfram 14.2.1 Kernel for Linux x86 (64-bit)
Copyright 1988-2025 Wolfram Research, Inc.

In[1]:=

~> wolframnb --version
14.2.1 for Linux x86 (64-bit)

v14.0 on other cluster:

$ ll /opt/bwhpc/fr/math/mathematica/14.0/bin/
MathKernel -> /opt/bwhpc/fr/math/mathematica/14.0/Executables/MathKernel
Mathematica -> /opt/bwhpc/fr/math/mathematica/14.0/Executables/Mathematica
WolframKernel -> /opt/bwhpc/fr/math/mathematica/14.0/Executables/WolframKernel
math -> /opt/bwhpc/fr/math/mathematica/14.0/Executables/math
mathematica -> /opt/bwhpc/fr/math/mathematica/14.0/Executables/mathematica
mcc -> /opt/bwhpc/fr/math/mathematica/14.0/Executables/mcc
wolfram -> /opt/bwhpc/fr/math/mathematica/14.0/Executables/wolfram

$ ls /opt/bwhpc/fr/math/mathematica/14.0/Executables/           
MathKernel  Mathematica  WolframKernel  math  mathematica  mcc  wolfram  wolframscript

$ wolfram --version
Mathematica 14.0.0 Kernel for Linux x86 (64-bit)
Copyright 1988-2023 Wolfram Research, Inc.

In[1]:=

$ mathematica --version
14.0

v12.1.1:

$ ll /opt/bwhpc/fr/math/mathematica/12.1.1/bin/
total 8
MathKernel -> /opt/bwhpc/fr/math/mathematica/12.1/Executables/MathKernel
Mathematica -> /opt/bwhpc/fr/math/mathematica/12.1/Executables/Mathematica
WolframKernel -> /opt/bwhpc/fr/math/mathematica/12.1/Executables/WolframKernel
math -> /opt/bwhpc/fr/math/mathematica/12.1/Executables/math
mathematica -> /opt/bwhpc/fr/math/mathematica/12.1/Executables/mathematica
mcc -> /opt/bwhpc/fr/math/mathematica/12.1/Executables/mcc
wolfram -> /opt/bwhpc/fr/math/mathematica/12.1/Executables/wolfram
wolframscript -> /opt/bwhpc/fr/math/mathematica/12.1/SystemFiles/Kernel/Binaries/Linux-x86-64/wolframscript

$ ls /opt/bwhpc/fr/math/mathematica/12.1/Executables/
MathKernel  Mathematica  WolframKernel  math  mathematica  mcc  wolfram  wolframscript

$wolfram --version
Mathematica 12.1.1 Kernel for Linux x86 (64-bit)
Copyright 1988-2020 Wolfram Research, Inc.

In[1]:=

$ mathematica --version
12.1

Copy link
Contributor

@Micket Micket left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants