Last active
November 27, 2019 06:44
-
-
Save xrq-phys/b1b95eeffe3d41ec0339f3ffb635ba61 to your computer and use it in GitHub Desktop.
Using TeXmacs as Frontend of WolframScript (Mathematica/Wolfram Engine) on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TEXMACSAPP=/Applications/TeXmacs-1.99.11.app | |
MATHPLAYERAPP=/Applications/Wolfram\ Engine.app/Contents/Resources/Wolfram\ Player.app | |
MLINKROOT=$MATHPLAYERAPP/Contents/SystemFiles/Links/MathLink/DeveloperKit/MacOSX-x86-64/CompilerAdditions | |
clang -m64 -o ~/.TeXmacs/bin/tm_mathematica.bin \ | |
$TEXMACSAPP/Contents/Resources/share/TeXmacs/plugins/mathematica/src.lazy/tm_mathematica.c \ | |
-I "$MLINKROOT" -L "$MLINKROOT" -lMLi4 -lm -lpthread -lstdc++ -ldl -luuid -framework CoreFoundation | |
# Note: | |
# A symbolic link to WolframKernel should be put under the user's $PATH and named 'math'. | |
# To get the change noticed, starting the applicaton from command line is sometimes necessary. | |
# You may have to install libuuid.dylib with like `brew install ossp-uuid` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment