Installation and First run

Found out Wolfram Engine is available for private use and available on homebrew for installation.

On first run of wolframscript, I saw this error:

$ wolframscript 

A WolframKernel location could not be determined.

Alternatively, export WolframKernel=/yourpath/WolframKernel.

If you have no Wolfram product currently installed,
 the free Wolfram Engine for developers can be downloaded

I put these two lines into a file named file.wls:

#!/usr/bin/env wolframscript

I Set the Kernel path, and tried to execute the file - wolframscript file.wls

~ export WolframKernel="/Applications/Wolfram"
  ~ wolframscript file.wls                                                             

Your Wolfram Engine installation is not activated or is experiencing a license-related problem.

Please run wolframscript with the -activate option, and then try
 your original wolframscript command again.

It appears I had not activated the Wolfram engine. Launching “Wolfram Engine” from the MacOS Spotlight search, i was prompted to enter the worlfram id. I visited to get a license

wolfram engine license agreement page

After this I had to enter my worlfran username (my email), and password to activate the license:

first successful run of wolfram

Getting back to writing a script:

$ wolframscript file.wls


This page - is a starting point to learn more about wolframscript.


See also: Stephen Wolfram